public class Group extends Named
Constructor and Description |
---|
Group(java.lang.String name)
creates a group with the given name (no description)
|
Group(java.lang.String name,
java.lang.String description)
creates a group with the given name and description
|
Group(java.lang.String name,
TotalAuthority authority)
creates a group, and assigns it to the total authority
|
Modifier and Type | Method and Description |
---|---|
int |
getAuthoritiesindex() |
TotalAuthority |
getAuthority(int index)
returns an authority assigned to this group
|
java.lang.String |
getDescription() |
int |
getDomainAuthoritiesIndex() |
ModuleDomainAuthority |
getDomainAuthorityAt(int index)
gets the domain authority at the given index
|
User |
getMember(int index)
gets the user member at the given index
|
int |
getMemberindex()
gets the number of users assigned to this group
|
boolean |
isModuleadminismember() |
void |
setGroupInAuthority(TotalAuthority authority)
adds the following total authority to the group
|
void |
setGroupInDomainAuthority(ModuleDomainAuthority domainauthority)
adds a domain authority to the group.
|
void |
setModuleAdminAsMember()
adds the module administrator as a member of the group
|
changeName, cleanName, equals, getName
public Group(java.lang.String name, java.lang.String description)
name
- a unique name of the group, should be a valid java field
namedescription
- description of the group in plain languagepublic Group(java.lang.String name)
name
- a unique name of the group, should be a valid java field namepublic Group(java.lang.String name, TotalAuthority authority)
name
- a unique name of the group, should be a valid java field
nameauthority
- authority that should be granted to the grouppublic boolean isModuleadminismember()
public java.lang.String getDescription()
public void setModuleAdminAsMember()
public void setGroupInAuthority(TotalAuthority authority)
authority
- authority to be granted to the grouppublic void setGroupInDomainAuthority(ModuleDomainAuthority domainauthority)
domainauthority
- the domain authority to add to the grouppublic int getDomainAuthoritiesIndex()
public ModuleDomainAuthority getDomainAuthorityAt(int index)
index
- index of the authority between 0 (included) and
getDomainAuthoritiesIndex (excluded)public int getAuthoritiesindex()
public TotalAuthority getAuthority(int index)
index
- a number between 0 (included) and getAuthoritiesindex (excluded)public int getMemberindex()
public User getMember(int index)
index
- a number between 0 (included) and getMemberindex (excluded)