org.jcreme.permissioning
Class Domain
java.lang.Object
org.jcreme.enumerations.Enumeration
org.jcreme.permissioning.Domain
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable
- public class Domain
- 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 |
protected static java.util.Hashtable |
fromName
|
| Fields inherited from class org.jcreme.enumerations.Enumeration |
|
|
Constructor Summary |
protected |
Domain(java.lang.String name)
|
|
Method Summary |
static boolean |
contains(java.lang.String name)
|
static Domain |
get(java.lang.String name)
|
static Domain[] |
getDomains()
|
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. |
static void |
remove(java.lang.String name)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
fromName
protected static final java.util.Hashtable fromName
Domain
protected Domain(java.lang.String name)
get
public static Domain get(java.lang.String name)
- Parameters:
name -
- Returns:
contains
public static boolean contains(java.lang.String name)
- Parameters:
name -
- Returns:
remove
public static void remove(java.lang.String name)
- Parameters:
name -
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.
- See Also:
Enumeration.getFromName()
getDomains
public static Domain[] getDomains()
- Returns:
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:
Copyright 2006 null. All Rights Reserved.