Package com.saperion.ngc.configuration
Enum ConfigurationSource
- java.lang.Object
-
- java.lang.Enum<ConfigurationSource>
-
- com.saperion.ngc.configuration.ConfigurationSource
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ConfigurationSource>
public enum ConfigurationSource extends java.lang.Enum<ConfigurationSource>
Sources to load configuration options from.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTEXT
The servlet-context (web.xml and includes).GLOBAL
Global settings (webclient.properties).GRAPHICS
Graphics configuration (graphics.properties).MAILER
Mail configuration (mailer.properties).ONEDRIVE
OneDrive configuration (onedrive.properties).SAPERION
Saperion settings (saperion.properties).SAPVIEWER_FEATURES
SAPViewer features (SAPViewerFeatures.properties).SHAREBASE
Sharebase configuration (sharebase.properties).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFilename()
static ConfigurationSource
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ConfigurationSource[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static ConfigurationSource[] 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 (ConfigurationSource c : ConfigurationSource.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConfigurationSource 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 namejava.lang.NullPointerException
- if the argument is null
-
getFilename
public java.lang.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)
-
-