Enum Roles

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Roles>

    public enum Roles
    extends java.lang.Enum<Roles>
    All applicative roles of Flower Docs application
    Author:
    Christopher Laszczuk
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Roles fromValue​(java.lang.String value)  
      java.lang.String value()  
      static Roles valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Roles[] 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

      • USER

        public static final Roles USER
        The role for a simple user
      • SCOPE_MANAGER

        public static final Roles SCOPE_MANAGER
        The role for a scope manager
      • FUNCTIONAL_ADMIN

        public static final Roles FUNCTIONAL_ADMIN
      • SECURITY_ADMIN

        public static final Roles SECURITY_ADMIN
      • ADMIN

        public static final Roles ADMIN
        The role for an administrator
      • SYSTEM_ADMIN

        public static final Roles SYSTEM_ADMIN
        The role for a system administrator
      • DOCUMENT_CREATOR

        public static final Roles DOCUMENT_CREATOR
        The role that allows to have insert tab
      • DELEGATION_MANAGER

        public static final Roles DELEGATION_MANAGER
        The role that allows to create the delegation from anyone to anyone
    • Method Detail

      • values

        public static Roles[] 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 (Roles c : Roles.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Roles 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 name
        java.lang.NullPointerException - if the argument is null
      • value

        public java.lang.String value()
      • fromValue

        public static Roles fromValue​(java.lang.String value)