|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.novell.admin.rbs.RBSAssociation
Static model class that represents the association of a Role to a User, Group, O, or OU. Note that the class represents a single scope and does not interact directly with NDS.
| Constructor Summary | |
RBSAssociation()
Default Constructor that set object, role and scope to null, index to -1. |
|
RBSAssociation(ObjectEntry objectEntry,
RBSRole rbsRole,
ObjectEntry theScope,
long scopeIndex,
boolean inherit)
Constructor. |
|
| Method Summary | |
long |
getIndex()
Returns the index used in this relationship. |
ObjectEntry |
getObject()
Returns the User, Group, O, or OU in this Association. |
ObjectEntry |
getPreviousScope()
Gets the previous scope of this relationship. |
RBSRole |
getRole()
Returns the Role in this relationship. |
ObjectEntry |
getScope()
Gets the scope of this relationship. |
boolean |
isExternalScope()
Checks if the scope is an External Scope |
boolean |
isInherited()
Finds if the association is inheritable |
boolean |
isValid(int type)
Checks if both the oe and scope are set |
void |
setInherited(boolean state)
Sets whether the relation is inherited or not. |
void |
setObject(ObjectEntry obj)
Sets the ObjectEntry representing the User, Group, O, or OU in this Association. |
void |
setRole(RBSRole newRole)
Sets the Role in this relationship. |
void |
setScope(ObjectEntry theScope)
Sets the scope scope to be used in this relation. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public RBSAssociation(ObjectEntry objectEntry,
RBSRole rbsRole,
ObjectEntry theScope,
long scopeIndex,
boolean inherit)
objectEntry - ObjectEntry representing a User, Group, O or OUrbsRole - The RBSRole object that objectEntry is associated withtheScope - The ObjectEntry representing the scopescopeIndex - The index (Interval) into the rbsMember attribute of the
rbsRole object for use in going back into the rbsTrusteeOf
attribute of objectEntry to obtain the scopeinherit - True if relation is inherited from scope down, false if only for scope
(applicable mostly to NDS)public RBSAssociation()
| Method Detail |
public ObjectEntry getObject()
public void setObject(ObjectEntry obj)
obj - The ObjectEntry for the associationpublic RBSRole getRole()
public void setRole(RBSRole newRole)
newRole - The Role that is used in this relationship.public long getIndex()
public ObjectEntry getPreviousScope()
public ObjectEntry getScope()
public void setScope(ObjectEntry theScope)
ctx - The ObjectEntry representing a container for this scope.public boolean isInherited()
public void setInherited(boolean state)
boolean - state, true if relation is from scope down, false if
applys only to the container scope
public boolean isExternalScope()
throws SPIException,
NamespaceException
public boolean isValid(int type)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||