Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## oracle.ifs.admin.upgrade.common
Class RenamePropertyAction

    java.lang.Object
      oracle.ifs.utils.action.AbstractAction
          oracle.ifs.admin.actions.LibrarySessionAction
              oracle.ifs.admin.upgrade.common.LibrarySessionUpgradeAction
                  oracle.ifs.admin.upgrade.common.RenamePropertyAction

All Implemented Interfaces:
  Action, IfsParameters

    public abstract class RenamePropertyAction

extends LibrarySessionUpgradeAction

A RenamePropertyAction is an abstract action which can be used to rename a Property in a PropertyBunble. It further provides functionality for specific types of PropertyBundles such as ServerConfigurations.

(Unpublished)

Nested Class Summary
`protected class` | `RenamePropertyAction.DblString`

Field Summary

Fields inherited from class oracle.ifs.admin.actions.LibrarySessionAction
`RESTART_SERVICE`

Fields inherited from class oracle.ifs.utils.action.AbstractAction
`CONTINUE_ON_ERROR, m_defaultOptions, m_options`

Fields inherited from interface oracle.ifs.utils.common.IfsParameters
`APPEND_LOG, 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 Summary
`RenamePropertyAction()`

Method Summary
`protected ServerConfiguration[]` | `getServerConfigurationObjectsByName(LibrarySession session, java.lang.String serverClassName)` Select a set of ServerConfiguration objects by server class name.
`protected void` | `renameProperty(PropertyBundle pb, java.lang.String srcKey, java.lang.String destKey)` Do the real work of renaming a property.
`protected void` | `renameServerConfigurationProperties(LibrarySession session, java.lang.String serverClassName, RenamePropertyAction.DblString[] props)` Identifies a ServerConfiguration based on a serverClassname.

Methods inherited from class oracle.ifs.admin.upgrade.common.LibrarySessionUpgradeAction
`failed, getTimestamp, log, log, printStackTrace, stop`

Methods inherited from class oracle.ifs.admin.actions.LibrarySessionAction
`execute, perform, setDomain, setForSchemaUpgrade, setPassword, setRestartService, setSchemaPassword, setUser`

Methods inherited from class oracle.ifs.utils.action.AbstractAction
`getDescription, getName, getValue, isContinueOnError, putValue, setDefaultOptions, setDescription, setName, setOptions`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### RenamePropertyAction

    public RenamePropertyAction()

Method Detail

### renameServerConfigurationProperties

    protected void renameServerConfigurationProperties(LibrarySession session,
                                                       java.lang.String serverClassName,
                                                       RenamePropertyAction.DblString[] props)
                                                throws IfsException

  Description copied from class: `RenamePropertyAction`
  Identifies a ServerConfiguration based on a serverClassname. the srcKey[] and the destKey[] are paralel. Then the srcKey Property is moved to the destKey Property and the srcKey Property is set to null. If the Property at source does not exist then this mehtod does nothing. If the destination key points to an existing Property this method does nothing. The log will be written with the outcome.

  Parameters:
    `session` - the session
    `serverClassName` - the fully qualified name of the server
    `props` - the pairs of property oldname/newname to rename
  Throws:
    `IfsException` - if the operation fails
  (Unpublished)

### getServerConfigurationObjectsByName

    protected ServerConfiguration[] getServerConfigurationObjectsByName(LibrarySession session,
                                                                        java.lang.String serverClassName)
                                                                 throws IfsException

  Description copied from class: `RenamePropertyAction`
  Select a set of ServerConfiguration objects by server class name. The server class name is one of the ServerConfiguration's properties.

  Parameters:
    `session` - the session
    `serverClassName` - the fully qualified name of the server
  Returns:
    the set of ServerConfiguration objects with the specified class name
  Throws:
    `IfsException` - if the operation fails
  (Unpublished)

### renameProperty

    protected void renameProperty(PropertyBundle pb,
                                  java.lang.String srcKey,
                                  java.lang.String destKey)
                           throws IfsException

  Description copied from class: `RenamePropertyAction`
  Do the real work of renaming a property. Given a ProerptyBundle and a property key source and porperty key destination this method will move the value of the property at source to destination and remove the value at source. If the Property at source does not exist then this mehtod does nothing. If the destination key points to an existing Property this method does nothing. The log will be written with the outcome.

  Throws:
    `IfsException`
  (Unpublished)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD