com.ibm.ecm.configuration

Class RecentSearchConfig

  1. java.lang.Object
  2. extended bycom.ibm.ecm.configuration.ConfigurationObject
  3. extended bycom.ibm.ecm.configuration.RecentSearchConfig

  1. public class RecentSearchConfig
  2. 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
RecentSearchConfig(org.apache.commons.configuration.Configuration configuration,java.lang.String idPrefix,java.lang.String objectId)

Method Summary

Modifier and Type Method and Description
  1. boolean
equals(java.lang.Object obj)
  1. protected
  2. java.lang.Class
getDataType(java.lang.String key)
  1. java.lang.String
getDescription()
  1. java.lang.String
getMimeType()
  1. java.lang.String
getName()
  1. java.lang.String
getObjectType()
  1. java.lang.String
getTemplateId()
  1. java.lang.String
getVsId()
  1. void
load()
  1. void
save()
  1. void
setDescription(java.lang.String description)
  1. void
setMimeType(java.lang.String mimeType)
  1. void
setName(java.lang.String name)
  1. void
setTemplateId(java.lang.String templateId)
  1. void
setValues(JSONObject json)
  1. void
setValues(JSONObject json,boolean forceUpdate)
  1. void
setVsId(java.lang.String vsId)
  1. JSONObject
toJSON()
Methods inherited from class com.ibm.ecm.configuration.ConfigurationObject
addValueToList, arrayToString, covertEmptyStringtoNull, delete, dump, getConfigurationObject, getDataTypeValue, getIdPrefix, getKey, getList, getMap, 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

RecentSearchConfig

  1. public RecentSearchConfig(org.apache.commons.configuration.Configuration configuration,
  2. java.lang.String idPrefix,
  3. java.lang.String objectId)

Method Detail

getObjectType

  1. public java.lang.String getObjectType( )
Description copied from class: ConfigurationObject
Abstract method to return object type.
Specified by:
Returns:
a string object type back, for example "desktop", "repository"...

getDataType

  1. 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:
Returns:
a Class instance describing the datatype of the property.

getTemplateId

  1. public java.lang.String getTemplateId( )

setTemplateId

  1. public void setTemplateId(java.lang.String templateId)

getName

  1. public java.lang.String getName( )
Overrides:

setName

  1. public void setName(java.lang.String name)

getDescription

  1. public java.lang.String getDescription( )

setDescription

  1. public void setDescription(java.lang.String description)

getVsId

  1. public java.lang.String getVsId( )

setVsId

  1. public void setVsId(java.lang.String vsId)

getMimeType

  1. public java.lang.String getMimeType( )

setMimeType

  1. public void setMimeType(java.lang.String mimeType)

load

  1. public void load()
Description copied from class: ConfigurationObject
Retrieves the latest version from the configuration store.
Overrides:

save

  1. public void save()
  2. throws org.apache.commons.configuration.ConfigurationException
Description copied from class: ConfigurationObject
Saves the object back to the configuration store.
Overrides:
Throws:
org.apache.commons.configuration.ConfigurationException

setValues

  1. public void setValues(JSONObject json)
Description copied from class: ConfigurationObject
todo: add more logic to deal with JSON array.
Overrides:

setValues

  1. public void setValues(JSONObject json,
  2. boolean forceUpdate)
Overrides:

toJSON

  1. 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:
Returns:
A JSONObject of this configuration

equals

  1. public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object