public class ModuleDomainGroup extends Named
Constructor and Description |
---|
ModuleDomainGroup(java.lang.String name,
ModuleDomainAuthority parentauthority)
create the given module domain group assigned to the module domain authority
|
ModuleDomainGroup(java.lang.String name,
java.lang.String description,
ModuleDomainAuthority parentauthority)
create the given module domain group assigned to the module domain authority
with the description
|
Modifier and Type | Method and Description |
---|---|
void |
addModuleDomainAuthority(ModuleDomainAuthority otherauthority)
adds a another authority to the domain group
|
void |
addTotalAuthority(TotalAuthority totalauthority)
adds a total authority (an authority valid for all domains)
|
int |
getAuthoritySize()
get the number of authorities for this domain group
|
java.lang.String |
getDescription() |
ModuleDomainAuthority |
getModuleDomainAuthority(int index)
get the domain authority at the given index
|
TotalAuthority |
getTotalAuthority(int index)
get the authority at the given index
|
int |
getTotalAuthoritySize()
get the number of total authorities assigned to this domain group
|
changeName, cleanName, equals, getName
public ModuleDomainGroup(java.lang.String name, ModuleDomainAuthority parentauthority)
name
- name of the module domain groupparentauthority
- authority the group is assigned topublic ModuleDomainGroup(java.lang.String name, java.lang.String description, ModuleDomainAuthority parentauthority)
name
- name of the module domain groupdescription
- plain language description of the groupparentauthority
- authority the group is assigned topublic java.lang.String getDescription()
public void addModuleDomainAuthority(ModuleDomainAuthority otherauthority)
otherauthority
- authority to be addedpublic int getAuthoritySize()
public ModuleDomainAuthority getModuleDomainAuthority(int index)
index
- a number between 0 (included) and getAuthoritySize() (excuded)public void addTotalAuthority(TotalAuthority totalauthority)
totalauthority
- total authoritypublic int getTotalAuthoritySize()
public TotalAuthority getTotalAuthority(int index)
index
- a number between 0 (included) and getTotalAuthoritySize
(excluded)