|
Oracle® WebCenter Content Java API Reference for Imaging 11g Release 1 (11.1.1) E12853-03 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.imaging.BasePermissions
public abstract class BasePermissions
The BasePermissions class provides the definition of all permissions within the Imaging System. The class provides a basic getter and setter for permissions that is controlled by the sub-classes. Each sub-class of BasePermissions defines the subset of permissions that are valid from the complete enumeration set provided by: BasePermissions.Permission
. Each subclass will implement a getter and a setter for each permission that is valid. The methods implemented in the BasePermissions class will check the list of valid permissions for this instance and throw the runtime IllegalArgumentException if the permission is not valid for this instance.
Nested Class Summary | |
---|---|
static class |
BasePermissions.Permission The enumeration of all permissions within the Imaging System. |
Field Summary | |
---|---|
protected java.util.Map<BasePermissions.Permission,java.lang.String> |
permissionPropertyMap |
protected java.util.Map<java.lang.String,BasePermissions.Permission> |
propertyPermissionMap |
Constructor Summary | |
---|---|
protected |
BasePermissions() Default constructor required for JAXB serialization. |
Method Summary | |
---|---|
protected void |
addPermissions(java.util.List<BasePermissions.Permission> permissions) |
protected static short |
convertBoolToShort(boolean boolVal) |
protected static java.lang.Boolean |
convertShortToBool(short shortVal) |
java.util.Set<BasePermissions.Permission> |
getKeys() Gets the permissions defined for this implementation from the enumeration of permissions. |
boolean |
getPermission(BasePermissions.Permission perm) Gets state of the permission for this instance. |
void |
setAll(boolean value) |
void |
setPermission(BasePermissions.Permission perm, boolean value) Sets state of the permission for this instance. |
BasePermissions.Permission |
toEnum(java.lang.String propName) Gets the permission enumeration based off the specified property name. |
java.lang.String |
toString() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Map<BasePermissions.Permission,java.lang.String> permissionPropertyMap
protected java.util.Map<java.lang.String,BasePermissions.Permission> propertyPermissionMap
Constructor Detail |
---|
protected BasePermissions()
Method Detail |
---|
protected static short convertBoolToShort(boolean boolVal)
protected static java.lang.Boolean convertShortToBool(short shortVal)
public java.lang.String toString()
toString
in class java.lang.Object
protected void addPermissions(java.util.List<BasePermissions.Permission> permissions)
public void setAll(boolean value)
public java.util.Set<BasePermissions.Permission> getKeys()
public BasePermissions.Permission toEnum(java.lang.String propName)
propName
- Property name of the permission enumeration to return.public boolean getPermission(BasePermissions.Permission perm)
true
implies that this object has the specified permission. If the permission is not valid for the implementation, then an IllegalArgumentException is thrown. The preferred method is to use the getters implemented by the concrete implementations of this class.perm
- the permission whose state is being requested.public void setPermission(BasePermissions.Permission perm, boolean value)
true
implies that this object has the specified permission. If the permission is not valid for the implementation, then an IllegalArgumentException is thrown. The preferred method is to use the setters implemented by the concrete implementations of this class.perm
- the permission whose state is being changed.value
- true
if this object has this specific permission.
|
Oracle® WebCenter Content Java API Reference for Imaging 11g Release 1 (11.1.1) E12853-03 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |