|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hack23.cia.model.impl.common.BaseEntity com.hack23.cia.model.impl.sweden.configuration.Parliament
@Entity public class Parliament extends BaseEntity implements ParliamentData
The Class Parliament.
Modifier and Type | Interface and Description |
---|
Nested classes/interfaces inherited from interface com.hack23.cia.model.api.sweden.common.ImportedData |
---|
ImportedData.ImportStatus |
Constructor and Description |
---|
Parliament()
Instantiates a new parliament. |
Modifier and Type | Method and Description |
---|---|
void |
addCommitteeData(CommitteeData committee)
Adds the committee data. |
void |
addParliamentYearData(ParliamentYearData parliamentYear)
Adds the parliament year data. |
boolean |
containsCommittee(CommitteeData committee)
Contains committee. |
boolean |
containsParliamentYear(ParliamentYearData parliamentYear)
Contains parliament year. |
boolean |
dataCanBeUpdated()
Data can be updated. |
boolean |
generatesParliamentMetaData()
Generates parliament meta data. |
Role[] |
getActorDefinedRoles()
Gets the actor defined roles. |
Role[] |
getActorRoles()
Gets the actor roles. |
protected TypeContext |
getApplicationTypeContext()
Gets the application type context. |
Committee |
getCommitteeById(Long id)
Gets the committee by id. |
Set<Committee> |
getCommittees()
Gets the committees. |
Set<CommitteeData> |
getCommitteesData()
Gets the committees data. |
String |
getDescription()
Gets the description. |
Election |
getElectionById(Long id)
Gets the election by id. |
Set<Election> |
getElections()
Gets the elections. |
Set<ElectionData> |
getElectionsData()
Gets the elections data. |
Long |
getId()
Gets the id. |
Date |
getImportedDate()
Gets the imported date. |
ImportedData.ImportStatus |
getImportStatus()
Gets the import status. |
String |
getName()
Gets the name. |
ParliamentMetaData |
getParliamentMetaData()
Gets the parliament meta data. |
ParliamentYear |
getParliamentYearById(Long id)
Gets the parliament year by id. |
Set<ParliamentYear> |
getParliamentYears()
Gets the parliament years. |
Set<ParliamentYearData> |
getParliamentYearsData()
Gets the parliament years data. |
ResourceType |
getResourceType()
Gets the resource type. |
String |
getShortCode()
Gets the short code. |
String |
getUrl()
Gets the url. |
Long |
getVersion()
Gets the version. |
void |
setActorDefinedRoles(Role[] roles)
Sets the actor defined roles. |
void |
setActorRoles(Role[] roles)
Sets the actor roles. |
void |
setCommittees(Set<Committee> committees)
Sets the committees. |
void |
setDescription(String description)
Sets the description. |
void |
setElections(Set<Election> elections)
Sets the elections. |
void |
setId(Long id)
Sets the id. |
void |
setImportedDate(Date importedDate)
Sets the imported date. |
void |
setImportStatus(ImportedData.ImportStatus importStatus)
Sets the import status. |
void |
setName(String name)
Sets the name. |
void |
setParliamentYears(Set<ParliamentYear> parliamentYears)
Sets the parliament years. |
void |
setResourceType(ResourceType resourceType)
Sets the resource type. |
void |
setShortCode(String shortCode)
Sets the short code. |
void |
setUrl(String url)
Sets the url. |
void |
setVersion(Long version)
Sets the version. |
Methods inherited from class com.hack23.cia.model.impl.common.BaseEntity |
---|
equals, getTypeContext, hashCode, isNew |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Parliament()
Method Detail |
---|
public void addCommitteeData(CommitteeData committee)
ParliamentData
addCommitteeData
in interface ParliamentData
committee
- the committeepublic void addParliamentYearData(ParliamentYearData parliamentYear)
ParliamentData
addParliamentYearData
in interface ParliamentData
parliamentYear
- the parliament yearpublic boolean containsCommittee(CommitteeData committee)
ParliamentData
containsCommittee
in interface ParliamentData
committee
- the committeepublic boolean containsParliamentYear(ParliamentYearData parliamentYear)
ParliamentData
containsParliamentYear
in interface ParliamentData
parliamentYear
- the parliament yearpublic boolean dataCanBeUpdated()
dataCanBeUpdated
in interface ParliamentMappedData
public boolean generatesParliamentMetaData()
generatesParliamentMetaData
in interface ParliamentMappedData
public Role[] getActorDefinedRoles()
Actor
getActorDefinedRoles
in interface Actor
public Role[] getActorRoles()
Actor
getActorRoles
in interface Actor
protected TypeContext getApplicationTypeContext()
BaseEntity
getApplicationTypeContext
in class BaseEntity
public Committee getCommitteeById(Long id)
id
- the idpublic Set<Committee> getCommittees()
public Set<CommitteeData> getCommitteesData()
ParliamentData
getCommitteesData
in interface ParliamentData
public String getDescription()
public Election getElectionById(Long id)
id
- the idpublic Set<Election> getElections()
public Set<ElectionData> getElectionsData()
public Long getId()
BaseEntity
getId
in interface PersistedModelObject
getId
in class BaseEntity
public Date getImportedDate()
ImportedData
getImportedDate
in interface ImportedData
public ImportedData.ImportStatus getImportStatus()
ImportedData
getImportStatus
in interface ImportedData
public String getName()
Actor
getName
in interface Actor
getName
in interface Environment
public ParliamentMetaData getParliamentMetaData()
getParliamentMetaData
in interface ParliamentMappedData
public ParliamentYear getParliamentYearById(Long id)
id
- the idpublic Set<ParliamentYear> getParliamentYears()
public Set<ParliamentYearData> getParliamentYearsData()
ParliamentData
getParliamentYearsData
in interface ParliamentData
public ResourceType getResourceType()
Resource
getResourceType
in interface Resource
public String getShortCode()
public String getUrl()
public Long getVersion()
BaseEntity
getVersion
in interface PersistedModelObject
getVersion
in class BaseEntity
public void setActorDefinedRoles(Role[] roles)
Actor
setActorDefinedRoles
in interface Actor
roles
- the new actor defined rolespublic void setActorRoles(Role[] roles)
Actor
setActorRoles
in interface Actor
roles
- the new actor rolespublic void setCommittees(Set<Committee> committees)
committees
- the new committeespublic void setDescription(String description)
description
- the new descriptionpublic void setElections(Set<Election> elections)
elections
- the new electionspublic void setId(Long id)
PersistedModelObject
setId
in interface PersistedModelObject
id
- the new idpublic void setImportedDate(Date importedDate)
ImportedData
setImportedDate
in interface ImportedData
importedDate
- the new imported datepublic void setImportStatus(ImportedData.ImportStatus importStatus)
ImportedData
setImportStatus
in interface ImportedData
importStatus
- the new import statuspublic void setName(String name)
Actor
setName
in interface Actor
setName
in interface Environment
name
- the new namepublic void setParliamentYears(Set<ParliamentYear> parliamentYears)
parliamentYears
- the new parliament yearspublic void setResourceType(ResourceType resourceType)
resourceType
- the new resource typepublic void setShortCode(String shortCode)
shortCode
- the new short codepublic void setUrl(String url)
url
- the new urlpublic void setVersion(Long version)
PersistedModelObject
setVersion
in interface PersistedModelObject
version
- the new version
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |