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

public interface PortalService
The Interface PortalService.
| Modifier and Type | Method and Description |
|---|---|
void |
addMember(Organisation organisation,
Person person)
Adds the member. |
void |
addMemberById(java.lang.Long orgId,
java.lang.Long personId)
Adds the member by id. |
void |
addResolutionIssue(Resolution resolution,
Issue issue,
VoteResult voteResult)
Adds the resolution issue. |
void |
addRolePlayed(Role role,
Person person)
Adds the role played. |
void |
addRolePlayedById(java.lang.Long roleId,
java.lang.Long agentId)
Adds the role played by id. |
Country |
createCountry(java.lang.String sverige)
Creates the country. |
void |
createElection(java.lang.String name,
ElectionType electionType,
java.lang.Long id)
Creates the election. |
Government |
createGovernment(java.lang.String name,
java.lang.Long countryId,
GovernmentType governmentType,
java.lang.String headOfState)
Creates the government. |
Organisation |
createOrganisation(java.lang.String name,
java.lang.String abbr,
Country country,
Region region,
OrganisationType organisationType,
Organisation parent)
Creates the organisation. |
void |
createOrganisationById(java.lang.String name,
java.lang.String abbr,
java.lang.Long countryId,
java.lang.Long regionId,
OrganisationType type,
java.lang.Long orgId)
Creates the organisation by id. |
Organisation |
createOrgUnit(java.lang.String orgName,
java.lang.String shortName,
OrganisationType internal,
java.lang.Long orgId)
Creates the org unit. |
PoliticalParty |
createParty(CreatePartyCommand command,
java.lang.Long userId)
Creates the party. |
Person |
createPerson(java.lang.String name)
Creates the person. |
PoliticalParty |
createPoliticalParty(java.lang.String name,
java.lang.String shortCode,
Country country,
Region region)
Creates the political party. |
PoliticalParty |
createPoliticalPartyById(java.lang.String name,
java.lang.String shortCode,
java.lang.Long countryId)
Creates the political party by id. |
Government |
createRegionalGovernment(java.lang.String name,
Country country,
Region region,
OrganisationType organisationType,
Government parentGovernment)
Creates the regional government. |
void |
createResolution(Resolution resolution)
Creates the resolution. |
Role |
createRoleInOrg(java.lang.String roleName,
Organisation organisation)
Creates the role in org. |
Country |
findCountryByName(java.lang.String country)
Find country by name. |
Person |
findMemberByNameInOrg(java.lang.Long orgId,
java.lang.String presidentName)
Find member by name in org. |
Organisation |
findOrgByName(java.lang.String sverigesRiksdag)
Find org by name. |
PoliticalParty |
findPartyByShortCode(java.lang.String trim)
Find party by short code. |
Region |
findRegionByName(java.lang.String name)
Find region by name. |
java.util.List<UserSession> |
getActiveUserSessions()
Gets the active user sessions. |
java.util.List<Country> |
getCountries()
Gets the countries. |
java.util.List<Resolution> |
getDecidedResolutions()
Gets the decided resolutions. |
java.util.List<Election> |
getElections()
Gets the elections. |
java.util.List<Event> |
getEvents()
Gets the events. |
Portal |
getGlobalPortal()
Gets the global portal. |
Government |
getGovernment(java.lang.Long governmentId)
Gets the government. |
java.util.List<Government> |
getGovernments()
Gets the governments. |
java.util.List<OnlinePoliticalParty> |
getOnlinePoliticalParties()
Gets the online political parties. |
GroupAgent |
getOrganisation(java.lang.Long organisationId)
Gets the organisation. |
java.util.List<PoliticalParty> |
getPoliticalParties()
Gets the political parties. |
PoliticalParty |
getPoliticalParty(java.lang.Long partyId)
Gets the political party. |
java.util.List<Portal> |
getPortals()
Gets the portals. |
java.util.List<User> |
getUsers()
Gets the users. |
OnlinePoliticalParty |
joinParty(java.lang.Long partyId,
java.lang.Long userId)
Join party. |
void |
setResolutionDecidedDate(Resolution resolution,
java.util.Date parseDate)
Sets the resolution decided date. |
void |
updateVoteResult(VoteResult voteResult)
Update vote result. |
| Method Detail |
|---|
java.util.List<UserSession> getActiveUserSessions()
java.util.List<User> getUsers()
java.util.List<Event> getEvents()
java.util.List<Election> getElections()
java.util.List<Government> getGovernments()
java.util.List<Portal> getPortals()
java.util.List<Country> getCountries()
PoliticalParty createParty(CreatePartyCommand command,
java.lang.Long userId)
throws PartyAlreadyExistException
command - the commanduserId - the user idPartyAlreadyExistException - the party already exist exceptionjava.util.List<PoliticalParty> getPoliticalParties()
java.util.List<OnlinePoliticalParty> getOnlinePoliticalParties()
PoliticalParty getPoliticalParty(java.lang.Long partyId)
partyId - the party id
OnlinePoliticalParty joinParty(java.lang.Long partyId,
java.lang.Long userId)
partyId - the party iduserId - the user idGovernment getGovernment(java.lang.Long governmentId)
governmentId - the government idGroupAgent getOrganisation(java.lang.Long organisationId)
organisationId - the organisation id
Government createGovernment(java.lang.String name,
java.lang.Long countryId,
GovernmentType governmentType,
java.lang.String headOfState)
name - the namecountryId - the country idgovernmentType - the government typeheadOfState - the head of state
Government createRegionalGovernment(java.lang.String name,
Country country,
Region region,
OrganisationType organisationType,
Government parentGovernment)
name - the namecountry - the countryregion - the regionorganisationType - the organisation typeparentGovernment - the parent government
PoliticalParty createPoliticalParty(java.lang.String name,
java.lang.String shortCode,
Country country,
Region region)
name - the nameshortCode - the short codecountry - the countryregion - the region
Organisation createOrganisation(java.lang.String name,
java.lang.String abbr,
Country country,
Region region,
OrganisationType organisationType,
Organisation parent)
throws OrganisationAlreadyExistException
name - the nameabbr - the abbrcountry - the countryregion - the regionorganisationType - the organisation typeparent - the parentOrganisationAlreadyExistException - the organisation already exist exception
void addMember(Organisation organisation,
Person person)
organisation - the organisationperson - the person
void addRolePlayed(Role role,
Person person)
role - the roleperson - the person
Role createRoleInOrg(java.lang.String roleName,
Organisation organisation)
roleName - the role nameorganisation - the organisationPortal getGlobalPortal()
void createResolution(Resolution resolution)
resolution - the resolution
void setResolutionDecidedDate(Resolution resolution,
java.util.Date parseDate)
resolution - the resolutionparseDate - the parse datejava.util.List<Resolution> getDecidedResolutions()
void addResolutionIssue(Resolution resolution,
Issue issue,
VoteResult voteResult)
resolution - the resolutionissue - the issuevoteResult - the vote resultvoid updateVoteResult(VoteResult voteResult)
voteResult - the vote resultOrganisation findOrgByName(java.lang.String sverigesRiksdag)
sverigesRiksdag - the sveriges riksdag
Organisation createOrgUnit(java.lang.String orgName,
java.lang.String shortName,
OrganisationType internal,
java.lang.Long orgId)
throws OrganisationAlreadyExistException
orgName - the org nameshortName - the short nameinternal - the internalorgId - the org idOrganisationAlreadyExistException - the organisation already exist exception
Person findMemberByNameInOrg(java.lang.Long orgId,
java.lang.String presidentName)
orgId - the org idpresidentName - the president name
void addMemberById(java.lang.Long orgId,
java.lang.Long personId)
orgId - the org idpersonId - the person id
void addRolePlayedById(java.lang.Long roleId,
java.lang.Long agentId)
roleId - the role idagentId - the agent idCountry findCountryByName(java.lang.String country)
country - the countryCountry createCountry(java.lang.String sverige)
sverige - the sverige
void createElection(java.lang.String name,
ElectionType electionType,
java.lang.Long id)
name - the nameelectionType - the election typeid - the id
PoliticalParty createPoliticalPartyById(java.lang.String name,
java.lang.String shortCode,
java.lang.Long countryId)
name - the nameshortCode - the short codecountryId - the country id
void createOrganisationById(java.lang.String name,
java.lang.String abbr,
java.lang.Long countryId,
java.lang.Long regionId,
OrganisationType type,
java.lang.Long orgId)
throws org.springframework.dao.DataAccessException,
OrganisationAlreadyExistException
name - the nameabbr - the abbrcountryId - the country idregionId - the region idtype - the typeorgId - the org idorg.springframework.dao.DataAccessException - the data access exceptionOrganisationAlreadyExistException - the organisation already exist exceptionPoliticalParty findPartyByShortCode(java.lang.String trim)
trim - the trimPerson createPerson(java.lang.String name)
name - the nameRegion findRegionByName(java.lang.String name)
name - the name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||