org.jcreme.permissioning
Class AccessType

java.lang.Object
  extended byorg.jcreme.enumerations.Enumeration
      extended byorg.jcreme.permissioning.AccessType
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class AccessType
extends Enumeration

This enumeration represent the functional domains of an organization. Permissions to access certain data types are based on Domains. This ensures that the some business Domains have no access to some data if needed.

Version:
$Revision: 1.1 $
Author:
$Author: dbregeon $
See Also:
Serialized Form

Field Summary
static AccessType CREATE
          Represents access for creating data.
static AccessType DELETE
          Represents access for deleting data.
protected static java.util.Hashtable fromName
           
static AccessType READ
          Represents access for reading data.
static java.lang.String S_CREATE
          The name of the CREATE access type.
static java.lang.String S_DELETE
          The name of the DELETE access type.
static java.lang.String S_READ
          The name of the READ access type.
static java.lang.String S_WRITE
          The name of the WRITE access type.
static AccessType WRITE
          Represents access for writing data.
 
Fields inherited from class org.jcreme.enumerations.Enumeration
 
Constructor Summary
protected AccessType(java.lang.String name)
           
 
Method Summary
static AccessType getAccessType(java.lang.String name)
           
static AccessType[] getAccessTypes()
           
protected  java.util.Hashtable getFromName()
          This method is for internal use only.
static Enumeration[] getValues()
          This method enables to retrieve all the possible values of an Enumeration class.
 
Methods inherited from class org.jcreme.enumerations.Enumeration
compareTo, getName, readResolve, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fromName

protected static final java.util.Hashtable fromName

S_READ

public static final java.lang.String S_READ
The name of the READ access type.

See Also:
Constant Field Values

READ

public static final AccessType READ
Represents access for reading data.


S_WRITE

public static final java.lang.String S_WRITE
The name of the WRITE access type.

See Also:
Constant Field Values

WRITE

public static final AccessType WRITE
Represents access for writing data.


S_DELETE

public static final java.lang.String S_DELETE
The name of the DELETE access type.

See Also:
Constant Field Values

DELETE

public static final AccessType DELETE
Represents access for deleting data.


S_CREATE

public static final java.lang.String S_CREATE
The name of the CREATE access type.

See Also:
Constant Field Values

CREATE

public static final AccessType CREATE
Represents access for creating data.

Constructor Detail

AccessType

protected AccessType(java.lang.String name)
Method Detail

getFromName

protected java.util.Hashtable getFromName()
Description copied from class: Enumeration
This method is for internal use only.

Specified by:
getFromName in class Enumeration
Returns:
the Hashtable that links the enumerated values names with the actual enumerated value.

getAccessType

public static AccessType getAccessType(java.lang.String name)
Parameters:
name -
Returns:
the AccessType associated to name.

getAccessTypes

public static AccessType[] getAccessTypes()
Returns:
the list of possible AccessTypes.

getValues

public static Enumeration[] getValues()
Description copied from class: Enumeration
This method enables to retrieve all the possible values of an Enumeration class. This method should be overriden in the subclasses to have the desired result. The method in this class returns an empty array.

Returns:
the instances of this class.


Copyright 2006 null. All Rights Reserved.