|
||||||||
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
public abstract class Principal
A Principal represents a Subject identity. Principals are associated with a Subject.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.waveset.object.PersistentObject |
---|
PersistentObject.Comparator, PersistentObject.InitialInstance |
Field Summary | |
---|---|
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. |
static java.lang.String |
USER_FORM_NAME
|
static java.lang.String |
VIEW_USER_FORM_NAME
|
Fields inherited from class com.waveset.object.PersistentObject |
---|
INITIAL_OBJECT_VERSION |
Constructor Summary | |
---|---|
Principal(com.sun.idm.object.IDMObjectClass objectClass)
|
|
Principal(com.sun.idm.object.IDMObjectClass objectClass,
java.lang.String name)
|
|
Principal(Principal src)
|
Method Summary | |
---|---|
void |
addAdminGroup(com.waveset.object.AdminGroup ag)
|
void |
addAdminGroupRef(com.waveset.object.ObjectRef ref)
Add one approver to our approver list. |
void |
addControlledObjectGroup(ObjectGroup og)
|
void |
addPermission(com.waveset.object.Permission perm)
|
void |
clearAdminGroups()
|
java.util.ArrayList |
getAdminGroupRefs()
|
com.waveset.object.AdminGroup[] |
getAdminGroups()
|
com.waveset.object.ObjectRef |
getAdminGroupsRuleRef()
|
java.util.List |
getAdminRoleRefs()
|
java.util.List |
getAdminRoles()
Resolve and return the list of admin role objects. |
java.util.ArrayList |
getControlledObjectGroupRefs()
|
ObjectGroup[] |
getControlledObjectGroups()
|
com.waveset.object.ObjectRef |
getControlledObjectGroupsRuleRef()
|
com.waveset.object.ObjectRef |
getCustomForm(java.lang.String key)
Get the ObjectRef for a particular key in the per-user custom form list. |
java.util.List |
getCustomFormKeys()
Return the keys for all the custom forms currently held by Principal. |
java.util.List |
getEncryptedValues()
|
com.waveset.object.Permission[] |
getPermissions()
|
java.util.ArrayList |
getReferences()
Return the list of references within this object. |
com.waveset.object.Configuration |
getUserForm()
|
java.lang.String |
getUserFormId()
|
com.waveset.object.ObjectRef |
getUserFormRef()
|
com.waveset.object.Configuration |
getViewUserForm()
|
java.lang.String |
getViewUserFormId()
|
com.waveset.object.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). |
static com.waveset.object.Permission[] |
parsePermissions(org.w3c.dom.Element e)
|
void |
removeAdminGroup(com.waveset.object.AdminGroup ag)
|
void |
removeControlledObjectGroup(ObjectGroup og)
|
void |
removePermission(com.waveset.object.Permission perm)
|
void |
setAdminGroupRefs(java.util.List refs)
|
void |
setAdminGroups(com.waveset.object.AdminGroup[] agarray)
|
void |
setAdminGroupsRuleRef(com.waveset.object.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(com.waveset.object.ObjectRef controlledObjectGroupsRuleRef)
|
void |
setCustomForm(java.lang.String key,
com.waveset.object.ObjectRef form)
Set a name and (Form) ObjectRef pair on the object. |
void |
setPermissions(com.waveset.object.Permission[] permissions)
|
void |
setUserForm(com.waveset.object.Configuration userForm)
|
void |
setUserFormRef(com.waveset.object.ObjectRef userFormRef)
|
void |
setViewUserForm(com.waveset.object.Configuration viewUserForm)
|
void |
setViewUserFormRef(com.waveset.object.ObjectRef viewUserFormRef)
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String code_id
public static final java.lang.String LAST_LOGIN_LOCALE_PROP
public static final java.lang.String LOCALE_PROP
public static final java.lang.String USER_FORM_NAME
public static final java.lang.String VIEW_USER_FORM_NAME
Constructor Detail |
---|
public Principal(com.sun.idm.object.IDMObjectClass objectClass)
public Principal(com.sun.idm.object.IDMObjectClass objectClass, java.lang.String name)
public Principal(Principal src) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
Method Detail |
---|
public void addAdminGroup(com.waveset.object.AdminGroup ag) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public void addAdminGroupRef(com.waveset.object.ObjectRef ref)
public void addControlledObjectGroup(ObjectGroup og)
public void addPermission(com.waveset.object.Permission perm)
public void clearAdminGroups()
public java.util.ArrayList getAdminGroupRefs()
public com.waveset.object.AdminGroup[] getAdminGroups() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public com.waveset.object.ObjectRef getAdminGroupsRuleRef()
public java.util.List getAdminRoleRefs()
public java.util.List getAdminRoles() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public java.util.ArrayList getControlledObjectGroupRefs()
public ObjectGroup[] getControlledObjectGroups() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public com.waveset.object.ObjectRef getControlledObjectGroupsRuleRef()
public com.waveset.object.ObjectRef getCustomForm(java.lang.String key)
key
- - index name of the form
public java.util.List getCustomFormKeys()
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 com.waveset.object.Permission[] getPermissions()
public java.util.ArrayList getReferences()
getReferences
in class PersistentObject
public com.waveset.object.Configuration getUserForm() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public java.lang.String getUserFormId()
public com.waveset.object.ObjectRef getUserFormRef()
public com.waveset.object.Configuration getViewUserForm() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public java.lang.String getViewUserFormId()
public com.waveset.object.ObjectRef getViewUserFormRef()
public boolean hasCapabilities()
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.
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 static com.waveset.object.Permission[] parsePermissions(org.w3c.dom.Element e) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public void removeAdminGroup(com.waveset.object.AdminGroup ag)
public void removeControlledObjectGroup(ObjectGroup og)
public void removePermission(com.waveset.object.Permission perm)
public void setAdminGroupRefs(java.util.List refs)
public void setAdminGroups(com.waveset.object.AdminGroup[] agarray) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public void setAdminGroupsRuleRef(com.waveset.object.ObjectRef adminGroupsRuleRef)
public void setAdminRoleRefs(java.util.List adminRoles)
public void setAdminRoles(java.util.List adminRoles)
adminRoles
- - List of ObjectRefs or Admin Role objectspublic void setControlledObjectGroupRefs(java.util.List refs)
public void setControlledObjectGroups(ObjectGroup[] ogarray)
public void setControlledObjectGroupsRuleRef(com.waveset.object.ObjectRef controlledObjectGroupsRuleRef)
public void setCustomForm(java.lang.String key, com.waveset.object.ObjectRef form)
key
- - the index name of the formform
- - object ref of the formpublic void setPermissions(com.waveset.object.Permission[] permissions)
public void setUserForm(com.waveset.object.Configuration userForm)
public void setUserFormRef(com.waveset.object.ObjectRef userFormRef)
public void setViewUserForm(com.waveset.object.Configuration viewUserForm)
public void setViewUserFormRef(com.waveset.object.ObjectRef viewUserFormRef)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |