public void handleRequest(RequestContext rc) throws CLIException {
  super.handleRequest(rc);
  ldapLogin();
  String schemaType=getStringOptionValue(IArgument.SCHEMA_TYPE);
  String serviceName=getStringOptionValue(IArgument.SERVICE_NAME);
  String subSchemaName=getStringOptionValue(IArgument.SUBSCHEMA_NAME);
  ServiceSchema ss=getServiceSchema();
  IOutput outputWriter=getOutputWriter();
  String[] params={serviceName,schemaType,subSchemaName};
  writeLog(LogWriter.LOG_ACCESS,Level.INFO,"ATTEMPT_GET_SCHEMA_ATTR_DEFAULTS",params);
  Map attrValues=ss.getAttributeDefaults();
  retainValues(rc,attrValues);
  maskPasswordValues(ss,attrValues);
  if (!attrValues.isEmpty()) {
    outputWriter.printlnMessage(FormatUtils.printAttributeValues(getResourceString("schema-get-attribute-defaults-result"),attrValues));
    outputWriter.printlnMessage(getResourceString("schema-get-attribute-defaults-succeed"));
  }
 else {
    outputWriter.printlnMessage(getResourceString("schema-get-attribute-defaults-no-matching-attr"));
  }
  writeLog(LogWriter.LOG_ACCESS,Level.INFO,"SUCCEED_GET_SCHEMA_ATTR_DEFAULTS",params);
}

public void handleRequest ( RequestContext rc ) throws CLIException { super . handleRequest ( rc ) ; ldapLogin ( ) ; String schemaType = getStringOptionValue ( IArgument . SCHEMA_TYPE ) ; String serviceName = getStringOptionValue ( IArgument . SERVICE_NAME ) ; String subSchemaName = getStringOptionValue ( IArgument . SUBSCHEMA_NAME ) ; ServiceSchema ss = getServiceSchema ( ) ; IOutput outputWriter = getOutputWriter ( ) ; String [ ] params = { serviceName , schemaType , subSchemaName } ; writeLog ( LogWriter . LOG_ACCESS , Level . INFO , "ATTEMPT_GET_SCHEMA_ATTR_DEFAULTS" , params ) ; Map attrValues = ss . getAttributeDefaults ( ) ; retainValues ( rc , attrValues ) ; maskPasswordValues ( ss , attrValues ) ; if ( ! attrValues . isEmpty ( ) ) { outputWriter . printlnMessage ( FormatUtils . printAttributeValues ( getResourceString ( "schema-get-attribute-defaults-result" ) , attrValues ) ) ; outputWriter . printlnMessage ( getResourceString ( "schema-get-attribute-defaults-succeed" ) ) ; } else { outputWriter . printlnMessage ( getResourceString ( "schema-get-attribute-defaults-no-matching-attr" ) ) ; } writeLog ( LogWriter . LOG_ACCESS , Level . INFO , "SUCCEED_GET_SCHEMA_ATTR_DEFAULTS" , params ) ; }
services a commandline request .
