org.jcreme.permissioning
Class ObjectType
java.lang.Object
org.jcreme.enumerations.Enumeration
org.jcreme.permissioning.ObjectType
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable
- public class ObjectType
- extends Enumeration
This enumeration represent the types of the manipulated objects (data). It
provides the association between domains and data types.
- Version:
- $Revision: 1.1 $
- Author:
- $Author: dbregeon $
- See Also:
- Serialized Form
Fields inherited from class org.jcreme.enumerations.Enumeration |
|
Constructor Summary |
protected |
ObjectType(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
authorizedDomains
protected java.util.Hashtable authorizedDomains
ObjectType
protected ObjectType(java.lang.String 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()
getObjectType
public static ObjectType getObjectType(java.lang.String name)
- Parameters:
name
-
- Returns:
getObjectTypes
public static ObjectType[] getObjectTypes()
- 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:
addDomain
public void addDomain(Domain domain,
AccessType access)
- Parameters:
domain
- access
-
removeDomain
public void removeDomain(Domain domain,
AccessType access)
- Parameters:
domain
- access
-
canAccess
public boolean canAccess(Domain domain,
AccessType access)
- Parameters:
domain
- access
-
- Returns:
Copyright 2006 null. All Rights Reserved.