com.ibm.ecm.configuration

Class ApplicationConfig

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

  1. public class ApplicationConfig
  2. extends ConfigurationObject

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
ENCRYPTION_KEY
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
ApplicationConfig(org.apache.commons.configuration.Configuration configuration,java.lang.String idPrefix,java.lang.String id)

Method Summary

Modifier and Type Method and Description
  1. boolean
checkAdminAccessForUser(java.lang.String userid)
This method needs to be implemented by the admin team to check the use has the rights to access the Admin application.
  1. boolean
containsIgnoreCase(java.util.List<java.lang.String> l,java.lang.String s)
  1. void
exportDesktops(javax.servlet.http.HttpServletRequest request,java.io.OutputStreamWriter osw,java.lang.String[] desktopIds,java.lang.String[] repositoryIds,java.lang.String[] pluginIds,boolean includeSecurity)
This method exports selected desktops and its associated object.
  1. void
exportPlugins(javax.servlet.http.HttpServletRequest request,java.io.OutputStreamWriter osw,java.lang.String[] pluginIds)
  1. void
exportRepositories(javax.servlet.http.HttpServletRequest request,java.io.OutputStreamWriter osw,java.lang.String[] repositoryIds)
  1. void
exportThemes(javax.servlet.http.HttpServletRequest request,java.io.OutputStreamWriter osw,java.lang.String[] themeIds)
  1. java.lang.String
getApplicationVersion()
  1. protected
  2. java.lang.Class
getDataType(java.lang.String key)
  1. DesktopConfig
getDesktop()
  1. java.util.Collection<DesktopConfig>
getDesktopList()
  1. java.util.Collection<DesktopConfig>
getDesktopList(javax.servlet.http.HttpServletRequest request)
  1. java.util.Collection<DesktopConfig>
getDesktopList(javax.servlet.http.HttpServletRequest request,java.lang.String[] desktopsId)
  1. java.lang.String
getDesktopName()
  1. java.lang.String[]
getDesktopsId()
  1. java.lang.String
getEncryptionKey()
  1. java.util.Collection<IconStatusConfig>
getIconStatusList()
  1. java.util.Collection
getList(java.lang.String type,java.lang.String appName,javax.servlet.http.HttpServletRequest request)
appName is not used in this case, since it is application config object.
  1. java.lang.String[]
getLocales()
Add additional locale here for upgrading beside added it to the SQL files.
  1. java.lang.String[]
getLocalizeSettings()
  1. java.lang.String[]
getMenusId()
  1. java.util.Collection<MenuConfig>
getMenusList(javax.servlet.http.HttpServletRequest request)
  1. int
getObjectExpiration()
  1. java.lang.String
getObjectType()
  1. java.lang.String[]
getPluginsId()
  1. java.util.Collection<PluginConfig>
getPluginsList()
  1. java.util.Collection<PluginConfig>
getPluginsList(java.lang.String[] ids)
  1. java.lang.String[]
getRepositoriesId()
  1. java.util.Collection<RepositoryConfig>
getRepositoriesList()
  1. java.util.Collection<RepositoryConfig>
getRepositoriesList(java.lang.String[] ids)
  1. java.lang.String[]
getServersId()
  1. java.util.Collection<ServerConfig>
getServersList()
  1. SettingsConfig
getSettingsConfig()
  1. SyncConfig
getSyncConfig()
  1. java.lang.String[]
getThemesId()
  1. java.util.Collection<ThemeConfig>
getThemesList()
  1. java.util.Collection<ThemeConfig>
getThemesList(java.lang.String[] ids)
  1. int
getThreadSleepTime()
  1. java.lang.String[]
getViewersId()
  1. java.util.Collection<ViewerConfig>
getViewersList(javax.servlet.http.HttpServletRequest request)
  1. void
setApplicationVersion(java.lang.String version)
  1. void
setDesktopName(java.lang.String desktop)
  1. void
setDesktopsId(java.lang.String[] ids)
  1. void
setEncryptionKey(java.lang.String key)
  1. void
setMenusId(java.lang.String[] ids)
  1. void
setObjectExpiration(int expirationTime)
  1. void
setPluginsId(java.lang.String[] ids)
  1. void
setRepositoriesId(java.lang.String[] ids)
  1. void
setThemesId(java.lang.String[] ids)
  1. void
setThreadSleepTime(int sleepTime)
  1. void
setViewersId(java.lang.String[] ids)
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, removeValuesFromList, save, 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

ENCRYPTION_KEY

  1. public static final java.lang.String ENCRYPTION_KEY
See Also:

Constructor Detail

ApplicationConfig

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

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.

getThreadSleepTime

  1. public int getThreadSleepTime()

setThreadSleepTime

  1. public void setThreadSleepTime( int sleepTime)

getObjectExpiration

  1. public int getObjectExpiration( )

setObjectExpiration

  1. public void setObjectExpiration( int expirationTime)

getList

  1. public java.util.Collection getList( java.lang.String type,
  2. java.lang.String appName,
  3. javax.servlet.http.HttpServletRequest request)
appName is not used in this case, since it is application config object.
Overrides:
Parameters:
type - - A string value of object type.
appName - - A string value of application name.
request - - A HttpServletRequest object.
Returns:
a collection of type.

getDesktopsId

  1. public java.lang.String[] getDesktopsId( )

setDesktopsId

  1. public void setDesktopsId(java.lang.String[] ids)

getDesktopList

  1. public java.util.Collection<DesktopConfig> getDesktopList( javax.servlet.http.HttpServletRequest request)

getDesktopList

  1. public java.util.Collection<DesktopConfig> getDesktopList( javax.servlet.http.HttpServletRequest request,
  2. java.lang.String[] desktopsId)

getDesktopList

  1. public java.util.Collection<DesktopConfig> getDesktopList( )

getRepositoriesId

  1. public java.lang.String[] getRepositoriesId( )

setRepositoriesId

  1. public void setRepositoriesId(java.lang.String[] ids)

getRepositoriesList

  1. public java.util.Collection<RepositoryConfig> getRepositoriesList( )

getRepositoriesList

  1. public java.util.Collection<RepositoryConfig> getRepositoriesList( java.lang.String[] ids)

getViewersId

  1. public java.lang.String[] getViewersId( )

setViewersId

  1. public void setViewersId(java.lang.String[] ids)

setPluginsId

  1. public void setPluginsId(java.lang.String[] ids)

setThemesId

  1. public void setThemesId(java.lang.String[] ids)

setMenusId

  1. public void setMenusId(java.lang.String[] ids)

getViewersList

  1. public java.util.Collection<ViewerConfig> getViewersList( javax.servlet.http.HttpServletRequest request)

getServersId

  1. public java.lang.String[] getServersId( )

getServersList

  1. public java.util.Collection<ServerConfig> getServersList( )

getMenusId

  1. public java.lang.String[] getMenusId( )

getMenusList

  1. public java.util.Collection<MenuConfig> getMenusList( javax.servlet.http.HttpServletRequest request)

getLocales

  1. public java.lang.String[] getLocales( )
Add additional locale here for upgrading beside added it to the SQL files.
Returns:
a array of locale

getLocalizeSettings

  1. public java.lang.String[] getLocalizeSettings( )

getPluginsId

  1. public java.lang.String[] getPluginsId( )

getPluginsList

  1. public java.util.Collection<PluginConfig> getPluginsList( )

getPluginsList

  1. public java.util.Collection<PluginConfig> getPluginsList( java.lang.String[] ids)

getThemesId

  1. public java.lang.String[] getThemesId( )

getThemesList

  1. public java.util.Collection<ThemeConfig> getThemesList( )
Returns:
Since:
2.0.3

getThemesList

  1. public java.util.Collection<ThemeConfig> getThemesList( java.lang.String[] ids)
Returns:
Since:
2.0.3

getDesktop

  1. public DesktopConfig getDesktop( )

getDesktopName

  1. public java.lang.String getDesktopName( )

setDesktopName

  1. public void setDesktopName(java.lang.String desktop)

getEncryptionKey

  1. public java.lang.String getEncryptionKey( )

setEncryptionKey

  1. public void setEncryptionKey(java.lang.String key)

getApplicationVersion

  1. public java.lang.String getApplicationVersion( )

setApplicationVersion

  1. public void setApplicationVersion( java.lang.String version)

getSettingsConfig

  1. public SettingsConfig getSettingsConfig( )

getSyncConfig

  1. public SyncConfig getSyncConfig( )
Since:
2.0.3

getIconStatusList

  1. public java.util.Collection<IconStatusConfig> getIconStatusList( )

checkAdminAccessForUser

  1. public boolean checkAdminAccessForUser( java.lang.String userid)
This method needs to be implemented by the admin team to check the use has the rights to access the Admin application.
Parameters:
userid -
Returns:
Throws:
org.apache.commons.configuration.ConfigurationException

containsIgnoreCase

  1. public boolean containsIgnoreCase( java.util.List<java.lang.String> l,
  2. java.lang.String s)

exportDesktops

  1. public void exportDesktops(javax.servlet.http.HttpServletRequest request,
  2. java.io.OutputStreamWriter osw,
  3. java.lang.String[] desktopIds,
  4. java.lang.String[] repositoryIds,
  5. java.lang.String[] pluginIds,
  6. boolean includeSecurity)
  7. throws java.io.IOException
  8. java.io.FileNotFoundException
This method exports selected desktops and its associated object. Desktop security won't be exported if plugin where the default data source defined wasn't included in the export. Likewise, security won't be exported if default repository wasn't exported.
Parameters:
request - Request object
osw - Output Input stream to carry all the export content.
desktopIds - String array of desktop id
repositoryIds - String array of repository id
pluginIds - String array of plugin id
includeSecurity - boolean flag to include or exclude desktop's security
Throws:
java.io.IOException
java.io.FileNotFoundException

exportRepositories

  1. public void exportRepositories( javax.servlet.http.HttpServletRequest request,
  2. java.io.OutputStreamWriter osw,
  3. java.lang.String[] repositoryIds)
  4. throws java.io.IOException
  5. java.io.FileNotFoundException
Throws:
java.io.IOException
java.io.FileNotFoundException

exportPlugins

  1. public void exportPlugins(javax.servlet.http.HttpServletRequest request,
  2. java.io.OutputStreamWriter osw,
  3. java.lang.String[] pluginIds)
  4. throws java.io.IOException
  5. java.io.FileNotFoundException
Throws:
java.io.IOException
java.io.FileNotFoundException

exportThemes

  1. public void exportThemes(javax.servlet.http.HttpServletRequest request,
  2. java.io.OutputStreamWriter osw,
  3. java.lang.String[] themeIds)
  4. throws java.io.IOException
  5. java.io.FileNotFoundException
Throws:
java.io.IOException
java.io.FileNotFoundException