|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 serviceMethod Detail |
---|
public final void addBallotInformation(Long ballotId, List<Vote> voteResult)
AgentSupportService
addBallotInformation
in interface AgentSupportService
ballotId
- the ballot idvoteResult
- the listpublic final void addCommitteeReportInformation(Long id, Date decidedDateIfAny, List<Ballot> findVotedballot)
AgentSupportService
addCommitteeReportInformation
in interface AgentSupportService
id
- the iddecidedDateIfAny
- the decided date if anyfindVotedballot
- the find votedballotspublic final void addIfNotExist(CommitteeReport commiteeReport)
AgentSupportService
addIfNotExist
in interface AgentSupportService
commiteeReport
- the commitee reportpublic final void addIfNotExist(PoliticalParty politcalParty)
AgentSupportService
addIfNotExist
in interface AgentSupportService
politcalParty
- the politcal partypublic final void createParliamentMemberVoteCompareResults()
AgentSupportService
createParliamentMemberVoteCompareResults
in interface AgentSupportService
public final void deleteParliamentMemberVoteCompareResults()
AgentSupportService
deleteParliamentMemberVoteCompareResults
in interface AgentSupportService
public final void generateBallotCharts(Long ballotId)
AgentSupportService
generateBallotCharts
in interface AgentSupportService
ballotId
- the ballot idpublic final void generateCommitteeReportCharts()
AgentSupportService
generateCommitteeReportCharts
in interface AgentSupportService
public final void generateParliamentCharts()
AgentSupportService
generateParliamentCharts
in interface AgentSupportService
public final void generateParliamentMemberCharts(Long memberId)
AgentSupportService
generateParliamentMemberCharts
in interface AgentSupportService
memberId
- the parliament member idpublic final void generatePoliticalPartyCharts(Long politicalPartyId)
AgentSupportService
generatePoliticalPartyCharts
in interface AgentSupportService
politicalPartyId
- the political party idpublic final List<Ballot> getAllBallots()
AgentSupportService
getAllBallots
in interface AgentSupportService
public final List<Ballot> getAllCompletedBallotar()
AgentSupportService
getAllCompletedBallotar
in interface AgentSupportService
public final List<Ballot> getAllCreatedBallotar()
AgentSupportService
getAllCreatedBallotar
in interface AgentSupportService
public final List<CommitteeReport> getAllCreatedCommitteeReports()
AgentSupportService
getAllCreatedCommitteeReports
in interface AgentSupportService
public final List<PoliticalParty> getAllPoliticalParties()
AgentSupportService
getAllPoliticalParties
in interface AgentSupportService
public final List<ParliamentMember> getCurrentList()
AgentSupportService
getCurrentList
in interface AgentSupportService
public void reportOperationStatus(String agentName, String agentOperativeCode, AgentOperationStatus operationStatus)
AgentSupportService
reportOperationStatus
in interface AgentSupportService
agentName
- the agent nameagentOperativeCode
- the agent operative codeoperationStatus
- the activatedpublic final void updateParliamentMembersEnglishWikiHref(Map<Long,String> updates)
AgentSupportService
updateParliamentMembersEnglishWikiHref
in interface AgentSupportService
updates
- the updatespublic final void updateParliamentMembersHref(Map<Long,String> updates)
AgentSupportService
updateParliamentMembersHref
in interface AgentSupportService
updates
- the updatespublic final void updateParliamentMembersWikiHref(Map<Long,String> updates)
AgentSupportService
updateParliamentMembersWikiHref
in interface AgentSupportService
updates
- the updatespublic void addIfNotExist(Committee committee)
AgentSupportService
addIfNotExist
in interface AgentSupportService
committee
- the committeepublic void addIfNotExist(ParliamentYear parliamentYear)
AgentSupportService
addIfNotExist
in interface AgentSupportService
parliamentYear
- the parliament yearpublic void generateCommitteesCharts()
AgentSupportService
generateCommitteesCharts
in interface AgentSupportService
public void generateParliamentYearCharts()
AgentSupportService
generateParliamentYearCharts
in interface AgentSupportService
public void addIfNotExist(Election committee)
AgentSupportService
addIfNotExist
in interface AgentSupportService
committee
- the committeepublic void addIfNotExist(ParliamentMember election)
AgentSupportService
addIfNotExist
in interface AgentSupportService
election
- the election
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |