Enum AccessControlOperation

    • 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()
      • 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.