/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007 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: ShowAgentGroup.java,v 1.5 2008/06/25 05:42:10 qcheng Exp $
*
* Portions Copyrighted 2011-2014 ForgeRock AS.
*/
/**
* This command gets attribute values of an agent group.
*/
/**
* Services a Commandline Request.
*
* @param rc Request Context.
* @throws CLIException if the request cannot serviced.
*/
throws CLIException {
super.handleRequest(rc);
ldapLogin();
try {
"ATTEMPT_SHOW_AGENT_GROUP", params);
"agent group did not exist"};
"FAILED_SHOW_AGENT_GROUP", args);
Object[] p = {agentGroupName};
getResourceString("show-agent-group-does-not-exist"), p);
throw new CLIException(msg,
}
// Used to generated a sorted list of property names for easier viewing
} else {
} else {
.append("\n");
}
}
}
}
} else {
"show-agent-group-to-file"));
}
} else {
"show-agent-group-no-attributes"));
}
"SUCCEED_SHOW_AGENT_GROUP", params);
} catch (SMSException e) {
debugError("ShowAgentGroup.handleRequest", e);
"FAILED_SHOW_AGENT_GROUP", args);
} catch (IdRepoException e) {
debugError("ShowAgentGroup.handleRequest", e);
"FAILED_SHOW_AGENT_GROUP", args);
} catch (SSOException e) {
debugError("ShowAgentGroup.handleRequest", e);
"FAILED_SHOW_AGENT_GROUP", args);
}
}
throws CLIException {
try {
} catch (FileNotFoundException e) {
debugError("ShowAgentGroup.writeToFile", e);
} catch (SecurityException e) {
debugError("ShowAgentGroup.writeToFile", e);
} finally {
try {
}
}
} catch (IOException ex) {
//do nothing
}
}
}
}