public class Permission
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DENY
Constant defining the action for denying permission.
|
static java.lang.String |
GRANT
Constant defining the action for granting permission.
|
| Constructor and Description |
|---|
Permission() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributeRight(AttributeRight attributeRight)
Deprecated.
Add rights directly to Collection returned in
getAttributeRights() instead.
|
void |
addClassRight(java.lang.String classRight)
Deprecated.
Add rights directly to Collection returned in
getClassRights() instead.
|
java.lang.String |
getAction()
Returns the action of the Permission.
|
java.util.Collection<AttributeRight> |
getAttributeRights()
Returns a collection of attribute level rights.
|
java.util.Collection<java.lang.String> |
getClassRights()
Returns a collection of class level rights.
|
void |
setAction(java.lang.String action)
Changes the action of the Permission.
|
java.lang.String |
toString() |
public static final java.lang.String GRANT
public static final java.lang.String DENY
public java.lang.String getAction()
public void setAction(java.lang.String action)
action - Enumerated String action, GRANT or DENY.public java.util.Collection<AttributeRight> getAttributeRights()
public java.util.Collection<java.lang.String> getClassRights()
public void addClassRight(java.lang.String classRight)
classRight - name of an operation that may be executed
on the subject class of entity(s) being protected.public void addAttributeRight(AttributeRight attributeRight)
attributeRight - represents an operation that may be performed
on an attribute of the subject class of entity(s)
being protected.public java.lang.String toString()
toString in class java.lang.Object