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, setNotesgetFirstDate, getFirstUser, getInternalVersion, getLastDate, getLastUser, isInstanceLevelSecurityNeeded, isNew, preCommit, toStringequals, getBigNumericId, getGlobalId, getNumericId, getParent, hashCodegetFirstDate, getFirstUser, getLastDate, getLastUser, isInstanceLevelSecurityNeededgetGlobalId, getParentpublic 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)
OdiPrincipalpublic void setSupervisor(boolean isSupervisor)