com.hack23.cia.service.impl.common
Class ParliamentServiceImpl

Package class diagram package ParliamentServiceImpl
java.lang.Object
  extended by com.hack23.cia.service.impl.common.ParliamentServiceImpl
All Implemented Interfaces:
ParliamentService

@Transactional(propagation=REQUIRED)
public class ParliamentServiceImpl
extends Object
implements ParliamentService

The Class ParliamentServiceImpl.


Constructor Summary
ParliamentServiceImpl(PoliticalPartyDAO politicalPartyDAO, CommitteeReportDAO commiteeReportDAO, ParliamentMemberDAO parliamentMemberDAO, ParliamentMemberRegisterAgent parliamentMemberRegisterAgent, ResourceDAO resourceDAO, BallotDAO ballotDAO)
          Instantiates a new parliament service impl.
 
Method Summary
 List<VoteData> findLastVotes(Long id)
          Find last votes.
 List<VoteData> findLastVotesByBallotId(Long id)
          Find last votes by ballot id.
 List<ParliamentMemberData> findParliamentMembersByName(String searchString)
          Find parliament members by name.
 PoliticalPartyData findPoliticalPartyByShortCode(String partyShortCode)
          Find political party by short code.
 List<CommitteeReportData> getAllCommiteeReports()
          Gets the all commitee reports.
 List<BallotData> getBallots()
          Gets the ballots.
 List<ParliamentMemberData> getCurrentList()
          Gets the current list.
 List<ParliamentMemberData> getCurrentTopListAbsent(int number)
          Gets the current top list absent.
 List<ParliamentMemberData> getCurrentTopListAbsentInParty(int i, String party)
          Gets the current top list absent in party.
 List<ParliamentMemberData> getCurrentTopListLosers(int i)
          Gets the current top list losers.
 List<ParliamentMemberData> getCurrentTopListLosersInParty(int i, String party)
          Gets the current top list losers in party.
 List<ParliamentMemberData> getCurrentTopListLoyal(int i)
          Gets the current top list loyal.
 List<ParliamentMemberData> getCurrentTopListLoyalInParty(int i, String party)
          Gets the current top list loyal in party.
 List<ParliamentMemberData> getCurrentTopListPresent(int i)
          Gets the current top list present.
 List<ParliamentMemberData> getCurrentTopListPresentInParty(int i, String party)
          Gets the current top list present in party.
 List<ParliamentMemberData> getCurrentTopListRebels(int i)
          Gets the current top list rebels.
 List<ParliamentMemberData> getCurrentTopListRebelsInParty(int i, String party)
          Gets the current top list rebels in party.
 List<ParliamentMemberData> getCurrentTopListWinners(int i)
          Gets the current top list winners.
 List<ParliamentMemberData> getCurrentTopListWinnersInParty(int i, String party)
          Gets the current top list winners in party.
 BinaryContent getGraph(ParliamentChart chart, BallotData ballot, LanguageData language)
          Gets the graph.
 BinaryContent getGraph(ParliamentChart chart, CommitteeReportData committeeReport, LanguageData language)
          Gets the graph.
 BinaryContent getGraph(ParliamentChart chart, LanguageData language)
          Gets the graph.
 BinaryContent getGraph(ParliamentChart chart, ParliamentMemberData parliamentMember, LanguageData language)
          Gets the graph.
 BinaryContent getGraph(ParliamentChart chart, PoliticalPartyData politicalParty, LanguageData language)
          Gets the graph.
 List<CommitteeReportData> getLastDecidedCommiteeReports()
          Gets the last decided commitee reports.
 ParliamentMemberData getParliamentMember(Long parliamentMemberId)
          Gets the parliament member.
 List<ParliamentMemberVoteCompareResultData> getParliamentMemberEnemies(ParliamentMemberData parliamentMember)
          Gets the parliament member enemies.
 List<ParliamentMemberVoteCompareResultData> getParliamentMemberFriends(ParliamentMemberData parliamentMember)
          Gets the parliament member friends.
 List<ParliamentMemberVoteCompareResultData> getParliamentMemberPartyEnemies(ParliamentMemberData parliamentMember)
          Gets the parliament member party enemies.
 List<ParliamentMemberVoteCompareResultData> getParliamentMemberPartyFriends(ParliamentMemberData parliamentMember)
          Gets the parliament member party friends.
 List<PoliticalPartyData> getPoliticalParties()
          Gets the political parties.
 BallotData loadBallotById(Long ballotId)
          Load ballot by id.
 CommitteeReportData loadCommitteeReportById(Long committeeReportId)
          Load committee report by id.
 RegisterInformationData lookupRegisterInformation(ParliamentMemberData member)
          Lookup register information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParliamentServiceImpl

public ParliamentServiceImpl(PoliticalPartyDAO politicalPartyDAO,
                             CommitteeReportDAO commiteeReportDAO,
                             ParliamentMemberDAO parliamentMemberDAO,
                             ParliamentMemberRegisterAgent parliamentMemberRegisterAgent,
                             ResourceDAO resourceDAO,
                             BallotDAO ballotDAO)
Instantiates a new parliament service impl.

Parameters:
politicalPartyDAO - the political party dao
commiteeReportDAO - the commitee report dao
parliamentMemberDAO - the parliament member dao
parliamentMemberRegisterAgent - the parliament member register agent
resourceDAO - the resource dao
ballotDAO - the ballot dao
Method Detail

findLastVotes

public final List<VoteData> findLastVotes(Long id)
Description copied from interface: ParliamentService
Find last votes.

Specified by:
findLastVotes in interface ParliamentService
Parameters:
id - the id
Returns:
the list< vote data>

findLastVotesByBallotId

public final List<VoteData> findLastVotesByBallotId(Long id)
Description copied from interface: ParliamentService
Find last votes by ballot id.

Specified by:
findLastVotesByBallotId in interface ParliamentService
Parameters:
id - the id
Returns:
the list< vote data>

findParliamentMembersByName

public final List<ParliamentMemberData> findParliamentMembersByName(String searchString)
Description copied from interface: ParliamentService
Find parliament members by name.

Specified by:
findParliamentMembersByName in interface ParliamentService
Parameters:
searchString - the search string
Returns:
the list< parliament member data>

findPoliticalPartyByShortCode

public final PoliticalPartyData findPoliticalPartyByShortCode(String partyShortCode)
Description copied from interface: ParliamentService
Find political party by short code.

Specified by:
findPoliticalPartyByShortCode in interface ParliamentService
Parameters:
partyShortCode - the party
Returns:
the political party data

getAllCommiteeReports

public final List<CommitteeReportData> getAllCommiteeReports()
Description copied from interface: ParliamentService
Gets the all commitee reports.

Specified by:
getAllCommiteeReports in interface ParliamentService
Returns:
the all commitee reports

getBallots

public final List<BallotData> getBallots()
Gets the ballots.

Returns:
the ballots

getCurrentList

public final List<ParliamentMemberData> getCurrentList()
Gets the current list.

Returns:
the current list

getCurrentTopListAbsent

public final List<ParliamentMemberData> getCurrentTopListAbsent(int number)
Description copied from interface: ParliamentService
Gets the current top list absent.

Specified by:
getCurrentTopListAbsent in interface ParliamentService
Parameters:
number - the number
Returns:
the current top list absent

getCurrentTopListAbsentInParty

public final List<ParliamentMemberData> getCurrentTopListAbsentInParty(int i,
                                                                       String party)
Description copied from interface: ParliamentService
Gets the current top list absent in party.

Specified by:
getCurrentTopListAbsentInParty in interface ParliamentService
Parameters:
i - the i
party - the party
Returns:
the current top list absent in party

getCurrentTopListLosers

public final List<ParliamentMemberData> getCurrentTopListLosers(int i)
Description copied from interface: ParliamentService
Gets the current top list losers.

Specified by:
getCurrentTopListLosers in interface ParliamentService
Parameters:
i - the i
Returns:
the current top list losers

getCurrentTopListLosersInParty

public final List<ParliamentMemberData> getCurrentTopListLosersInParty(int i,
                                                                       String party)
Description copied from interface: ParliamentService
Gets the current top list losers in party.

Specified by:
getCurrentTopListLosersInParty in interface ParliamentService
Parameters:
i - the i
party - the party
Returns:
the current top list losers in party

getCurrentTopListLoyal

public final List<ParliamentMemberData> getCurrentTopListLoyal(int i)
Description copied from interface: ParliamentService
Gets the current top list loyal.

Specified by:
getCurrentTopListLoyal in interface ParliamentService
Parameters:
i - the i
Returns:
the current top list loyal

getCurrentTopListLoyalInParty

public final List<ParliamentMemberData> getCurrentTopListLoyalInParty(int i,
                                                                      String party)
Description copied from interface: ParliamentService
Gets the current top list loyal in party.

Specified by:
getCurrentTopListLoyalInParty in interface ParliamentService
Parameters:
i - the i
party - the party
Returns:
the current top list loyal in party

getCurrentTopListPresent

public final List<ParliamentMemberData> getCurrentTopListPresent(int i)
Description copied from interface: ParliamentService
Gets the current top list present.

Specified by:
getCurrentTopListPresent in interface ParliamentService
Parameters:
i - the i
Returns:
the current top list present

getCurrentTopListPresentInParty

public final List<ParliamentMemberData> getCurrentTopListPresentInParty(int i,
                                                                        String party)
Description copied from interface: ParliamentService
Gets the current top list present in party.

Specified by:
getCurrentTopListPresentInParty in interface ParliamentService
Parameters:
i - the i
party - the party
Returns:
the current top list present in party

getCurrentTopListRebels

public final List<ParliamentMemberData> getCurrentTopListRebels(int i)
Description copied from interface: ParliamentService
Gets the current top list rebels.

Specified by:
getCurrentTopListRebels in interface ParliamentService
Parameters:
i - the i
Returns:
the current top list rebels

getCurrentTopListRebelsInParty

public final List<ParliamentMemberData> getCurrentTopListRebelsInParty(int i,
                                                                       String party)
Description copied from interface: ParliamentService
Gets the current top list rebels in party.

Specified by:
getCurrentTopListRebelsInParty in interface ParliamentService
Parameters:
i - the i
party - the party
Returns:
the current top list rebels in party

getCurrentTopListWinners

public final List<ParliamentMemberData> getCurrentTopListWinners(int i)
Description copied from interface: ParliamentService
Gets the current top list winners.

Specified by:
getCurrentTopListWinners in interface ParliamentService
Parameters:
i - the i
Returns:
the current top list winners

getCurrentTopListWinnersInParty

public final List<ParliamentMemberData> getCurrentTopListWinnersInParty(int i,
                                                                        String party)
Description copied from interface: ParliamentService
Gets the current top list winners in party.

Specified by:
getCurrentTopListWinnersInParty in interface ParliamentService
Parameters:
i - the i
party - the party
Returns:
the current top list winners in party

getGraph

public final BinaryContent getGraph(ParliamentChart chart,
                                    BallotData ballot,
                                    LanguageData language)
Description copied from interface: ParliamentService
Gets the graph.

Specified by:
getGraph in interface ParliamentService
Parameters:
chart - the chart
ballot - the ballot
language - the language
Returns:
the graph

getGraph

public final BinaryContent getGraph(ParliamentChart chart,
                                    CommitteeReportData committeeReport,
                                    LanguageData language)
Description copied from interface: ParliamentService
Gets the graph.

Specified by:
getGraph in interface ParliamentService
Parameters:
chart - the summary
committeeReport - the committee report
language - the language
Returns:
the graph

getGraph

public final BinaryContent getGraph(ParliamentChart chart,
                                    LanguageData language)
Description copied from interface: ParliamentService
Gets the graph.

Specified by:
getGraph in interface ParliamentService
Parameters:
chart - the chart
language - the language
Returns:
the graph

getGraph

public final BinaryContent getGraph(ParliamentChart chart,
                                    ParliamentMemberData parliamentMember,
                                    LanguageData language)
Description copied from interface: ParliamentService
Gets the graph.

Specified by:
getGraph in interface ParliamentService
Parameters:
chart - the chart
parliamentMember - the parliament member
language - the language
Returns:
the graph

getGraph

public final BinaryContent getGraph(ParliamentChart chart,
                                    PoliticalPartyData politicalParty,
                                    LanguageData language)
Description copied from interface: ParliamentService
Gets the graph.

Specified by:
getGraph in interface ParliamentService
Parameters:
chart - the summary
politicalParty - the political party
language - the language
Returns:
the graph

getLastDecidedCommiteeReports

public final List<CommitteeReportData> getLastDecidedCommiteeReports()
Description copied from interface: ParliamentService
Gets the last decided commitee reports.

Specified by:
getLastDecidedCommiteeReports in interface ParliamentService
Returns:
the last decided commitee reports

getParliamentMember

public final ParliamentMemberData getParliamentMember(Long parliamentMemberId)
Description copied from interface: ParliamentService
Gets the parliament member.

Specified by:
getParliamentMember in interface ParliamentService
Parameters:
parliamentMemberId - the parliament member id
Returns:
the parliament member

getParliamentMemberEnemies

public final List<ParliamentMemberVoteCompareResultData> getParliamentMemberEnemies(ParliamentMemberData parliamentMember)
Gets the parliament member enemies.

Specified by:
getParliamentMemberEnemies in interface ParliamentService
Parameters:
parliamentMember - the parliament member
Returns:
the parliament member enemies

getParliamentMemberFriends

public final List<ParliamentMemberVoteCompareResultData> getParliamentMemberFriends(ParliamentMemberData parliamentMember)
Gets the parliament member friends.

Specified by:
getParliamentMemberFriends in interface ParliamentService
Parameters:
parliamentMember - the parliament member
Returns:
the parliament member friends

getParliamentMemberPartyEnemies

public final List<ParliamentMemberVoteCompareResultData> getParliamentMemberPartyEnemies(ParliamentMemberData parliamentMember)
Gets the parliament member party enemies.

Specified by:
getParliamentMemberPartyEnemies in interface ParliamentService
Parameters:
parliamentMember - the parliament member
Returns:
the parliament member party enemies

getParliamentMemberPartyFriends

public final List<ParliamentMemberVoteCompareResultData> getParliamentMemberPartyFriends(ParliamentMemberData parliamentMember)
Gets the parliament member party friends.

Specified by:
getParliamentMemberPartyFriends in interface ParliamentService
Parameters:
parliamentMember - the parliament member
Returns:
the parliament member party friends

getPoliticalParties

public final List<PoliticalPartyData> getPoliticalParties()
Description copied from interface: ParliamentService
Gets the political parties.

Specified by:
getPoliticalParties in interface ParliamentService
Returns:
the political parties

loadBallotById

public final BallotData loadBallotById(Long ballotId)
Load ballot by id.

Specified by:
loadBallotById in interface ParliamentService
Parameters:
ballotId - the ballot id
Returns:
the ballot data

loadCommitteeReportById

public final CommitteeReportData loadCommitteeReportById(Long committeeReportId)
Load committee report by id.

Specified by:
loadCommitteeReportById in interface ParliamentService
Parameters:
committeeReportId - the committee report id
Returns:
the committee report data

lookupRegisterInformation

public final RegisterInformationData lookupRegisterInformation(ParliamentMemberData member)
Lookup register information.

Specified by:
lookupRegisterInformation in interface ParliamentService
Parameters:
member - the member
Returns:
the register information


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