use of com.sun.identity.install.tools.util.LocalizedMessage in project OpenAM by OpenRock.
the class DeleteLayoutTask method getExecutionMessage.
public LocalizedMessage getExecutionMessage(IStateAccess stateAccess, Map properties) {
Object[] args = { getConfigDirPath(stateAccess) };
LocalizedMessage message = LocalizedMessage.get(LOC_TSK_MSG_DELETE_LAYOUT_EXECUTE, args);
return message;
}
use of com.sun.identity.install.tools.util.LocalizedMessage in project OpenAM by OpenRock.
the class Driver method displaySummary.
public ExecutionStatus displaySummary(InstFinderInteractionsRunner iFinderRunner, InteractionsRunner iRunner, DisplaySummaryHandler summaryHandler) throws InstallAbortException, InstallException {
ExecutionStatus executionStatus = new ExecutionStatus(INT_EXIT_LOOP, false);
if (!isSilentMode()) {
// Display only in non silent mode!
ArrayList summaryMessages = new ArrayList();
summaryMessages.addAll(iFinderRunner.getAllSummaryDescriptions());
summaryMessages.addAll(iRunner.getAllSummaryDescriptions());
summaryHandler.setDisplayMessages(summaryMessages);
InteractionResultStatus dStatus = summaryHandler.interact(getInstallState().getStateAccess());
if (dStatus.getIntValue() == InteractionResultStatus.INT_STATUS_BACK) {
int nextItem = (iRunner.isActive()) ? INT_RUN_INTERACTIONS : INT_RUN_IFINDER_INTERACTIONS;
executionStatus.setNextExecutionItem(nextItem);
executionStatus.setStartFromLastFlag(true);
} else if (dStatus.getIntValue() == InteractionResultStatus.INT_STATUS_START_OVER) {
// Set the state of iRunner to null as it is cleared
// Update the iFinderRunner state to new TransientStateAccess
iRunner.clear();
iFinderRunner.clear();
executionStatus.setNextExecutionItem(INT_RUN_IFINDER_INTERACTIONS);
executionStatus.setStartFromLastFlag(false);
} else if (dStatus.getIntValue() == InteractionResultStatus.INT_STATUS_ABORT) {
Debug.log("Driver.displaySummary() User requested ABORT");
LocalizedMessage lMessage = LocalizedMessage.get(LOC_DR_MSG_USER_ABORT);
throw new InstallAbortException(lMessage);
}
}
return executionStatus;
}
use of com.sun.identity.install.tools.util.LocalizedMessage in project OpenAM by OpenRock.
the class CreateLayoutTask method getExecutionMessage.
public LocalizedMessage getExecutionMessage(IStateAccess stateAccess, Map properties) {
Object[] args = { ToolsConfiguration.getProductShortName(), stateAccess.getInstanceName() };
LocalizedMessage message = LocalizedMessage.get(LOC_TSK_MSG_CREATE_LAYOUT_EXECUTE, args);
return message;
}
use of com.sun.identity.install.tools.util.LocalizedMessage in project OpenAM by OpenRock.
the class CreateProfileTask method getExecutionMessage.
public LocalizedMessage getExecutionMessage(IStateAccess stateAccess, Map properties) {
String agentUserName = (String) stateAccess.get(STR_AGENT_PROFILE_NAME);
Object[] args = { agentUserName };
LocalizedMessage message = LocalizedMessage.get(LOC_TSK_MSG_CREATE_AGENT_PROFILE_EXECUTE, args);
return message;
}
use of com.sun.identity.install.tools.util.LocalizedMessage in project OpenAM by OpenRock.
the class CustomInstallDriver method getProductAuditLogsPathMessage.
public LocalizedMessage getProductAuditLogsPathMessage() {
String productAuditDirectory = (String) getInstallState().getStateAccess().get(STR_AUDIT_DIR_PREFIX_TAG);
Object[] args = { productAuditDirectory };
LocalizedMessage message = LocalizedMessage.get(LOC_DR_MSG_PRODUCT_AUDIT_DIR, args);
return message;
}
Aggregations