com.hack23.cia.service.impl.content
Class ParliamentContentServiceImpl

Package class diagram package ParliamentContentServiceImpl
java.lang.Object
  extended by com.hack23.cia.service.impl.content.ParliamentContentServiceImpl
All Implemented Interfaces:
ParliamentContentService

public class ParliamentContentServiceImpl
extends Object
implements ParliamentContentService

The Class ParliamentContentServiceImpl.


Constructor Summary
Constructor and Description
ParliamentContentServiceImpl(PoliticalPartyDAO politicalPartyDAO, CommitteeReportDAO commiteeReportDAO, ParliamentMemberDAO parliamentMemberDAO, ResourceDAO resourceDAO, BallotDAO ballotDAO)
          Instantiates a new parliament content service impl.
 
Method Summary
Modifier and Type Method and Description
 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

ParliamentContentServiceImpl

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

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

findLastVotes

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

Specified by:
findLastVotes in interface ParliamentContentService
Parameters:
id - the id
Returns:
the list

findLastVotesByBallotId

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

Specified by:
findLastVotesByBallotId in interface ParliamentContentService
Parameters:
id - the id
Returns:
the list

findParliamentMembersByName

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

Specified by:
findParliamentMembersByName in interface ParliamentContentService
Parameters:
searchString - the search string
Returns:
the list

findPoliticalPartyByShortCode

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

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

getAllCommiteeReports

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

Specified by:
getAllCommiteeReports in interface ParliamentContentService
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: ParliamentContentService
Gets the current top list absent.

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

getCurrentTopListAbsentInParty

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

Specified by:
getCurrentTopListAbsentInParty in interface ParliamentContentService
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: ParliamentContentService
Gets the current top list losers.

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

getCurrentTopListLosersInParty

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

Specified by:
getCurrentTopListLosersInParty in interface ParliamentContentService
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: ParliamentContentService
Gets the current top list loyal.

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

getCurrentTopListLoyalInParty

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

Specified by:
getCurrentTopListLoyalInParty in interface ParliamentContentService
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: ParliamentContentService
Gets the current top list present.

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

getCurrentTopListPresentInParty

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

Specified by:
getCurrentTopListPresentInParty in interface ParliamentContentService
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: ParliamentContentService
Gets the current top list rebels.

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

getCurrentTopListRebelsInParty

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

Specified by:
getCurrentTopListRebelsInParty in interface ParliamentContentService
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: ParliamentContentService
Gets the current top list winners.

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

getCurrentTopListWinnersInParty

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

Specified by:
getCurrentTopListWinnersInParty in interface ParliamentContentService
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: ParliamentContentService
Gets the graph.

Specified by:
getGraph in interface ParliamentContentService
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: ParliamentContentService
Gets the graph.

Specified by:
getGraph in interface ParliamentContentService
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: ParliamentContentService
Gets the graph.

Specified by:
getGraph in interface ParliamentContentService
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: ParliamentContentService
Gets the graph.

Specified by:
getGraph in interface ParliamentContentService
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: ParliamentContentService
Gets the graph.

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

getLastDecidedCommiteeReports

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

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

getParliamentMember

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

Specified by:
getParliamentMember in interface ParliamentContentService
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 ParliamentContentService
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 ParliamentContentService
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 ParliamentContentService
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 ParliamentContentService
Parameters:
parliamentMember - the parliament member
Returns:
the parliament member party friends

getPoliticalParties

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

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

loadBallotById

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

Specified by:
loadBallotById in interface ParliamentContentService
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 ParliamentContentService
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 ParliamentContentService
Parameters:
member - the member
Returns:
the register information


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