|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.object.PersistentObject
com.waveset.object.Principal
A Principal represents a Subject identity. Principals are associated with a Subject.
Nested Class Summary |
Nested classes inherited from class com.waveset.object.PersistentObject |
PersistentObject.Comparator, PersistentObject.InitialInstance |
Field Summary | |
protected java.util.List |
_adminGroupRefs
|
protected AdminGroup[] |
_adminGroups
|
protected ObjectRef |
_adminGroupsRuleRef
|
protected java.util.List |
_adminRoleRefs
The list of Admin Role Object Refs assigned to this principal. |
protected java.util.List |
_controlledObjectGroupRefs
|
protected ObjectGroup[] |
_controlledObjectGroups
|
protected ObjectRef |
_controlledObjectGroupsRuleRef
|
protected Permission[] |
_permissions
|
protected ObjectRef |
_userFormRef
the ObjectRef of a user form that will be used for creating/editing users in this principal's authorization scope. |
protected ObjectRef |
_viewUserFormRef
|
static java.lang.String |
code_id
|
static java.lang.String |
LAST_LOGIN_LOCALE_PROP
The name of the property used to store the locale where the user last logged in. |
static java.lang.String |
LOCALE_PROP
The name of the property used to store the locale of the user. |
Fields inherited from class com.waveset.object.PersistentObject |
_trace, trace |
Constructor Summary | |
Principal()
|
|
Principal(Principal src)
|
|
Principal(java.lang.String name)
|
Method Summary | |
void |
addAdminGroup(AdminGroup ag)
|
void |
addAdminGroupRef(ObjectRef ref)
Add one approver to our approver list. |
protected void |
addCommonPrincipalElements(java.lang.StringBuffer b)
Add any elements common to all principal objects. |
void |
addControlledObjectGroup(ObjectGroup og)
|
void |
addPermission(Permission perm)
|
void |
clearAdminGroups()
|
java.util.ArrayList |
getAdminGroupRefs()
|
AdminGroup[] |
getAdminGroups()
|
ObjectRef |
getAdminGroupsRuleRef()
|
java.util.List |
getAdminRoleRefs()
|
java.util.List |
getAdminRoles()
Resolve and return the list of admin role objects. |
protected WSAttribute |
getAttributeValues(java.lang.String attrName)
|
java.util.ArrayList |
getControlledObjectGroupRefs()
|
ObjectGroup[] |
getControlledObjectGroups()
|
ObjectRef |
getControlledObjectGroupsRuleRef()
|
java.util.List |
getEncryptedValues()
|
Permission[] |
getPermissions()
|
java.util.ArrayList |
getReferences()
Return the list of references within this object. |
Configuration |
getUserForm()
|
java.lang.String |
getUserFormId()
|
ObjectRef |
getUserFormRef()
|
Configuration |
getViewUserForm()
|
java.lang.String |
getViewUserFormId()
|
ObjectRef |
getViewUserFormRef()
|
boolean |
hasCapabilities()
|
java.util.List |
listQueryableAttributes()
|
java.util.List |
listQueryableReferenceAttributes()
|
java.util.List |
listSummaryAttributes()
Returns the complete list of defined attributes
that this type of persistent object exposes as summary attributes
(regardless of whether this particular object has a value for each). |
protected void |
parseCommonPrincipalElements(org.w3c.dom.Element e)
|
static Permission[] |
parsePermissions(org.w3c.dom.Element e)
|
void |
removeAdminGroup(AdminGroup ag)
|
void |
removeControlledObjectGroup(ObjectGroup og)
|
void |
removePermission(Permission perm)
|
void |
setAdminGroupRefs(java.util.List refs)
|
void |
setAdminGroups(AdminGroup[] agarray)
|
void |
setAdminGroupsRuleRef(ObjectRef adminGroupsRuleRef)
|
void |
setAdminRoleRefs(java.util.List adminRoles)
|
void |
setAdminRoles(java.util.List adminRoles)
set the list of admin roles. |
void |
setControlledObjectGroupRefs(java.util.List refs)
Has to be public, its called by AccessPolicy. |
void |
setControlledObjectGroups(ObjectGroup[] ogarray)
|
void |
setControlledObjectGroupsRuleRef(ObjectRef controlledObjectGroupsRuleRef)
|
void |
setPermissions(Permission[] permissions)
|
void |
setUserForm(Configuration userForm)
|
void |
setUserFormRef(ObjectRef userFormRef)
|
void |
setViewUserForm(Configuration viewUserForm)
|
void |
setViewUserFormRef(ObjectRef viewUserFormRef)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static final java.lang.String LOCALE_PROP
public static final java.lang.String LAST_LOGIN_LOCALE_PROP
protected Permission[] _permissions
protected java.util.List _controlledObjectGroupRefs
protected ObjectGroup[] _controlledObjectGroups
protected ObjectRef _controlledObjectGroupsRuleRef
protected java.util.List _adminGroupRefs
protected AdminGroup[] _adminGroups
protected ObjectRef _adminGroupsRuleRef
protected java.util.List _adminRoleRefs
protected ObjectRef _userFormRef
protected ObjectRef _viewUserFormRef
Constructor Detail |
public Principal()
public Principal(java.lang.String name)
public Principal(Principal src) throws WavesetException
Method Detail |
public java.util.ArrayList getReferences()
getReferences
in class PersistentObject
public java.util.List listSummaryAttributes()
PersistentObject
defined attributes
that this type of persistent object exposes as summary attributes
(regardless of whether this particular object has a value for each).
Any subclass of PersistentObject that overrides this method
should first invoke super.listSummaryAttributes()
to ensure that the subclass includes summary attributes
that are common to all PersistentObjects.
Any subclass that overrides this implementation must also consider the length of the summary string that will be generated from these attributes.
listSummaryAttributes
in class PersistentObject
defined attributes
that this type of persistent object exposes as summary attributes
(regardless of whether this particular object has a value for each).
Any subclass of PersistentObject that overrides this method
should first invoke super.listSummaryAttributes()
to ensure that the subclass includes summary attributes
that are common to all PersistentObjects.
Constants.MAX_SUMMARY_STRING_LENGTH
,
PersistentObject.getSummaryString()
public java.util.List listQueryableAttributes()
listQueryableAttributes
in class PersistentObject
defined attributes
that this type of persistent object exposes as queryable attributes
(regardless of whether this particular object has a value for each).
Any subclass of PersistentObject that overrides this method
should first invoke super.listQueryableAttributes()
to ensure that the subclass includes queryable attributes
that are common to all PersistentObjects.
public java.util.List listQueryableReferenceAttributes()
listQueryableReferenceAttributes
in class PersistentObject
defined attributes
that this type of persistent object supports as queryable attributes
and for which each value is a reference
to another persistent object.
Any subclass of Principal that overrides this method must first invoke super.listQueryableReferenceAttributes() to ensure that the following attributes are returned as queryable reference attributes for all Principals.
protected WSAttribute getAttributeValues(java.lang.String attrName)
getAttributeValues
in class PersistentObject
attrName
- - the name of the attribute for which to return values.
WSAttribute
that represents the value (or values)
that this object contains for the specified attribute.
public java.util.List getEncryptedValues()
getEncryptedValues
in class PersistentObject
Any subclass of PersistentObject that overrides this method must first invoke super.getEncryptedValues() to ensure that the list of encrypted values for PersistentObjects are included in the subclasses list.
public void addPermission(Permission perm)
public void removePermission(Permission perm)
public Permission[] getPermissions()
public void setPermissions(Permission[] permissions)
public java.util.ArrayList getControlledObjectGroupRefs()
public void setControlledObjectGroupRefs(java.util.List refs)
public ObjectGroup[] getControlledObjectGroups() throws WavesetException
WavesetException
public void setControlledObjectGroups(ObjectGroup[] ogarray)
public void addControlledObjectGroup(ObjectGroup og)
public void removeControlledObjectGroup(ObjectGroup og)
public ObjectRef getControlledObjectGroupsRuleRef()
public void setControlledObjectGroupsRuleRef(ObjectRef controlledObjectGroupsRuleRef)
public void clearAdminGroups()
public java.util.ArrayList getAdminGroupRefs()
public void setAdminGroupRefs(java.util.List refs)
public AdminGroup[] getAdminGroups() throws WavesetException
WavesetException
public void setAdminGroups(AdminGroup[] agarray) throws WavesetException
WavesetException
public void addAdminGroup(AdminGroup ag) throws WavesetException
WavesetException
public void addAdminGroupRef(ObjectRef ref)
public void removeAdminGroup(AdminGroup ag)
public ObjectRef getAdminGroupsRuleRef()
public void setAdminGroupsRuleRef(ObjectRef adminGroupsRuleRef)
public java.util.List getAdminRoleRefs()
public java.util.List getAdminRoles() throws WavesetException
WavesetException
public void setAdminRoles(java.util.List adminRoles)
adminRoles
- - List of ObjectRefs or Admin Role objectspublic void setAdminRoleRefs(java.util.List adminRoles)
public ObjectRef getUserFormRef()
public Configuration getUserForm() throws WavesetException
WavesetException
public java.lang.String getUserFormId()
public void setUserFormRef(ObjectRef userFormRef)
public void setUserForm(Configuration userForm)
public boolean hasCapabilities()
public ObjectRef getViewUserFormRef()
public Configuration getViewUserForm() throws WavesetException
WavesetException
public java.lang.String getViewUserFormId()
public void setViewUserFormRef(ObjectRef viewUserFormRef)
public void setViewUserForm(Configuration viewUserForm)
protected void addCommonPrincipalElements(java.lang.StringBuffer b)
protected void parseCommonPrincipalElements(org.w3c.dom.Element e) throws WavesetException
WavesetException
public static Permission[] parsePermissions(org.w3c.dom.Element e) throws WavesetException
WavesetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |