com.silverpeas.accesscontrol
Enum AccessControlOperation

java.lang.Object
  extended by java.lang.Enum<AccessControlOperation>
      extended by com.silverpeas.accesscontrol.AccessControlOperation
All Implemented Interfaces:
Serializable, Comparable<AccessControlOperation>

public enum AccessControlOperation
extends Enum<AccessControlOperation>

User: Yohann Chastagnier Date: 30/12/13


Enum Constant Summary
creation
           
deletion
           
download
           
modification
           
sharing
           
unknown
           
 
Field Summary
static EnumSet<AccessControlOperation> PERSIST_ACTIONS
           
 
Method Summary
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 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.
 
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
 

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
Field Detail

PERSIST_ACTIONS

public static EnumSet<AccessControlOperation> PERSIST_ACTIONS
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 name
NullPointerException - 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.


Copyright © 2016 Silverpeas. All Rights Reserved.