| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcom.hack23.cia.service.impl.admin.AgentSupportServiceImpl
@Transactional(propagation=REQUIRED) public class AgentSupportServiceImpl
The Class AgentSupportServiceImpl.
| Constructor Summary | |
|---|---|
| AgentSupportServiceImpl(CommitteeReportDAO commiteeReportDAO,
                        BallotDAO ballotDAO,
                        ParliamentMemberDAO parliamentMemberDAO,
                        PoliticalPartyDAO politicalPartyDAO,
                        ResourceDAO resourceDAO,
                        AgencyDAO agencyDAO,
                        ChartService chartService)Instantiates a new agent support service impl. | |
| Method Summary | |
|---|---|
|  void | addBallotInformation(Long ballotId,
                     List<Vote> voteResult)Adds the ballot information. | 
|  void | addCommitteeReportInformation(Long id,
                              Date decidedDateIfAny,
                              List<Ballot> findVotedballot)Adds the committee report information. | 
|  void | addIfNotExist(Committee committee)Adds the if not exist. | 
|  void | addIfNotExist(CommitteeReport commiteeReport)Adds the if not exist. | 
|  void | addIfNotExist(Election committee)Adds the if not exist. | 
|  void | addIfNotExist(ParliamentMember election)Adds the if not exist. | 
|  void | addIfNotExist(ParliamentYear parliamentYear)Adds the if not exist. | 
|  void | addIfNotExist(PoliticalParty politcalParty)Adds the if not exist. | 
|  void | createParliamentMemberVoteCompareResults()Creates the parliament member vote compare results. | 
|  void | deleteParliamentMemberVoteCompareResults()Delete parliament member vote compare results. | 
|  void | generateBallotCharts(Long ballotId)Generate ballot charts. | 
|  void | generateCommitteeReportCharts()Generate committee report charts. | 
|  void | generateCommitteesCharts()Generate committees charts. | 
|  void | generateParliamentCharts()Generate parliament charts. | 
|  void | generateParliamentMemberCharts(Long memberId)Generate parliament member charts. | 
|  void | generateParliamentYearCharts()Generate parliament year charts. | 
|  void | generatePoliticalPartyCharts(Long politicalPartyId)Generate political party charts. | 
|  List<Ballot> | getAllBallots()Gets the all ballots. | 
|  List<Ballot> | getAllCompletedBallotar()Gets the all completed ballotar. | 
|  List<Ballot> | getAllCreatedBallotar()Gets the all created ballotar. | 
|  List<CommitteeReport> | getAllCreatedCommitteeReports()Gets the all created committee reports. | 
|  List<PoliticalParty> | getAllPoliticalParties()Gets the all political parties. | 
|  List<ParliamentMember> | getCurrentList()Gets the current list. | 
|  void | reportOperationStatus(String agentName,
                      String agentOperativeCode,
                      AgentOperationStatus operationStatus)Report operation status. | 
|  void | updateParliamentMembersEnglishWikiHref(Map<Long,String> updates)Update parliament members english wiki href. | 
|  void | updateParliamentMembersHref(Map<Long,String> updates)Update parliament members href. | 
|  void | updateParliamentMembersWikiHref(Map<Long,String> updates)Update parliament members wiki href. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public AgentSupportServiceImpl(CommitteeReportDAO commiteeReportDAO,
                               BallotDAO ballotDAO,
                               ParliamentMemberDAO parliamentMemberDAO,
                               PoliticalPartyDAO politicalPartyDAO,
                               ResourceDAO resourceDAO,
                               AgencyDAO agencyDAO,
                               ChartService chartService)
commiteeReportDAO - the commitee report daoballotDAO - the ballot daoparliamentMemberDAO - the parliament member daopoliticalPartyDAO - the political party daoresourceDAO - the resource daoagencyDAO - the agency daochartService - the chart service| Method Detail | 
|---|
public final void addBallotInformation(Long ballotId,
                                       List<Vote> voteResult)
AgentSupportService
addBallotInformation in interface AgentSupportServiceballotId - the ballot idvoteResult - the list
public final void addCommitteeReportInformation(Long id,
                                                Date decidedDateIfAny,
                                                List<Ballot> findVotedballot)
AgentSupportService
addCommitteeReportInformation in interface AgentSupportServiceid - the iddecidedDateIfAny - the decided date if anyfindVotedballot - the find votedballotspublic final void addIfNotExist(CommitteeReport commiteeReport)
AgentSupportService
addIfNotExist in interface AgentSupportServicecommiteeReport - the commitee reportpublic final void addIfNotExist(PoliticalParty politcalParty)
AgentSupportService
addIfNotExist in interface AgentSupportServicepolitcalParty - the politcal partypublic final void createParliamentMemberVoteCompareResults()
AgentSupportService
createParliamentMemberVoteCompareResults in interface AgentSupportServicepublic final void deleteParliamentMemberVoteCompareResults()
AgentSupportService
deleteParliamentMemberVoteCompareResults in interface AgentSupportServicepublic final void generateBallotCharts(Long ballotId)
AgentSupportService
generateBallotCharts in interface AgentSupportServiceballotId - the ballot idpublic final void generateCommitteeReportCharts()
AgentSupportService
generateCommitteeReportCharts in interface AgentSupportServicepublic final void generateParliamentCharts()
AgentSupportService
generateParliamentCharts in interface AgentSupportServicepublic final void generateParliamentMemberCharts(Long memberId)
AgentSupportService
generateParliamentMemberCharts in interface AgentSupportServicememberId - the parliament member idpublic final void generatePoliticalPartyCharts(Long politicalPartyId)
AgentSupportService
generatePoliticalPartyCharts in interface AgentSupportServicepoliticalPartyId - the political party idpublic final List<Ballot> getAllBallots()
AgentSupportService
getAllBallots in interface AgentSupportServicepublic final List<Ballot> getAllCompletedBallotar()
AgentSupportService
getAllCompletedBallotar in interface AgentSupportServicepublic final List<Ballot> getAllCreatedBallotar()
AgentSupportService
getAllCreatedBallotar in interface AgentSupportServicepublic final List<CommitteeReport> getAllCreatedCommitteeReports()
AgentSupportService
getAllCreatedCommitteeReports in interface AgentSupportServicepublic final List<PoliticalParty> getAllPoliticalParties()
AgentSupportService
getAllPoliticalParties in interface AgentSupportServicepublic final List<ParliamentMember> getCurrentList()
AgentSupportService
getCurrentList in interface AgentSupportService
public void reportOperationStatus(String agentName,
                                  String agentOperativeCode,
                                  AgentOperationStatus operationStatus)
AgentSupportService
reportOperationStatus in interface AgentSupportServiceagentName - the agent nameagentOperativeCode - the agent operative codeoperationStatus - the activatedpublic final void updateParliamentMembersEnglishWikiHref(Map<Long,String> updates)
AgentSupportService
updateParliamentMembersEnglishWikiHref in interface AgentSupportServiceupdates - the updatespublic final void updateParliamentMembersHref(Map<Long,String> updates)
AgentSupportService
updateParliamentMembersHref in interface AgentSupportServiceupdates - the updatespublic final void updateParliamentMembersWikiHref(Map<Long,String> updates)
AgentSupportService
updateParliamentMembersWikiHref in interface AgentSupportServiceupdates - the updatespublic void addIfNotExist(Committee committee)
AgentSupportService
addIfNotExist in interface AgentSupportServicecommittee - the committeepublic void addIfNotExist(ParliamentYear parliamentYear)
AgentSupportService
addIfNotExist in interface AgentSupportServiceparliamentYear - the parliament yearpublic void generateCommitteesCharts()
AgentSupportService
generateCommitteesCharts in interface AgentSupportServicepublic void generateParliamentYearCharts()
AgentSupportService
generateParliamentYearCharts in interface AgentSupportServicepublic void addIfNotExist(Election committee)
AgentSupportService
addIfNotExist in interface AgentSupportServicecommittee - the committeepublic void addIfNotExist(ParliamentMember election)
AgentSupportService
addIfNotExist in interface AgentSupportServiceelection - the election| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||