filenet.vw.api
Class VWServerInstanceSettings
- java.lang.Object
-
- filenet.vw.api.VWServerInstanceSettings
-
- All Implemented Interfaces:
- java.io.Serializable
public final class VWServerInstanceSettings extends java.lang.Object implements java.io.SerializableThis class contains the custom settings for a PE server instance.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringDEFAULT_INSTANCE_NAMEThe default instance name, "<default>" which is localized.
-
Method Summary
Methods Modifier and Type Method and Description java.lang.StringgetInstanceName()Gets the server instance name.java.lang.String[]getSettingNames(boolean bIncludeNullValues)Gets a String array containing the names of the current settings.java.lang.StringgetValue(java.lang.String theKey)Gets a value using the specified key.booleanhasChanged()Returns a boolean value indicating whether or not this server instance settings object has changed.booleanisDefault()Returns a boolean value indicating whether or not this is the default server instance settings object.booleanisEmpty()Returnstrueif no settings are defined for this server or all of the setting values are null.voidremoveAll()Sets the value of all of the settings that are defined for this server tonull.voidsetValue(java.lang.String theKey, java.lang.String theValue)Sets a value using the specified key.java.lang.StringtoString()Gets a string representation of this object.
-
-
-
Field Detail
-
DEFAULT_INSTANCE_NAME
public static final java.lang.String DEFAULT_INSTANCE_NAME
The default instance name, "<default>" which is localized. Used for the VWServerInstanceSettings object containing the default settings.
-
-
Method Detail
-
getInstanceName
public java.lang.String getInstanceName() throws VWExceptionGets the server instance name.- Returns:
- The server instance name.
- Throws:
VWException- Thrown for various causes.- Since:
- PE 5.2.0.0
-
getValue
public java.lang.String getValue(java.lang.String theKey) throws VWExceptionGets a value using the specified key.- Parameters:
theKey- The setting name.- Returns:
- The value for the given key, if found;
nullotherwise. - Throws:
VWException- Thrown for various causes.- Since:
- PE 5.2.0.0
-
setValue
public void setValue(java.lang.String theKey, java.lang.String theValue) throws VWExceptionSets a value using the specified key.- Parameters:
theKey- The setting name.theValue- The value to set. Specifynullto remove the item from the list.- Throws:
VWException- Thrown for various causes.- Since:
- PE 5.2.0.0
-
getSettingNames
public java.lang.String[] getSettingNames(boolean bIncludeNullValues) throws VWExceptionGets a String array containing the names of the current settings.- Parameters:
bIncludeNullValues- Iftruethe names of items withnullvalues are included.- Returns:
- a String array containing the names of the current settings.
- Throws:
VWException- Thrown for various causes.- Since:
- PE 5.2.0.0
-
isDefault
public boolean isDefault() throws VWExceptionReturns a boolean value indicating whether or not this is the default server instance settings object.- Returns:
- A value of
trueif this this is the default server instance settings object;falseotherwise. - Throws:
VWException- Thrown for various causes.- Since:
- PE 5.2.0.0
-
isEmpty
public boolean isEmpty() throws VWExceptionReturnstrueif no settings are defined for this server or all of the setting values are null.- Returns:
- A value of
trueif there will not be any settings defined for this server after this item is saved to the server;falseotherwise. - Throws:
VWException- Thrown for various causes.- Since:
- PE 5.2.0.0
-
hasChanged
public boolean hasChanged() throws VWExceptionReturns a boolean value indicating whether or not this server instance settings object has changed.- Returns:
- A value of
trueif this server instance settings object has changed;falseotherwise. - Throws:
VWException- Thrown for various causes.- Since:
- PE 5.2.0.0
-
removeAll
public void removeAll() throws VWExceptionSets the value of all of the settings that are defined for this server tonull.- Throws:
VWException- Thrown for various causes.- Since:
- PE 5.2.0.0
-
toString
public java.lang.String toString()
Gets a string representation of this object.- Overrides:
toStringin classjava.lang.Object- Returns:
- The instance name.
- Since:
- PE 5.2.0.0
- See Also:
VWServerInstanceSettings.getInstanceName()
-
-