|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.directdemocracyportal.democracy.model.core.BaseEntity org.directdemocracyportal.democracy.model.core.Agent org.directdemocracyportal.democracy.model.core.GroupAgent org.directdemocracyportal.democracy.model.world.Organisation
@Entity public class Organisation extends GroupAgent
The Class Organisation.
Modifier and Type | Class and Description |
---|---|
static class |
Organisation.OrganisationRoles
The Enum OrganisationRoles. |
Constructor and Description |
---|
Organisation()
Instantiates a new organisation. |
Modifier and Type | Method and Description |
---|---|
void |
addMember(Person person)
Adds the member. |
Person |
findMemberByFullNameAndParty(java.lang.String fname,
java.lang.String lname,
java.lang.String party)
Find member by full name and party. |
Person |
findMemberByName(java.lang.String name)
Find member by name. |
Organisation |
findOrgByAbbr(java.lang.String abbr)
Find org by abbr. |
Resource |
findResourceByName(java.lang.String name)
Find resource by name. |
java.lang.String |
getAbbreviation()
Gets the abbreviation. |
java.util.Map<PoliticalParty,java.lang.Long> |
getActivePoliticalParties()
Gets the active political parties. |
Country |
getCountry()
Gets the country. |
java.lang.Long |
getNumberOfMembers()
Gets the number of members. |
OrganisationType |
getOrganisationType()
Gets the organisation type. |
Region |
getRegion()
Gets the region. |
java.util.Set<Person> |
personsActive()
Persons active. |
boolean |
playsRoleInOrganisation(Agent player)
Plays role in organisation. |
void |
removeMember(Person person)
Removes the member. |
void |
setAbbreviation(java.lang.String abbreviation)
Sets the abbreviation. |
void |
setCountry(Country country)
Sets the country. |
void |
setNumberOfMembers(java.lang.Long numberOfMembers)
Sets the number of members. |
void |
setOrganisationType(OrganisationType organisationType)
Sets the organisation type. |
void |
setRegion(Region region)
Sets the region. |
Methods inherited from class org.directdemocracyportal.democracy.model.core.GroupAgent |
---|
findDefinedRoleByName, findOrgByName, getChildren, getDefinedRoles, getParent, setChildren, setDefinedRoles, setParent |
Methods inherited from class org.directdemocracyportal.democracy.model.core.Agent |
---|
equals, getId, getName, getResources, getRoles, hashCode, setId, setName, setResources, setRoles |
Methods inherited from class org.directdemocracyportal.democracy.model.core.BaseEntity |
---|
isNew |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Organisation()
Method Detail |
---|
public java.lang.String getAbbreviation()
public void setAbbreviation(java.lang.String abbreviation)
abbreviation
- the new abbreviationpublic Country getCountry()
public void setCountry(Country country)
country
- the new countrypublic Region getRegion()
public void setRegion(Region region)
region
- the new regionpublic OrganisationType getOrganisationType()
public void setOrganisationType(OrganisationType organisationType)
organisationType
- the new organisation typepublic java.lang.Long getNumberOfMembers()
public void setNumberOfMembers(java.lang.Long numberOfMembers)
numberOfMembers
- the new number of memberspublic boolean playsRoleInOrganisation(Agent player)
player
- the playerpublic java.util.Set<Person> personsActive()
public Person findMemberByName(java.lang.String name)
name
- the namepublic Person findMemberByFullNameAndParty(java.lang.String fname, java.lang.String lname, java.lang.String party)
fname
- the fnamelname
- the lnameparty
- the partypublic Organisation findOrgByAbbr(java.lang.String abbr)
abbr
- the abbrpublic Resource findResourceByName(java.lang.String name)
name
- the namepublic java.util.Map<PoliticalParty,java.lang.Long> getActivePoliticalParties()
public void addMember(Person person)
person
- the personpublic void removeMember(Person person)
person
- the person
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |