org.alfresco.repo.security.permissions
Class ACLType

java.lang.Object
  extended by java.lang.Enum
      extended by org.alfresco.repo.security.permissions.ACLType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class ACLType
extends java.lang.Enum

The ACL Type

See Also:
Serialized Form

Field Summary
static ACLType DEFINING
          Defining permission - not reused anywhere
static ACLType FIXED
          An ACL defined in its own right - there is no inheriance context
static ACLType GLOBAL
          A single instance for global permissions
static ACLType LAYERED
          Layered types
static ACLType OLD
          Old style permissions that require a parent wlak to resolve
static ACLType SHARED
          Shared permission, reused for inhertiance from defining permission
 
Method Summary
static ACLType getACLTypeFromId(int id)
          Get the ACLType from the value stored in the DB
abstract  int getId()
          Get the id for the ACLType stored in the DB
static ACLType valueOf(java.lang.String name)
           
static ACLType[] values()
           
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

OLD

public static final ACLType OLD
Old style permissions that require a parent wlak to resolve


DEFINING

public static final ACLType DEFINING
Defining permission - not reused anywhere


SHARED

public static final ACLType SHARED
Shared permission, reused for inhertiance from defining permission


FIXED

public static final ACLType FIXED
An ACL defined in its own right - there is no inheriance context


GLOBAL

public static final ACLType GLOBAL
A single instance for global permissions


LAYERED

public static final ACLType LAYERED
Layered types

Method Detail

values

public static ACLType[] values()

valueOf

public static ACLType valueOf(java.lang.String name)

getId

public abstract int getId()
Get the id for the ACLType stored in the DB

Returns:

getACLTypeFromId

public static ACLType getACLTypeFromId(int id)
Get the ACLType from the value stored in the DB

Parameters:
id -
Returns:


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.