com.ibm.ecm.configuration
Class UserConfig
- java.lang.Object
- com.ibm.ecm.configuration.ConfigurationObject
- com.ibm.ecm.configuration.UserConfig
- public class UserConfig
- extends ConfigurationObject
Field Summary
Modifier and Type | Field and Description |
---|---|
|
FAVORITE_CAP
|
|
RECENT_ITEM_CAP
|
|
RECENT_SEARCH_CAP
|
|
RECENT_TEAMSPACE_CAP
|
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 |
---|
UserConfig(org.apache.commons.configuration.Configuration configuration,java.lang.String idPrefix,java.lang.String id)
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
addRecentItem(RecentItemConfig recentItemConfig)
|
|
addRecentSearch(RecentSearchConfig recentSearchConfig)
|
|
addRecentTeamspace(RecentTeamspaceConfig recentTeamspaceConfig)
|
|
getDataType(java.lang.String key)
|
|
getFavoriteList()
|
|
getFavoritesId()
|
|
getFavoritesMap()
|
|
getList(java.lang.String type,java.lang.String appName,javax.servlet.http.HttpServletRequest request)
|
|
getObjectType()
|
|
getRecentItemList()
|
|
getRecentSearchList()
|
|
getRecentTeamspaceList()
|
|
isFavorteMax()
|
|
isRecentSearchMax()
|
|
removeValuesFromList(java.lang.String key,java.util.List<java.lang.String> deleteValues,java.util.Properties props)
|
|
save()
|
|
setFavoritesId(java.lang.String[] favorites)
|
Methods inherited from class com.ibm.ecm.configuration.ConfigurationObject |
---|
addValueToList, arrayToString, covertEmptyStringtoNull, delete, dump, getConfigurationObject, getDataTypeValue, getIdPrefix, getKey, getMap, getName, getObjectId, getPropertyNames, getPropertyValue, getPropertyValue, getPropertyValue, getPropertyValue, isEmpty, load, propertiesToString, removeValuesFromList, setDefaultValue, setProperty, setValues, setValues, setValues, skipThisPropertyWhenSaving, stringToArray, stringToList, toJSON, toString, writeConfigurationToFile |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail
FAVORITE_CAP
- public static final int FAVORITE_CAP
See Also:
RECENT_SEARCH_CAP
- public static final int RECENT_SEARCH_CAP
See Also:
RECENT_TEAMSPACE_CAP
- public static final int RECENT_TEAMSPACE_CAP
See Also:
RECENT_ITEM_CAP
- public static final int RECENT_ITEM_CAP
See Also:
Constructor Detail
UserConfig
- public UserConfig(org.apache.commons.configuration.Configuration configuration,
- java.lang.String idPrefix,
- java.lang.String id)
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.
getList
- public java.util.Collection getList( java.lang.String type,
- java.lang.String appName,
- javax.servlet.http.HttpServletRequest request)
Description copied from class:
ConfigurationObject
Abstract method that needs to be override in concrete class to a return a collection back by type.
Overrides:
getList
in class ConfigurationObject
Parameters:
type
- - A string value of object type. appName
- - A string value of application name. request
- - A HttpServletRequest object. Returns:
a collection of type.
getFavoritesId
- public java.lang.String[] getFavoritesId( )
setFavoritesId
- public void setFavoritesId(java.lang.String[] favorites)
getFavoriteList
- public java.util.Collection<FavoriteConfig> getFavoriteList( )
isFavorteMax
- public boolean isFavorteMax()
getFavoritesMap
- public java.util.Map<java.lang.String,FavoriteConfig> getFavoritesMap( )
isRecentSearchMax
- public boolean isRecentSearchMax( )
getRecentSearchList
- public java.util.Collection<RecentSearchConfig> getRecentSearchList( )
addRecentSearch
- public void addRecentSearch(RecentSearchConfig recentSearchConfig)
- throws java.io.IOException
Throws:
java.io.IOException
getRecentItemList
- public java.util.Collection<RecentItemConfig> getRecentItemList( )
addRecentItem
- public void addRecentItem(RecentItemConfig recentItemConfig)
- throws java.io.IOException
Throws:
java.io.IOException
getRecentTeamspaceList
- public java.util.Collection<RecentTeamspaceConfig> getRecentTeamspaceList( )
addRecentTeamspace
- public void addRecentTeamspace( RecentTeamspaceConfig recentTeamspaceConfig)
- throws java.io.IOException
Throws:
java.io.IOException
removeValuesFromList
- public void removeValuesFromList( java.lang.String key,
- java.util.List<java.lang.String> deleteValues,
- java.util.Properties props)
Overrides:
removeValuesFromList
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
ConfigurationObject