public abstract class RenamePropertyAction extends LibrarySessionUpgradeAction
Modifier and Type | Class and Description |
---|---|
protected class |
RenamePropertyAction.DblString |
RESTART_SERVICE
CONTINUE_ON_ERROR, m_defaultOptions, m_options
APPEND_LOG, DATABASE_TYPE, DATABASE_URL, DB_USER_NAME, DB_USER_PASSWORD, DOMAIN_TYPE, ENABLE_SSL_SUPPORT, FOR_SCHEMA_UPGRADE, IFS_DOMAIN_DISPLAY_NAME, IFS_DOMAIN_NAME, IFS_SCHEMA_NAME, IFS_SCHEMA_PASSWORD, IFS_SERVICE_NAME, IFS_USER_NAME, IFS_USER_PASSWORD, INCLUDE_PATH, INITIAL_CONTEXT_FACTORY, LDAP_URL_DAS_LOOKUP, LDAP_USER_NAME, LDAP_USER_PASSWORD, OUTPUT_FILE, PARAMETER_FILE, REGISTRY, SCHEMA_VERSION_KEY, SECURITY_PROTOCOL_NAME, SERVICE_CONFIGURATION_NAME
Constructor and Description |
---|
RenamePropertyAction() |
Modifier and Type | Method and Description |
---|---|
protected ServerConfiguration[] |
getServerConfigurationObjectsByName(LibrarySession session,
String serverClassName)
Select a set of ServerConfiguration objects by server
class name.
|
protected void |
renameProperty(PropertyBundle pb,
String srcKey,
String destKey)
Do the real work of renaming a property.
|
protected void |
renameServerConfigurationProperties(LibrarySession session,
String serverClassName,
RenamePropertyAction.DblString[] props)
Identifies a ServerConfiguration based on a serverClassname.
|
failed, getTimestamp, log, log, printStackTrace, stop
execute, perform, setDomain, setForSchemaUpgrade, setPassword, setRestartService, setSchemaPassword, setUser
getDescription, getName, getValue, isContinueOnError, isPostgres, putValue, setDefaultOptions, setDescription, setName, setOptions
protected void renameServerConfigurationProperties(LibrarySession session, String serverClassName, RenamePropertyAction.DblString[] props) throws IfsException
session
- the sessionserverClassName
- the fully qualified name of the serverprops
- the pairs of property oldname/newname to renameIfsException
- if the operation failsprotected ServerConfiguration[] getServerConfigurationObjectsByName(LibrarySession session, String serverClassName) throws IfsException
session
- the sessionserverClassName
- the fully qualified name of the serverIfsException
- if the operation failsprotected void renameProperty(PropertyBundle pb, String srcKey, String destKey) throws IfsException
IfsException
Copyright © 2023. All rights reserved.