|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.security.acl.CompositeACLPermission
public class CompositeACLPermission
This class represents a composite permission - a permission that contains one or more basic permissions. The bitmask value of this permission is calculated by combining (logical or) the bitmask values of the basic permissions it contains. Thus, a composite permission's bitmask can have more than one bit on, and each bit corresponds to one of the basic permissions that are part of the composite permission.
| Constructor Summary | |
|---|---|
CompositeACLPermission(BasicACLPermission... permissions)
Builds an instance of CompositeACLPermission with the given basic permissions. |
|
CompositeACLPermission(int mask)
Builds an instance of CompositeACLPermission with the specified bitmask value. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
int |
getMaskValue()
Obtains the bitmask value of the permission. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeACLPermission(int mask)
Builds an instance of CompositeACLPermission with the specified bitmask value.
mask - an int representing the bitmask value of the permission being created.public CompositeACLPermission(BasicACLPermission... permissions)
Builds an instance of CompositeACLPermission with the given basic permissions.
permissions - a comma-separated list of BasicACLPermissions.| Method Detail |
|---|
public int getMaskValue()
BitMaskPermissionObtains the bitmask value of the permission.
getMaskValue in interface BitMaskPermissionint representing the value of the bitmask.public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||