Package com.cbe

Enum Class Permissions

All Implemented Interfaces:
Serializable, Comparable<Permissions>, Constable

public enum Permissions extends Enum<Permissions>
Represents the access permission that can be set for any cbe::Object or cbe::Container.

Forms the the possible different combinations of:
  • 1: Read
  • 2: Write
  • 4: Delete
  • 8: ChangeACL
Combinations give access for users to use different API calls.

    0. NoPermissions
  1. Read
  2. Write
  3. ReadWrite
  4. Delete
  5. ReadDelete
  6. WriteDelete
  7. ReadWriteDelete
  8. ChangeACL
  9. ReadChangeACL
  10. WriteChangeACL
  11. ReadWriteChangeACL
  12. DeleteChangeACL
  13. ReadDeleteChangeACL
  14. WriteDeleteChangeACL
  15. AllPermissions
E.g.: cbe::Permissions::ReadDelete gives the ability to call move() on a Container or an Object.
  • Enum Constant Details

    • Read

      public static final Permissions Read
    • Write

      public static final Permissions Write
    • ReadWrite

      public static final Permissions ReadWrite
    • Delete

      public static final Permissions Delete
    • ReadDelete

      public static final Permissions ReadDelete
    • WriteDelete

      public static final Permissions WriteDelete
    • ReadWriteDelete

      public static final Permissions ReadWriteDelete
    • ChangeACL

      public static final Permissions ChangeACL
    • ReadChangeACL

      public static final Permissions ReadChangeACL
    • WriteChangeACL

      public static final Permissions WriteChangeACL
    • ReadWriteChangeACL

      public static final Permissions ReadWriteChangeACL
    • DeleteChangeACL

      public static final Permissions DeleteChangeACL
    • ReadDeleteChangeACL

      public static final Permissions ReadDeleteChangeACL
    • WriteDeleteChangeACL

      public static final Permissions WriteDeleteChangeACL
    • AllPermissions

      public static final Permissions AllPermissions
    • NoPermissions

      public static final Permissions NoPermissions
  • Method Details

    • values

      public static Permissions[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Permissions valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • swigValue

      public final int swigValue()
    • swigToEnum

      public static Permissions swigToEnum(int swigValue)