Enum AccessControlOperation
- java.lang.Object
-
- java.lang.Enum<AccessControlOperation>
-
- org.silverpeas.core.security.authorization.AccessControlOperation
-
- All Implemented Interfaces:
Serializable
,Comparable<AccessControlOperation>
public enum AccessControlOperation extends Enum<AccessControlOperation>
- Author:
- Yohann Chastagnier Date: 30/12/13
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccessControlOperation
from(String name)
String
getName()
static boolean
isDownloadActionFrom(Collection<AccessControlOperation> accessControlOperations)
Indicates if it exists a download action from the given collection.static boolean
isPersistActionFrom(Collection<AccessControlOperation> accessControlOperations)
Indicates if it exists a persist action from the given collection.static boolean
isSearchActionFrom(Collection<AccessControlOperation> accessControlOperations)
Indicates if it exists a search action from the given collection.static boolean
isSharingActionFrom(Collection<AccessControlOperation> accessControlOperations)
Indicates if it exists a sharing action from the given collection.static AccessControlOperation
valueOf(String name)
Returns the enum constant of this type with the specified name.static AccessControlOperation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final AccessControlOperation UNKNOWN
-
CREATION
public static final AccessControlOperation CREATION
-
MODIFICATION
public static final AccessControlOperation MODIFICATION
-
DELETION
public static final AccessControlOperation DELETION
-
DOWNLOAD
public static final AccessControlOperation DOWNLOAD
-
SHARING
public static final AccessControlOperation SHARING
-
SEARCH
public static final AccessControlOperation SEARCH
-
-
Method Detail
-
values
public static AccessControlOperation[] 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 (AccessControlOperation c : AccessControlOperation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AccessControlOperation valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
public String getName()
-
from
public static AccessControlOperation from(String name)
-
isPersistActionFrom
public static boolean isPersistActionFrom(Collection<AccessControlOperation> accessControlOperations)
Indicates if it exists a persist action from the given collection.- Parameters:
accessControlOperations
- actions.- Returns:
- true if it exists at least one of persist action, false otherwise.
-
isSharingActionFrom
public static boolean isSharingActionFrom(Collection<AccessControlOperation> accessControlOperations)
Indicates if it exists a sharing action from the given collection.- Parameters:
accessControlOperations
- actions.- Returns:
- true if it exists a sharing action, false otherwise.
-
isDownloadActionFrom
public static boolean isDownloadActionFrom(Collection<AccessControlOperation> accessControlOperations)
Indicates if it exists a download action from the given collection.- Parameters:
accessControlOperations
- actions.- Returns:
- true if it exists a download action, false otherwise.
-
isSearchActionFrom
public static boolean isSearchActionFrom(Collection<AccessControlOperation> accessControlOperations)
Indicates if it exists a search action from the given collection.A search action means that all the specific details of resources have been already processed (e.g. visibility of publication) before using the
AccessController
.- Parameters:
accessControlOperations
- actions.- Returns:
- true if it exists a search action, false otherwise.
-
-