public class OdiRole extends OdiPrincipal
OdiPrincipal.UserCommunity
Constructor and Description |
---|
OdiRole(java.lang.String name,
boolean isSupervisor)
Base constructor for creating valid entity with minimum information.
|
Modifier and Type | Method and Description |
---|---|
void |
addEnterprisePrincipalMember(OdiEnterprisePrincipal enterprisePrincipal)
Map OdiRole with enterprise principal (role or user)
|
java.util.List |
getEnterprisePrincipalMembers() |
void |
removeEnterprisePrincipalMember(OdiEnterprisePrincipal enterprisePrincipal)
Remove mapping between current OdiRole and enterprise principal (role or user)
|
void |
setName(java.lang.String name)
Set name for this principal
|
void |
setSupervisor(boolean isSupervisor) |
addOdiProfile, addOdiProfileList, getInternalId, getName, getNotes, getOdiProfileList, getPrincipalId, isRole, isSupervisor, removeOdiProfile, setNotes
getFirstDate, getFirstUser, getInternalVersion, getLastDate, getLastUser, isInstanceLevelSecurityNeeded, isNew, preCommit, toString
equals, getBigNumericId, getGlobalId, getNumericId, getParent, hashCode
getFirstDate, getFirstUser, getLastDate, getLastUser, isInstanceLevelSecurityNeeded
getGlobalId, getParent
public OdiRole(java.lang.String name, boolean isSupervisor)
name
- isSupervisor
- public java.util.List getEnterprisePrincipalMembers()
public void addEnterprisePrincipalMember(OdiEnterprisePrincipal enterprisePrincipal)
enterprisePrincipal
- could not be nullpublic void removeEnterprisePrincipalMember(OdiEnterprisePrincipal enterprisePrincipal) throws EnterprisePrincipalIsNotRoleMemberException
enterprisePrincipal
- could not be nullEnterprisePrincipalIsNotRoleMemberException
- if mapping doesn't existpublic void setName(java.lang.String name)
OdiPrincipal
public void setSupervisor(boolean isSupervisor)