|
||||||||||
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
com.waveset.object.AdminRole
An Admin Role enables the definition of unique combinations of scope and capabilities which can then be assigned to a User to more granularly control what the user is allowed to do and on which objects. One or more Admin Roles can be assigned to a single User and one or more Users can be assigned the same Admin Role.
Nested Class Summary | |
static class |
AdminRole.AssignToUsers
This is an object containing the information that will determine the set of users this admin role should be auto-assigned to. |
static class |
AdminRole.ControlledObjects
This is an object containing the type, list, and rules that will determine the set of objects, of the specified type, that are in the scope of the user assigned this admin role. |
static class |
AdminRole.ControlledObjectSubGroup
A class that contains a reference to an object group and one or more member object refs that should either be included or excluded from access. |
Nested classes inherited from class com.waveset.object.PersistentObject |
PersistentObject.Comparator, PersistentObject.InitialInstance |
Field Summary | |
static java.lang.String |
code_id
|
static java.lang.String |
EXCLUDE
|
static java.lang.String |
INCLUDE
|
static java.lang.String |
USER_ADMIN_ROLE
The name of a special admin role that is implicitly assigned to all users. |
Fields inherited from class com.waveset.object.Principal |
_adminGroupRefs, _adminGroups, _adminGroupsRuleRef, _adminRoleRefs, _controlledObjectGroupRefs, _controlledObjectGroups, _controlledObjectGroupsRuleRef, _permissions, _userFormRef, _viewUserFormRef, LAST_LOGIN_LOCALE_PROP, LOCALE_PROP |
Fields inherited from class com.waveset.object.PersistentObject |
_trace, trace |
Constructor Summary | |
AdminRole()
|
|
AdminRole(org.w3c.dom.Element e)
|
|
AdminRole(java.lang.String name)
|
Method Summary | |
protected void |
addSubclassElements(java.lang.StringBuffer b)
Each concrete subclass may append to the buffer an XML representation of any fields it adds to PersistentObject (if those field values must persist). |
ObjectRef |
getAdminGroupsOnObjectRuleRef()
|
java.util.List |
getAssignerRefs()
|
AdminRole.AssignToUsers |
getAssignToUsers()
|
protected WSAttribute |
getAttributeValues(java.lang.String attrName)
|
AdminRole.ControlledObjects |
getControlledObjects()
|
java.util.Map |
getControlledObjectSubGroupObjectGroups(java.lang.String command)
|
java.util.List |
getControlledObjectSubGroups()
|
java.util.ArrayList |
getReferences()
Return the list of references within this object. |
Type |
getType()
Return the type of this object. |
boolean |
includesExcludesTypeForOrg(Type type,
ObjectRef ogref)
Test to see if this AdminRole includes or excludes any objects of the specified Type in the specified object group (org) |
java.util.List |
listQueryableAttributes()
|
java.util.List |
listQueryableReferenceAttributes()
|
protected void |
parseSubclassElements(org.w3c.dom.Element e)
Each concrete subclass should parse from the XML buffer any persisted subclass-specific elements (generally, the same ones that it writes into the buffer). |
void |
setAdminGroupsOnObjectRuleRef(ObjectRef adminGroupsOnObjectRuleRef)
|
void |
setAssignerRefs(java.util.List assignerRefs)
|
void |
setAssignToUsers(AdminRole.AssignToUsers assignToUsers)
|
void |
setControlledObjects(AdminRole.ControlledObjects controlledObjects)
|
void |
setControlledObjectSubGroups(java.util.List controlledObjectSubGroups)
|
void |
visit(Visitor v)
Visitor interface. |
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 INCLUDE
public static final java.lang.String EXCLUDE
public static final java.lang.String USER_ADMIN_ROLE
Constructor Detail |
public AdminRole()
public AdminRole(org.w3c.dom.Element e) throws WavesetException
public AdminRole(java.lang.String name)
Method Detail |
public Type getType()
PersistentObject
getType
in class PersistentObject
public java.util.ArrayList getReferences()
getReferences
in class Principal
public java.util.List getControlledObjectSubGroups()
public void setControlledObjectSubGroups(java.util.List controlledObjectSubGroups)
public boolean includesExcludesTypeForOrg(Type type, ObjectRef ogref)
public java.util.Map getControlledObjectSubGroupObjectGroups(java.lang.String command) throws WavesetException
WavesetException
public AdminRole.ControlledObjects getControlledObjects()
public void setControlledObjects(AdminRole.ControlledObjects controlledObjects)
public ObjectRef getAdminGroupsOnObjectRuleRef()
public void setAdminGroupsOnObjectRuleRef(ObjectRef adminGroupsOnObjectRuleRef)
public AdminRole.AssignToUsers getAssignToUsers()
public void setAssignToUsers(AdminRole.AssignToUsers assignToUsers)
public java.util.List getAssignerRefs()
public void setAssignerRefs(java.util.List assignerRefs)
public java.util.List listQueryableAttributes()
listQueryableAttributes
in class Principal
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 list of queryable attribute for PersistentObjects are included in the subclasses list.
public java.util.List listQueryableReferenceAttributes()
listQueryableReferenceAttributes
in class Principal
defined attributes
that this type of persistent object exposes as queryable attributes
and for which each value is a reference to another persistent object.
Any subclasses 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 Principal
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 void visit(Visitor v) throws WavesetException
visit
in class PersistentObject
WavesetException
protected void addSubclassElements(java.lang.StringBuffer b)
PersistentObject
NOTE: Any subclass that overrides this method must similarly override parseSubclassElements() so that the subclass elements are restored.
addSubclassElements
in class PersistentObject
protected void parseSubclassElements(org.w3c.dom.Element e) throws WavesetException
PersistentObject
parseSubclassElements
in class PersistentObject
WavesetException
PersistentObject's default implementation is a no-op.
,
PersistentObject.parseXml(Element)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |