Enum AuthorityType
- java.lang.Object
-
- java.lang.Enum<AuthorityType>
-
- org.alfresco.service.cmr.security.AuthorityType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AuthorityType>
@AlfrescoPublicApi public enum AuthorityType extends java.lang.Enum<AuthorityType>
The types of authority that are available.- USER - an authority that identifies a user
- GROUP - an authority that identifies a group
- OWNER - the special authority that applies to the owner of a node
- EVERYONE - the special authority that is interpreted as everyone
- GUEST - the special authority that applies to a GUEST (An unknown, unauthenticated user)
- WILDCARD - the set of all authorities (including the guest user)
- Author:
- Andy Hind
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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)
Returns the enum constant of this type with the specified name.static AuthorityType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant 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()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AuthorityType c : AuthorityType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuthorityType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
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)
-
-