Enum Class ConfigurationSource

java.lang.Object
java.lang.Enum<ConfigurationSource>
com.saperion.ngc.configuration.ConfigurationSource
All Implemented Interfaces:
Serializable, Comparable<ConfigurationSource>, Constable

public enum ConfigurationSource extends Enum<ConfigurationSource>
Sources to load configuration options from.
  • Enum Constant Details

    • CONTEXT

      public static final ConfigurationSource CONTEXT
      The servlet-context (web.xml and includes).
    • GLOBAL

      public static final ConfigurationSource GLOBAL
      Global settings (webclient.properties).
    • SAPERION

      public static final ConfigurationSource SAPERION
      Saperion settings (saperion.properties).
    • SAPVIEWER_FEATURES

      public static final ConfigurationSource SAPVIEWER_FEATURES
      SAPViewer features (SAPViewerFeatures.properties).
    • MAILER

      public static final ConfigurationSource MAILER
      Mail configuration (mailer.properties).
    • GRAPHICS

      public static final ConfigurationSource GRAPHICS
      Graphics configuration (graphics.properties).
    • SHAREBASE

      public static final ConfigurationSource SHAREBASE
      Sharebase configuration (sharebase.properties).
    • ONEDRIVE

      public static final ConfigurationSource ONEDRIVE
      OneDrive configuration (onedrive.properties).
  • Method Details

    • values

      public static ConfigurationSource[] 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 ConfigurationSource 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
    • getFilename

      public String getFilename()
      Returns:
      the name of the file to load the configuration from or null, if this is not a file-based source (like CONTEXT)