public abstract class ObjectNameReset extends LibrarySessionUpgradeAction
This action updates the a specified set of objects (specification is done via a Search currently) by setting the name (if non-null) to itself, and if this fails it modifies the name by adding a numeric suffix.
Known subclasses are EnforceAclNameUniqueness and EnforceGroupNameUniqueness
Modifier and Type | Field and Description |
---|---|
protected int[] |
m_ErrorCodes |
protected String |
m_ManglePrefix |
protected String |
m_MangleSuffix |
protected int |
m_MangleTries |
static String |
PARAMETERNAME_MANGLE_ATTEMPTS |
static String |
PARAMETERNAME_MANGLE_PREFIX |
static String |
PARAMETERNAME_MANGLE_SUFFIX |
static int |
SELECTOR_MAXITEM_COUNT |
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 |
---|
ObjectNameReset() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
containsExpectedErrorCode(IfsException e) |
protected void |
fixName(LibrarySession session,
LibraryObject obj) |
protected int |
getIntegerParameter(String name,
int defaultValue) |
protected String |
getStringParameter(String name,
String defaultValue) |
protected void |
logFailedToFixName(LibraryObject obj,
String name) |
protected void |
logFixedName(LibraryObject obj,
String name,
String newName) |
protected void |
resetObjectNames(LibrarySession session,
String className,
ClassObject[] omitClasses) |
protected void |
resolveMangleParameters() |
protected boolean |
setName(LibraryObject obj,
String name,
int attempts) |
protected void |
setNameMangleExceptionList(int[] errorCodes) |
protected boolean |
shouldOmit(LibrarySession session,
LibraryObject obj,
ClassObject[] omitClasses) |
failed, getTimestamp, log, log, printStackTrace, stop
execute, perform, setDomain, setForSchemaUpgrade, setPassword, setRestartService, setSchemaPassword, setUser
getDescription, getName, getValue, isContinueOnError, isPostgres, putValue, setDefaultOptions, setDescription, setName, setOptions
public static final String PARAMETERNAME_MANGLE_PREFIX
public static final String PARAMETERNAME_MANGLE_SUFFIX
public static final String PARAMETERNAME_MANGLE_ATTEMPTS
public static final int SELECTOR_MAXITEM_COUNT
protected String m_ManglePrefix
protected String m_MangleSuffix
protected int m_MangleTries
protected int[] m_ErrorCodes
protected void resolveMangleParameters()
protected void setNameMangleExceptionList(int[] errorCodes)
protected void resetObjectNames(LibrarySession session, String className, ClassObject[] omitClasses) throws IfsException
IfsException
protected boolean shouldOmit(LibrarySession session, LibraryObject obj, ClassObject[] omitClasses)
protected void fixName(LibrarySession session, LibraryObject obj)
protected boolean setName(LibraryObject obj, String name, int attempts) throws IfsException
IfsException
protected boolean containsExpectedErrorCode(IfsException e)
protected void logFixedName(LibraryObject obj, String name, String newName)
protected void logFailedToFixName(LibraryObject obj, String name)
protected int getIntegerParameter(String name, int defaultValue)
Copyright © 2023. All rights reserved.