org.jcreme.permissioning
Class ObjectType

java.lang.Object
  extended byorg.jcreme.enumerations.Enumeration
      extended byorg.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

Field Summary
protected  java.util.Hashtable authorizedDomains
           
protected static java.util.Hashtable fromName
           
 
Fields inherited from class org.jcreme.enumerations.Enumeration
 
Constructor Summary
protected ObjectType(java.lang.String name)
           
 
Method Summary
 void addDomain(Domain domain, AccessType access)
           
 boolean canAccess(Domain domain, AccessType access)
           
protected  java.util.Hashtable getFromName()
          This method is for internal use only.
static ObjectType getObjectType(java.lang.String name)
           
static ObjectType[] getObjectTypes()
           
static Enumeration[] getValues()
          This method enables to retrieve all the possible values of an Enumeration class.
 void removeDomain(Domain domain, AccessType access)
           
 
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

authorizedDomains

protected java.util.Hashtable authorizedDomains
Constructor Detail

ObjectType

protected ObjectType(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.
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.