public void handleRequest(RequestContext rc) throws CLIException {
  super.handleRequest(rc);
  ldapLogin();
  IOutput outputWriter=getOutputWriter();
  try {
    init(rc);
    writeLog(LogWriter.LOG_ACCESS,Level.INFO,"ATTEMPT_ADD_AMSDK_PLUGIN",params);
    loadLDIFs();
    String xmlData=loadDAIService();
    addAMSDKSubSchema(xmlData);
    loadDelegrationPolicies(xmlData);
    updateServerConfigXML();
    updateDSAMEUserPassword();
    outputWriter.printlnMessage(params[0] + ": " + getResourceString("datastore-add-amsdk-idrepo-plugin-succeeded"));
    writeLog(LogWriter.LOG_ACCESS,Level.INFO,"SUCCEED_ADD_AMSDK_PLUGIN",params);
  }
 catch (  Exception e) {
    String[] p={"Adding AMSDK plugin",e.getMessage()};
    writeLog(LogWriter.LOG_ERROR,Level.INFO,"FAILED_ADD_AMSDK_PLUGIN",p);
    outputWriter.printlnMessage(params[0] + ": " + getResourceString("datastore-add-amsdk-idrepo-plugin-failed")+ ": "+ e.getMessage());
  }
}

public void handleRequest ( RequestContext rc ) throws CLIException { super . handleRequest ( rc ) ; ldapLogin ( ) ; IOutput outputWriter = getOutputWriter ( ) ; try { init ( rc ) ; writeLog ( LogWriter . LOG_ACCESS , Level . INFO , "ATTEMPT_ADD_AMSDK_PLUGIN" , params ) ; loadLDIFs ( ) ; String xmlData = loadDAIService ( ) ; addAMSDKSubSchema ( xmlData ) ; loadDelegrationPolicies ( xmlData ) ; updateServerConfigXML ( ) ; updateDSAMEUserPassword ( ) ; outputWriter . printlnMessage ( params [ 0 ] + ": " + getResourceString ( "datastore-add-amsdk-idrepo-plugin-succeeded" ) ) ; writeLog ( LogWriter . LOG_ACCESS , Level . INFO , "SUCCEED_ADD_AMSDK_PLUGIN" , params ) ; } catch ( Exception e ) { String [ ] p = { "Adding AMSDK plugin" , e . getMessage ( ) } ; writeLog ( LogWriter . LOG_ERROR , Level . INFO , "FAILED_ADD_AMSDK_PLUGIN" , p ) ; outputWriter . printlnMessage ( params [ 0 ] + ": " + getResourceString ( "datastore-add-amsdk-idrepo-plugin-failed" ) + ": " + e . getMessage ( ) ) ; } }
services a commandline request .
