public class ACLEntry extends java.lang.Object implements IACLEntry, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
mACLEntryString |
protected java.lang.String |
mExpressions |
protected boolean |
mNegative |
protected java.util.Hashtable |
mPerms |
Constructor and Description |
---|
ACLEntry()
Class Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addPermission(IACL acl,
java.lang.String permission)
Adds permission to this entry.
|
boolean |
checkPermission(java.lang.String permission)
Checks if this entry has the given permission.
|
boolean |
containPermission(java.lang.String permission)
Checks to see if this
ACLEntry contains a
particular permission |
java.lang.String |
getACLEntryString()
Gets the ACL Entry String
|
java.lang.String |
getAttributeExpressions()
Retrieves the expression associated with this entry.
|
boolean |
isNegative()
Checks if this ACL entry is set to negative.
|
static ACLEntry |
parseACLEntry(IACL acl,
java.lang.String aclEntryString)
Parse string in the following format:
|
java.util.Enumeration |
permissions()
Returns a list of permissions associated with
this entry.
|
void |
setACLEntryString(java.lang.String s)
Sets the ACL entry string
|
void |
setAttributeExpressions(java.lang.String expressions)
Sets the expression associated with this entry.
|
void |
setNegative()
Sets this ACL entry negative.
|
java.lang.String |
toString()
Returns the string representation of this ACLEntry
|
protected java.util.Hashtable mPerms
protected java.lang.String mExpressions
protected boolean mNegative
protected java.lang.String mACLEntryString
public boolean isNegative()
public void setNegative()
public void setACLEntryString(java.lang.String s)
s
- string in the following format:
allow|deny (right[,right...]) attribute_expression
public java.lang.String getACLEntryString()
getACLEntryString
in interface IACLEntry
allow|deny (right[,right...]) attribute_expression
public void addPermission(IACL acl, java.lang.String permission)
acl
- the acl instance that this aclEntry is associated withpermission
- one of the "rights" defined for each
protected resource in its ACLpublic java.util.Enumeration permissions()
public void setAttributeExpressions(java.lang.String expressions)
expressions
- the evaluator expressions. For example,
group="Administrators"public java.lang.String getAttributeExpressions()
public boolean containPermission(java.lang.String permission)
ACLEntry
contains a
particular permissionpermission
- one of the "rights" defined for each
protected resource in its ACLACLEntry
; false otherwise.public boolean checkPermission(java.lang.String permission)
permission
- one of the "rights" defined for each
protected resource in its ACLpublic static ACLEntry parseACLEntry(IACL acl, java.lang.String aclEntryString)
allow|deny (right[,right...]) attribute_expressioninto an instance of the
ACLEntry
classacl
- the acl instance associated with this aclentryaclEntryString
- aclEntryString in the specified formatACLEntry
classpublic java.lang.String toString()
toString
in class java.lang.Object