/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at
* trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
* add the following below this CDDL HEADER, with the fields enclosed
* by brackets "[]" replaced with your own identifying information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
*
* Copyright 2009 Sun Microsystems, Inc.
*/
/**
* A sub-command handler which is used to retrieve the properties of a
* managed object.
* <p>
* This sub-command implements the various get-xxx-prop sub-commands.
*/
/**
* Creates a new get-xxx-prop sub-command for an instantiable
* relation.
*
* @param parser
* The sub-command argument parser.
* @param path
* The parent managed object path.
* @param r
* The instantiable relation.
* @return Returns the new get-xxx-prop sub-command.
* @throws ArgumentException
* If the sub-command could not be created successfully.
*/
InstantiableRelationDefinition<?, ?> r) throws ArgumentException {
}
/**
* Creates a new get-xxx-prop sub-command for an optional relation.
*
* @param parser
* The sub-command argument parser.
* @param path
* The parent managed object path.
* @param r
* The optional relation.
* @return Returns the new get-xxx-prop sub-command.
* @throws ArgumentException
* If the sub-command could not be created successfully.
*/
OptionalRelationDefinition<?, ?> r) throws ArgumentException {
}
/**
* Creates a new get-xxx-prop sub-command for a set relation.
*
* @param parser
* The sub-command argument parser.
* @param path
* The parent managed object path.
* @param r
* The set relation.
* @return Returns the new get-xxx-prop sub-command.
* @throws ArgumentException
* If the sub-command could not be created successfully.
*/
SetRelationDefinition<?, ?> r) throws ArgumentException {
}
/**
* Creates a new get-xxx-prop sub-command for a singleton relation.
*
* @param parser
* The sub-command argument parser.
* @param path
* The parent managed object path.
* @param r
* The singleton relation.
* @return Returns the new get-xxx-prop sub-command.
* @throws ArgumentException
* If the sub-command could not be created successfully.
*/
SingletonRelationDefinition<?, ?> r) throws ArgumentException {
}
// The sub-commands naming arguments.
// The path of the managed object.
// The sub-command associated with this handler.
// Private constructor.
private GetPropSubCommandHandler(
RelationDefinition<?, ?> r) throws ArgumentException {
// Create the sub-command.
// Create the naming arguments.
// Register common arguments.
// Register the tags associated with the child managed objects.
}
/**
* Gets the relation definition associated with the type of
* component that this sub-command handles.
*
* @return Returns the relation definition associated with the type
* of component that this sub-command handles.
*/
return path.getRelationDefinition();
}
/**
* {@inheritDoc}
*/
return subCommand;
}
/**
* {@inheritDoc}
*/
// Get the property names.
// Get the naming argument values.
// Reset the command builder
setCommandBuilderUseful(false);
// Update the command builder.
// Get the targeted managed object.
try {
} catch (AuthorizationException e) {
} catch (DefinitionDecodingException e) {
} catch (ManagedObjectDecodingException e) {
} catch (CommunicationException e) {
} catch (ConcurrentModificationException e) {
} catch (ManagedObjectNotFoundException e) {
}
return MenuResult.quit();
return MenuResult.cancel();
}
// Validate the property names.
if (propertyNames.isEmpty()) {
pdList = d.getAllPropertyDefinitions();
} else {
try {
} catch (IllegalArgumentException e) {
}
}
}
// Now output its properties.
continue;
}
continue;
}
setCommandBuilderUseful(true);
}
}
if (app.isScriptFriendly()) {
} else {
}
}
// Display the set of values associated with a property.
// There are no values or default values. Display the default
// behavior for alias values.
public Message visitAbsoluteInherited(
AbsoluteInheritedDefaultBehaviorProvider<T> d, Void p) {
// Should not happen - inherited default values are
// displayed as normal values.
throw new IllegalStateException();
}
return d.getSynopsis();
} else {
return null;
}
}
Void p) {
// Should not happen - real default values are displayed as
// normal values.
throw new IllegalStateException();
}
public Message visitRelativeInherited(
RelativeInheritedDefaultBehaviorProvider<T> d, Void p) {
// Should not happen - inherited default values are
// displayed as normal values.
throw new IllegalStateException();
}
Void p) {
return null;
}
};
if (app.isScriptFriendly()) {
} else {
}
} else {
}
} else {
if (isRecordMode()) {
}
} else {
if (app.isScriptFriendly()) {
}
} else {
boolean isFirst = true;
if (!isFirst) {
}
isFirst = false;
}
}
}
}
}
}