|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.workflow.definer.PermissionSet
PermissionSet
class stores a set of permissions. Permissions
are represented as bits in a permission mask: 1 means permission is granted;
0 that it is not granted. Up to 64 permissions may be stored.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private long |
permissionMask
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
Constructor Summary | |
PermissionSet()
No-arg constructor: empty lisat of permissions. |
|
PermissionSet(long mask)
Constructs a permission set given a "permission mask." Supported API: false |
Method Summary | |
void |
addPermission(String permission)
Adds a permission to the set of permissions of the variable. |
Enumeration |
getPermissions()
Returns an enumeration with all permissions contained in the set. |
boolean |
hasPermission(String permission)
Returns true if permission passed as argument is amongst the set of permissions of the variable. |
boolean |
isEmpty()
Returns 'true' if there is no permission in the set; 'false' otherwise. |
long |
longValue()
Supported API: false |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(PermissionSet thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
removePermission(String permission)
Removes a permission from the set of permissions of the variable. |
void |
resetPermissions()
Sets all permissions to 'false.' Supported API: false |
String |
toString()
Returnsa a string representation of the permission set. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private long permissionMask
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public PermissionSet(long mask)
mask
- public PermissionSet()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(PermissionSet thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public void addPermission(String permission) throws InvalidPermissionException
permission
-
InvalidPermissionException
public void removePermission(String permission) throws InvalidPermissionException
permission
-
InvalidPermissionException
public boolean hasPermission(String permission) throws InvalidPermissionException
permission
-
InvalidPermissionException
public void resetPermissions()
public Enumeration getPermissions() throws InvalidPermissionException
InvalidPermissionException
public long longValue()
public boolean isEmpty()
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |