Class CreateProfileTask
- java.lang.Object
-
- com.sun.identity.install.tools.configurator.CreateProfileTask
-
- All Implemented Interfaces:
ICommonToolsConstants,InstallConstants,ITask
public class CreateProfileTask extends Object implements ITask, InstallConstants
This class provides the feature of creating Agent Profile during installation when the profile does not exist in OpenSSO.
-
-
Field Summary
Fields Modifier and Type Field Description static StringENCODING_TYPEstatic intHTTP_RESPONSE_CREATEDstatic intHTTP_RESPONSE_OKstatic StringLOC_TK_ERR_PASSWD_FILE_READstatic StringLOC_TSK_MSG_CREATE_AGENT_PROFILE_EXECUTEstatic StringSTR_AGENT_ADMINISTRATOR_NAMEstatic StringSTR_AGENT_ADMINISTRATOR_PASSWORD_FILEstatic StringSTR_AGENT_PASSWORD_FILEstatic StringSTR_AGENT_PROFILE_NAMEstatic StringSTR_AGENT_PROFILE_TYPEstatic StringSTR_AGENT_URLstatic StringSTR_AM_SERVER_URL-
Fields inherited from interface com.sun.identity.install.tools.admin.ICommonToolsConstants
FILE_SEP, INSTANCE_AUDIT_DIR_NAME, INSTANCE_CONFIG_DIR_NAME, INSTANCE_DEBUG_DIR_NAME, INSTANCE_LIB_DIR_NAME, INSTANCE_LOCALE_DIR_NAME, INSTANCE_LOGS_DIR_NAME, LINE_SEP
-
Fields inherited from interface com.sun.identity.install.tools.configurator.InstallConstants
INT_OPERATION_TYPE_REGULAR, INT_OPERATION_TYPE_SAVE_RESPONSE, INT_OPERATION_TYPE_USE_RESPONSE, LOC_DR_ERR_APP_SERVER_HOME_LOCATOR, LOC_DR_ERR_CORRUPT_PRODUCT_INSTALL, LOC_DR_ERR_INVALID_INSTALL_HOME, LOC_DR_ERR_PRODUCT_ALREADY_MIGRATED, LOC_DR_ERR_PRODUCT_LOCATOR_BACKUP, LOC_DR_ERR_PRODUCT_LOCATOR_READ, LOC_DR_ERR_PRODUCT_LOCATOR_WRITE, LOC_DR_MSG_PRODUCT_SUMM_INFO_BEGIN, LOC_DR_MSG_PRODUCT_SUMM_INFO_BEGIN_LINE, LOC_DR_MSG_PRODUCT_SUMM_INFO_END, LOC_IS_ERR_LOAD_INSTALL_STATE, LOC_IS_ERR_SAVE_INSTALL_STATE, STR_AUDIT_DIR_PREFIX_TAG, STR_BEGIN_END_LINE_MARKER, STR_CONFIG_AGENT_CONFIG_FILE_PATH_TAG, STR_CONFIG_AGENT_MIGRATE_FILE_PATH_TAG, STR_CONFIG_DIR_PREFIX_MIGRATE_TAG, STR_CONFIG_DIR_PREFIX_TAG, STR_CONFIG_FILE_PATH_TAG, STR_CREATE_AGENT_PROFILE_KEY, STR_CREATE_AGENT_PROFILE_NAME, STR_CUSTOM, STR_DEBUG_DIR_PREFIX_TAG, STR_INSTALL, STR_INSTANCE_NAME_MIGRATE_TAG, STR_IS_GLOBAL_DATA_ID, STR_LOG_CONFIG_FILE_PATH, STR_LOG_CONFIG_FILENAME, STR_MIGRATE, STR_SAVE_AGENT_INSTANCE_NAME_KEY, STR_SAVE_REMOTE_AGENT_INSTALL_DIR_KEY, STR_UNINSTALL, STR_VERSION_FILE_NAME
-
-
Constructor Summary
Constructors Constructor Description CreateProfileTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute(String name, IStateAccess stateAccess, Map properties)LocalizedMessagegetExecutionMessage(IStateAccess stateAccess, Map properties)LocalizedMessagegetRollBackMessage(IStateAccess stateAccess, Map properties)booleanrollBack(String name, IStateAccess state, Map properties)
-
-
-
Field Detail
-
LOC_TSK_MSG_CREATE_AGENT_PROFILE_EXECUTE
public static final String LOC_TSK_MSG_CREATE_AGENT_PROFILE_EXECUTE
- See Also:
- Constant Field Values
-
STR_AM_SERVER_URL
public static final String STR_AM_SERVER_URL
- See Also:
- Constant Field Values
-
STR_AGENT_URL
public static final String STR_AGENT_URL
- See Also:
- Constant Field Values
-
STR_AGENT_PROFILE_TYPE
public static final String STR_AGENT_PROFILE_TYPE
- See Also:
- Constant Field Values
-
STR_AGENT_ADMINISTRATOR_NAME
public static final String STR_AGENT_ADMINISTRATOR_NAME
- See Also:
- Constant Field Values
-
STR_AGENT_ADMINISTRATOR_PASSWORD_FILE
public static final String STR_AGENT_ADMINISTRATOR_PASSWORD_FILE
- See Also:
- Constant Field Values
-
STR_AGENT_PROFILE_NAME
public static final String STR_AGENT_PROFILE_NAME
- See Also:
- Constant Field Values
-
STR_AGENT_PASSWORD_FILE
public static final String STR_AGENT_PASSWORD_FILE
- See Also:
- Constant Field Values
-
LOC_TK_ERR_PASSWD_FILE_READ
public static final String LOC_TK_ERR_PASSWD_FILE_READ
- See Also:
- Constant Field Values
-
ENCODING_TYPE
public static final String ENCODING_TYPE
- See Also:
- Constant Field Values
-
HTTP_RESPONSE_OK
public static final int HTTP_RESPONSE_OK
- See Also:
- Constant Field Values
-
HTTP_RESPONSE_CREATED
public static final int HTTP_RESPONSE_CREATED
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public boolean execute(String name, IStateAccess stateAccess, Map properties) throws InstallException
- Specified by:
executein interfaceITask- Throws:
InstallException
-
getExecutionMessage
public LocalizedMessage getExecutionMessage(IStateAccess stateAccess, Map properties)
- Specified by:
getExecutionMessagein interfaceITask
-
getRollBackMessage
public LocalizedMessage getRollBackMessage(IStateAccess stateAccess, Map properties)
- Specified by:
getRollBackMessagein interfaceITask
-
rollBack
public boolean rollBack(String name, IStateAccess state, Map properties) throws InstallException
- Specified by:
rollBackin interfaceITask- Throws:
InstallException
-
-