Enum RunLevel

  • All Implemented Interfaces:
    Serializable, Comparable<RunLevel>

    public enum RunLevel
    extends Enum<RunLevel>
    Represents an operative status of the whole application. Different aspects are enabled depending on the current runlevel.
    Since:
    7.6.4
    Author:
    Marco Meschieri - LogicalDOC
    • Enum Constant Detail

      • DEFAULT

        public static final RunLevel DEFAULT
      • BULKLOAD

        public static final RunLevel BULKLOAD
      • DEVEL

        public static final RunLevel DEVEL
      • DEMO

        public static final RunLevel DEMO
      • UPDATED

        public static final RunLevel UPDATED
      • SLAVE

        public static final RunLevel SLAVE
    • Method Detail

      • values

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

        public static RunLevel 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
      • current

        public static RunLevel current()
      • aspectEnabled

        public boolean aspectEnabled​(String aspect)
      • setAspect

        public void setAspect​(String aspect,
                              boolean enabled)
      • isDefault

        public boolean isDefault()
      • isDemo

        public boolean isDemo()
      • isBulkload

        public boolean isBulkload()
      • isDevel

        public boolean isDevel()
      • getAspects

        public static List<String> getAspects()