com.ibm.ecm.configuration
Class RecentItemConfig
- java.lang.Object
- com.ibm.ecm.configuration.ConfigurationObject
- com.ibm.ecm.configuration.RecentItemConfig
- public class RecentItemConfig
- extends ConfigurationObject
Field Summary
Fields inherited from class com.ibm.ecm.configuration.ConfigurationObject |
---|
ARRAY_DELIMITER, cloned, KEY_DELIMITER, LIST_ESC_CHAR, LIST_ESCAPE, LIST_SEPARATOR, MODIFIER, properties |
Constructor Summary
Constructor and Description |
---|
RecentItemConfig(org.apache.commons.configuration.Configuration configuration,java.lang.String idPrefix,java.lang.String objectId)
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
equals(java.lang.Object obj)
|
|
getDataType(java.lang.String key)
|
|
getItemId()
|
|
getItemName()
|
|
getMimeType()
|
|
getObjectType()
|
|
getRepositoryId()
|
|
getVsId()
|
|
load()
|
|
save()
|
|
setItemId(java.lang.String itemId)
|
|
setItemName(java.lang.String itemName)
|
|
setMimeType(java.lang.String mimeType)
|
|
setRepositoryId(java.lang.String repositoryId)
|
|
setValues(JSONObject json)
|
|
setValues(JSONObject json,boolean forceUpdate)
|
|
setVsId(java.lang.String vsId)
|
toJSON()
|
Methods inherited from class com.ibm.ecm.configuration.ConfigurationObject |
---|
addValueToList, arrayToString, covertEmptyStringtoNull, delete, dump, getConfigurationObject, getDataTypeValue, getIdPrefix, getKey, getList, getMap, getName, getObjectId, getPropertyNames, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValue, isEmpty, propertiesToString, removeValuesFromList, removeValuesFromList, setDefaultValue, setProperty, setValues, skipThisPropertyWhenSaving, stringToArray, stringToList, toString, writeConfigurationToFile |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail
RecentItemConfig
- public RecentItemConfig(org.apache.commons.configuration.Configuration configuration,
- java.lang.String idPrefix,
- java.lang.String objectId)
Method Detail
getObjectType
- public java.lang.String getObjectType( )
Abstract method to return object type.
Specified by:
getObjectType
in class ConfigurationObject
Returns:
a string object type back, for example "desktop", "repository"...
getDataType
- protected java.lang.Class getDataType( java.lang.String key)
Description copied from class:
ConfigurationObject
Returns the datatype of a configuration property. This is implemented in subclasses and is used to properly
serialize the properties. The default implementation returns null which indicates that compatible behavior should
be used, which inspects the property value itself and guesses at the type of the property.
Overrides:
getDataType
in class ConfigurationObject
Returns:
a Class instance describing the datatype of the property.
getRepositoryId
- public java.lang.String getRepositoryId( )
setRepositoryId
- public void setRepositoryId(java.lang.String repositoryId)
getItemId
- public java.lang.String getItemId( )
setItemId
- public void setItemId(java.lang.String itemId)
getItemName
- public java.lang.String getItemName( )
setItemName
- public void setItemName(java.lang.String itemName)
getMimeType
- public java.lang.String getMimeType( )
setMimeType
- public void setMimeType(java.lang.String mimeType)
getVsId
- public java.lang.String getVsId( )
setVsId
- public void setVsId(java.lang.String vsId)
load
- public void load()
Description copied from class:
ConfigurationObject
Retrieves the latest version from the configuration store.
Overrides:
load
in class ConfigurationObject
save
- public void save()
- throws org.apache.commons.configuration.ConfigurationException
Description copied from class:
ConfigurationObject
Saves the object back to the configuration store.
Overrides:
save
in class ConfigurationObject
Throws:
org.apache.commons.configuration.ConfigurationException
setValues
- public void setValues(JSONObject json)
Description copied from class:
ConfigurationObject
todo: add more logic to deal with JSON array.
Overrides:
setValues
in class ConfigurationObject
setValues
- public void setValues(JSONObject json,
- boolean forceUpdate)
Overrides:
setValues
in class ConfigurationObject
toJSON
- public JSONObject toJSON()
Description copied from class:
ConfigurationObject
Convert this configuration object to JSON object to be stream back to client. Since toJSON is using properties
object directly therefore any default value is not applicable in this case. All added property after ICN 2.0.0 is
required to add itself into upgrade method to support this method.
Overrides:
toJSON
in class ConfigurationObject
Returns:
A JSONObject of this configuration
equals
- public boolean equals(java.lang.Object obj)
Overrides:
equals
in class java.lang.Object
ConfigurationObject