org.alfresco.service.cmr.security
Class AuthorityType

java.lang.Object
  extended by java.lang.Enum
      extended by org.alfresco.service.cmr.security.AuthorityType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class AuthorityType
extends java.lang.Enum

The types of authority that are available.

Available types are:

  1. USER - an authority that identifies a user
  2. GROUP - an authority that identifies a group
  3. OWNER - the special authority that applies to the owner of a node
  4. EVERYONE - the special authority that is interpreted as everyone
  5. GUEST - the special authority that applies to a GUEST (An unknown, unauthenticated user)
  6. WILDCARD - the set of all authorities (including the guest user)

See Also:
Serialized Form

Field Summary
static AuthorityType ADMIN
           
static AuthorityType EVERYONE
           
static AuthorityType GROUP
           
static AuthorityType GUEST
           
static AuthorityType OWNER
           
static AuthorityType ROLE
           
static AuthorityType USER
           
static AuthorityType WILDCARD
           
 
Method Summary
 boolean equals(java.lang.String authority)
           
static AuthorityType getAuthorityType(java.lang.String authority)
           
abstract  java.lang.String getFixedString()
           
abstract  int getOrderPosition()
           
abstract  java.lang.String getPrefixString()
           
abstract  boolean isFixedString()
           
abstract  boolean isPrefixed()
           
static AuthorityType valueOf(java.lang.String name)
           
static AuthorityType[] 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

ADMIN

public static final AuthorityType ADMIN

EVERYONE

public static final AuthorityType EVERYONE

OWNER

public static final AuthorityType OWNER

GUEST

public static final AuthorityType GUEST

GROUP

public static final AuthorityType GROUP

ROLE

public static final AuthorityType ROLE

USER

public static final AuthorityType USER

WILDCARD

public static final AuthorityType WILDCARD
Method Detail

values

public static AuthorityType[] values()

valueOf

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

isFixedString

public abstract boolean isFixedString()

getFixedString

public abstract java.lang.String getFixedString()

isPrefixed

public abstract boolean isPrefixed()

getPrefixString

public abstract java.lang.String getPrefixString()

getOrderPosition

public abstract int getOrderPosition()

equals

public boolean equals(java.lang.String authority)

getAuthorityType

public static AuthorityType getAuthorityType(java.lang.String authority)


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