|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.security.GenericAccessRight
public class GenericAccessRight
A generic implementation of an access right object.
AccessRight,
Serialized Form| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
|
| Constructor Summary | |
|---|---|
GenericAccessRight(java.lang.String name)
|
|
GenericAccessRight(java.lang.String name,
java.lang.String description)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
Returns true if this access right is the same as another. |
static AccessRight |
fromString(java.lang.String pRightName)
Returns an access right with the given name, reusing rights with the same name. |
java.lang.String |
getDescription()
Returns a description of the access right suitable for display to a user. |
java.lang.String |
getDisplayName()
Returns the human-readable name of the access right. |
java.lang.String |
getName()
Returns a machine-readable name of the access right, useful for persisting the object. |
int |
hashCode()
Access rights with the same name hash equivalently. |
static AccessRight[] |
parse(java.lang.String pRightString)
Parses a list of access rights. |
java.lang.String |
toString()
Output a representation of the assess right. |
static java.lang.String |
toString(AccessRight[] pRights)
Converts a list of access rights into a parseable string. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String CLASS_VERSION
| Constructor Detail |
|---|
public GenericAccessRight(java.lang.String name)
public GenericAccessRight(java.lang.String name,
java.lang.String description)
| Method Detail |
|---|
public static AccessRight fromString(java.lang.String pRightName)
public static AccessRight[] parse(java.lang.String pRightString)
public static java.lang.String toString(AccessRight[] pRights)
public java.lang.String getName()
getName in interface AccessRightpublic java.lang.String getDisplayName()
getDisplayName in interface AccessRightpublic java.lang.String getDescription()
getDescription in interface AccessRightpublic boolean equals(java.lang.Object object)
equals in interface AccessRightequals in interface java.security.acl.Permissionequals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in interface java.security.acl.PermissiontoString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||