/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: LoadSchema.java,v 1.4 2008/09/02 18:11:18 veiming Exp $
*
*/
/**
* Adds service schema.
*/
/**
* Services a Commandline Request.
*
* @param rc Request Context.
* @throws CLIException if the request cannot serviced.
*/
throws CLIException {
super.handleRequest(rc);
ldapLogin();
try {
} catch (SMSException e) {
} catch (SSOException e) {
}
boolean bError = false;
param);
"SUCCESS_LOAD_SCHEMA", param);
} else {
try {
"ATTEMPT_LOAD_SCHEMA", param);
getResourceString("schema-added"));
"SUCCESS_LOAD_SCHEMA", param);
} catch (CLIException e) {
bError = true;
if (continueFlag) {
if (isVerbose()) {
Debugger.getStackTrace(e));
}
} else {
throw e;
}
}
}
}
// if continue flag is on; throw cannot process exception
if (bError) {
throw new CLIException(
getResourceString("one-or-more-services-not-added"),
}
}
throws CLIException {
try {
} catch (SSOException e) {
args);
} catch (SMSException e) {
args);
} finally {
try {
} catch (IOException ie) {
//ignore if file input stream cannot be closed.
}
}
}
}
throws CLIException {
try {
} catch (IOException e) {
args);
} catch (SSOException e) {
args);
} catch (SMSException e) {
args);
} finally {
try {
} catch (IOException ie) {
//ignore if file input stream cannot be closed.
}
}
}
}
}