|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StringRight
This interface is responsible for managing the ACS rights, of all the base objects in an ACS. It handles the links to the upper and lower rights in the rights network, allowing comparison, and the next upper and lower rights.
The ACS right may be classed, that is associated to a target class, or typed, that is associated to a type in a target class. If it is typed, it is classed.
For instance, in LCA Lotus Notes, 'read_javascript' is a typed right for the target class Actor, where 'javascript' is a type of Actor. When a right is classed or typed, the class and the type may be superior to the right container (AGO, ACL, PRI, BDG) specification, or may be inferior, and this is specified by the ACS policy. For instance, if an ACL has an actor as target, and if it uses a classed right where the target class is Directory, then the ACL will be effective only if its ACS sets that the ACL specification is superior to the right specification. The ACS may also set that both specifications are applicable.
Two-levels right is managed as one parent right which has a detailled description in a set of lower rights. The parent is the unique upper right of these slave rights. Multi-level rights is a generalization where a right is both a parent and a slave. Some rights set may have these tree structure without be marked and displayed as multi-level rights.
The right has a generic equivallent called a StringMetaRight, which is used to compare rights from different ACS.
Method Summary | |
---|---|
int |
compareTo(java.lang.Object _o)
Compare two StringRight instances through the internal key and, if not null, acsname comparisons, whatever the right, sens, power and field. |
boolean |
equals(java.lang.Object _obj)
Compares the two StringRights. |
void |
finalizeForUser()
This method removes the StringRight from the ACS list, from the metaright, from the lower and upper rights. |
ImmutableName |
getAcsName()
|
java.lang.String |
getComment()
|
StringMetaRight |
getEorMetaRight()
Get the global Access Road right which is a generic description of this ACS right. |
ImmutableName |
getFullName()
The full name is unique for the Access Road program. |
int |
getInternalKey()
|
StringRight[] |
getLowerRights()
Get the set of lower rights which are strictly lesser than this right without any intermediate right, following the network of rights. |
java.lang.String |
getNickName()
Get a short name limited to 5 characters if positive, 6 characters if starts with '|' and positive, and 7 if negative, for displaying this right in the views. |
java.lang.String |
getRight()
If the right is not typed, the result contains the kernel right only. |
java.lang.String |
getTargetClass()
|
java.lang.String |
getTargetClassType()
|
StringRight[] |
getUpperRights()
Get the set of upper rights which are strictly greater than this right without any intermediate right, following the network of rights. |
int |
hashCode()
|
boolean |
isDesactivated()
Get if the right is desactivated. |
boolean |
isEmpty()
|
boolean |
isGrantingRight()
|
boolean |
isParent()
|
boolean |
isSlave()
A slave right has a strong link with a parent right. |
boolean |
isTargetClassed()
|
boolean |
isTargetClassTyped()
|
void |
setComment(java.lang.String _s)
|
void |
setDesactivated(boolean _b)
Set that the right is desactivated. |
void |
setParent(boolean _b)
Set the right as parent of lower rights - the slaves - in a multi-level right. |
void |
setSlave(boolean _b)
Set the right an unique upper right - the parent - in a multi-level right. |
java.lang.String |
toString()
|
Methods inherited from interface ARoad0.gBaseInterface.BaseObject |
---|
getName |
Methods inherited from interface ARoad0.gBaseInterface.FinalizedObject |
---|
finalizeForBase |
Methods inherited from interface ARoad0.gBaseInterface.BoundBean |
---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
Method Detail |
---|
ImmutableName getAcsName()
ImmutableName getFullName()
getFullName
in interface BaseObject
java.lang.String getNickName()
getNickName
in interface BaseObject
boolean isTargetClassed()
boolean isTargetClassTyped()
boolean isGrantingRight()
boolean isParent()
boolean isSlave()
void setParent(boolean _b) throws BaseError
_b
- is true to set the right as parent
BaseError
- if there are lower rights.void setSlave(boolean _b) throws BaseError
_b
- is true to set the right as slave
BaseError
- if there is not exactly one upper right,
or if it is not a parent.void setDesactivated(boolean _b)
_b
- is true to desactivate the rightboolean isDesactivated()
java.lang.String getRight()
int getInternalKey()
java.lang.String getTargetClass()
java.lang.String getTargetClassType()
StringRight[] getUpperRights()
StringRight[] getLowerRights()
StringMetaRight getEorMetaRight()
boolean isEmpty()
java.lang.String getComment()
void setComment(java.lang.String _s)
_s
- is a comment which is associated to the right.boolean equals(java.lang.Object _obj)
equals
in interface BaseObject
equals
in class java.lang.Object
_obj
- to compare
int hashCode()
hashCode
in interface BaseObject
hashCode
in class java.lang.Object
int compareTo(java.lang.Object _o) throws java.lang.ClassCastException
compareTo
in interface java.lang.Comparable
_o
- to compare
java.lang.ClassCastException
- - if the specified object's type
prevents it from being compared to this current Objectvoid finalizeForUser() throws UpDateError
finalizeForUser
in interface FinalizedObjectForUser
UpDateError
- if the ACS does not known the right (if
it is a clone, typically), if the metaright is wrong,
or if a lower or upper right is not correct.java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |