com.hack23.cia.service.impl.admin
Class AgentSupportServiceImpl

Package class diagram package AgentSupportServiceImpl
java.lang.Object
  extended by com.hack23.cia.service.impl.admin.AgentSupportServiceImpl
All Implemented Interfaces:
AgentSupportService

@Transactional(propagation=REQUIRED)
public class AgentSupportServiceImpl
extends Object
implements AgentSupportService

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

AgentSupportServiceImpl

public AgentSupportServiceImpl(CommitteeReportDAO commiteeReportDAO,
                               BallotDAO ballotDAO,
                               ParliamentMemberDAO parliamentMemberDAO,
                               PoliticalPartyDAO politicalPartyDAO,
                               ResourceDAO resourceDAO,
                               AgencyDAO agencyDAO,
                               ChartService chartService)
Instantiates a new agent support service impl.

Parameters:
commiteeReportDAO - the commitee report dao
ballotDAO - the ballot dao
parliamentMemberDAO - the parliament member dao
politicalPartyDAO - the political party dao
resourceDAO - the resource dao
agencyDAO - the agency dao
chartService - the chart service
Method Detail

addBallotInformation

public final void addBallotInformation(Long ballotId,
                                       List<Vote> voteResult)
Description copied from interface: AgentSupportService
Adds the ballot information.

Specified by:
addBallotInformation in interface AgentSupportService
Parameters:
ballotId - the ballot id
voteResult - the list

addCommitteeReportInformation

public final void addCommitteeReportInformation(Long id,
                                                Date decidedDateIfAny,
                                                List<Ballot> findVotedballot)
Description copied from interface: AgentSupportService
Adds the committee report information.

Specified by:
addCommitteeReportInformation in interface AgentSupportService
Parameters:
id - the id
decidedDateIfAny - the decided date if any
findVotedballot - the find votedballots

addIfNotExist

public final void addIfNotExist(CommitteeReport commiteeReport)
Description copied from interface: AgentSupportService
Adds the if not exist.

Specified by:
addIfNotExist in interface AgentSupportService
Parameters:
commiteeReport - the commitee report

addIfNotExist

public final void addIfNotExist(PoliticalParty politcalParty)
Description copied from interface: AgentSupportService
Adds the if not exist.

Specified by:
addIfNotExist in interface AgentSupportService
Parameters:
politcalParty - the politcal party

createParliamentMemberVoteCompareResults

public final void createParliamentMemberVoteCompareResults()
Description copied from interface: AgentSupportService
Creates the parliament member vote compare results.

Specified by:
createParliamentMemberVoteCompareResults in interface AgentSupportService

deleteParliamentMemberVoteCompareResults

public final void deleteParliamentMemberVoteCompareResults()
Description copied from interface: AgentSupportService
Delete parliament member vote compare results.

Specified by:
deleteParliamentMemberVoteCompareResults in interface AgentSupportService

generateBallotCharts

public final void generateBallotCharts(Long ballotId)
Description copied from interface: AgentSupportService
Generate ballot charts.

Specified by:
generateBallotCharts in interface AgentSupportService
Parameters:
ballotId - the ballot id

generateCommitteeReportCharts

public final void generateCommitteeReportCharts()
Description copied from interface: AgentSupportService
Generate committee report charts.

Specified by:
generateCommitteeReportCharts in interface AgentSupportService

generateParliamentCharts

public final void generateParliamentCharts()
Description copied from interface: AgentSupportService
Generate parliament charts.

Specified by:
generateParliamentCharts in interface AgentSupportService

generateParliamentMemberCharts

public final void generateParliamentMemberCharts(Long memberId)
Description copied from interface: AgentSupportService
Generate parliament member charts.

Specified by:
generateParliamentMemberCharts in interface AgentSupportService
Parameters:
memberId - the parliament member id

generatePoliticalPartyCharts

public final void generatePoliticalPartyCharts(Long politicalPartyId)
Description copied from interface: AgentSupportService
Generate political party charts.

Specified by:
generatePoliticalPartyCharts in interface AgentSupportService
Parameters:
politicalPartyId - the political party id

getAllBallots

public final List<Ballot> getAllBallots()
Description copied from interface: AgentSupportService
Gets the all ballots.

Specified by:
getAllBallots in interface AgentSupportService
Returns:
the all ballots

getAllCompletedBallotar

public final List<Ballot> getAllCompletedBallotar()
Description copied from interface: AgentSupportService
Gets the all completed ballotar.

Specified by:
getAllCompletedBallotar in interface AgentSupportService
Returns:
the all completed ballotar

getAllCreatedBallotar

public final List<Ballot> getAllCreatedBallotar()
Description copied from interface: AgentSupportService
Gets the all created ballotar.

Specified by:
getAllCreatedBallotar in interface AgentSupportService
Returns:
the all created ballotar

getAllCreatedCommitteeReports

public final List<CommitteeReport> getAllCreatedCommitteeReports()
Description copied from interface: AgentSupportService
Gets the all created committee reports.

Specified by:
getAllCreatedCommitteeReports in interface AgentSupportService
Returns:
the all created committee reports

getAllPoliticalParties

public final List<PoliticalParty> getAllPoliticalParties()
Description copied from interface: AgentSupportService
Gets the all political parties.

Specified by:
getAllPoliticalParties in interface AgentSupportService
Returns:
the all political parties

getCurrentList

public final List<ParliamentMember> getCurrentList()
Description copied from interface: AgentSupportService
Gets the current list.

Specified by:
getCurrentList in interface AgentSupportService
Returns:
the current list

reportOperationStatus

public void reportOperationStatus(String agentName,
                                  String agentOperativeCode,
                                  AgentOperationStatus operationStatus)
Description copied from interface: AgentSupportService
Report operation status.

Specified by:
reportOperationStatus in interface AgentSupportService
Parameters:
agentName - the agent name
agentOperativeCode - the agent operative code
operationStatus - the activated

updateParliamentMembersEnglishWikiHref

public final void updateParliamentMembersEnglishWikiHref(Map<Long,String> updates)
Description copied from interface: AgentSupportService
Update parliament members english wiki href.

Specified by:
updateParliamentMembersEnglishWikiHref in interface AgentSupportService
Parameters:
updates - the updates

updateParliamentMembersHref

public final void updateParliamentMembersHref(Map<Long,String> updates)
Description copied from interface: AgentSupportService
Update parliament members href.

Specified by:
updateParliamentMembersHref in interface AgentSupportService
Parameters:
updates - the updates

updateParliamentMembersWikiHref

public final void updateParliamentMembersWikiHref(Map<Long,String> updates)
Description copied from interface: AgentSupportService
Update parliament members wiki href.

Specified by:
updateParliamentMembersWikiHref in interface AgentSupportService
Parameters:
updates - the updates

addIfNotExist

public void addIfNotExist(Committee committee)
Description copied from interface: AgentSupportService
Adds the if not exist.

Specified by:
addIfNotExist in interface AgentSupportService
Parameters:
committee - the committee

addIfNotExist

public void addIfNotExist(ParliamentYear parliamentYear)
Description copied from interface: AgentSupportService
Adds the if not exist.

Specified by:
addIfNotExist in interface AgentSupportService
Parameters:
parliamentYear - the parliament year

generateCommitteesCharts

public void generateCommitteesCharts()
Description copied from interface: AgentSupportService
Generate committees charts.

Specified by:
generateCommitteesCharts in interface AgentSupportService

generateParliamentYearCharts

public void generateParliamentYearCharts()
Description copied from interface: AgentSupportService
Generate parliament year charts.

Specified by:
generateParliamentYearCharts in interface AgentSupportService

addIfNotExist

public void addIfNotExist(Election committee)
Description copied from interface: AgentSupportService
Adds the if not exist.

Specified by:
addIfNotExist in interface AgentSupportService
Parameters:
committee - the committee

addIfNotExist

public void addIfNotExist(ParliamentMember election)
Description copied from interface: AgentSupportService
Adds the if not exist.

Specified by:
addIfNotExist in interface AgentSupportService
Parameters:
election - the election


Copyright © 2008-2009 www.hack23.com. All Rights Reserved.