public abstract class LibrarySessionAction extends AbstractAction implements IfsParameters
restartService
- if true, restarts the given LibraryService
[default = false]Modifier and Type | Field and Description |
---|---|
static String |
RESTART_SERVICE
Whether the LibraryService will be restarted.
|
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 |
---|
LibrarySessionAction()
Creates a new LibrarySessionAction without specifying credentials.
|
LibrarySessionAction(String user,
String password,
String domain,
String schemaPassword)
Creates a new LibrarySessionAction.
|
LibrarySessionAction(String user,
String password,
String domain,
String schemaPassword,
boolean forSchemaUpgrade)
Creates a new LibrarySessionAction.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
execute(LibrarySession sess)
Executes iFS methods.
|
void |
perform()
Performs this LibrarySessionAction.
|
void |
setDomain(String domain)
Sets the iFS domain name.
|
void |
setForSchemaUpgrade(boolean forSchemaUpgrade)
Sets whether the iFS connection is for a schema upgrade.
|
void |
setPassword(String password)
Sets the iFS user's password.
|
void |
setRestartService(boolean restartService)
Sets whether the iFS service will be restarted.
|
void |
setSchemaPassword(String schemaPassword)
Sets the iFS schema password.
|
void |
setUser(String user)
Sets the iFS user name.
|
getDescription, getName, getValue, isContinueOnError, isPostgres, putValue, setDefaultOptions, setDescription, setName, setOptions
public static final String RESTART_SERVICE
public LibrarySessionAction()
public LibrarySessionAction(String user, String password, String domain, String schemaPassword)
forSchemaUpgrade
property is set to false
.user
- the iFS user name.password
- the user's password.domain
- the iFS domain name.schemaPassword
- the iFS schema password.public LibrarySessionAction(String user, String password, String domain, String schemaPassword, boolean forSchemaUpgrade)
user
- the iFS user name.password
- the user's password.domain
- Name the domain nameschemaPassword
- the iFS schema password.forSchemaUpgrade
- true if the connection is for a schema upgrade.public void setUser(String user)
public void setPassword(String password)
public void setDomain(String domain)
public void setSchemaPassword(String schemaPassword)
public void setForSchemaUpgrade(boolean forSchemaUpgrade)
public void setRestartService(boolean restartService)
public void perform() throws ActionFailedException
perform
in interface Action
ActionFailedException
- if this Action fails.public abstract void execute(LibrarySession sess) throws IfsException, ActionFailedException
sess
- the connected LibrarySession (in admin mode if possible).IfsException
- if a database error occurs.ActionFailedException
- if any other error occurs.Copyright © 2023. All rights reserved.