Search in sources :

Example 26 with LocalizedMessage

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;
}
Also used : LocalizedMessage(com.sun.identity.install.tools.util.LocalizedMessage)

Example 27 with LocalizedMessage

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;
}
Also used : ArrayList(java.util.ArrayList) LocalizedMessage(com.sun.identity.install.tools.util.LocalizedMessage)

Example 28 with LocalizedMessage

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;
}
Also used : LocalizedMessage(com.sun.identity.install.tools.util.LocalizedMessage)

Example 29 with LocalizedMessage

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;
}
Also used : LocalizedMessage(com.sun.identity.install.tools.util.LocalizedMessage)

Example 30 with LocalizedMessage

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;
}
Also used : LocalizedMessage(com.sun.identity.install.tools.util.LocalizedMessage)

Aggregations

LocalizedMessage (com.sun.identity.install.tools.util.LocalizedMessage)73 Map (java.util.Map)9 File (java.io.File)8 ArrayList (java.util.ArrayList)8 IOException (java.io.IOException)6 HashMap (java.util.HashMap)5 Iterator (java.util.Iterator)5 ConnectException (java.net.ConnectException)4 UnknownHostException (java.net.UnknownHostException)4 StringTokenizer (java.util.StringTokenizer)4 FileNotFoundException (java.io.FileNotFoundException)3 RESTUtils (com.sun.identity.install.tools.util.RESTUtils)2 BufferedReader (java.io.BufferedReader)2 MalformedURLException (java.net.MalformedURLException)2 URL (java.net.URL)2 URLConnection (java.net.URLConnection)2 TreeMap (java.util.TreeMap)2 Audit (com.sun.identity.install.tools.util.Audit)1 FileReader (java.io.FileReader)1 InputStream (java.io.InputStream)1