TestChildCfgDefn.java revision 6870993d12bf8a2b9d5cd103dc5ccabc42f9bf5d
/*
* 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 legal-notices/CDDLv1_0.txt
* 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 legal-notices/CDDLv1_0.txt.
* 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 2007-2008 Sun Microsystems, Inc.
* Portions Copyright 2014 ForgeRock AS
*/
/**
* An interface for querying the Test Child managed object definition meta
* information.
* <p>
* A configuration for testing components that are subordinate to a parent
* component. It re-uses the virtual-attribute configuration LDAP profile.
*/
public final class TestChildCfgDefn extends ManagedObjectDefinition<TestChildCfgClient, TestChildCfg> {
/** The singleton configuration definition instance. */
// @Checkstyle:off
/** The "aggregation-property" property definition. */
private static final AggregationPropertyDefinition<ConnectionHandlerCfgClient, ConnectionHandlerCfg>
// @Checkstyle:on
/** The "mandatory-boolean-property" property definition. */
private static final BooleanPropertyDefinition PROPDEF_MANDATORY_BOOLEAN_PROPERTY;
/** The "mandatory-class-property" property definition. */
private static final ClassPropertyDefinition PROPDEF_MANDATORY_CLASS_PROPERTY;
/** The "mandatory-read-only-attribute-type-property" property definition. */
private static final AttributeTypePropertyDefinition PROPDEF_MANDATORY_READ_ONLY_ATTRIBUTE_TYPE_PROPERTY;
/** The "optional-multi-valued-dn-property1" property definition. */
private static final DNPropertyDefinition PROPDEF_OPTIONAL_MULTI_VALUED_DN_PROPERTY1;
/** The "optional-multi-valued-dn-property2" property definition. */
private static final DNPropertyDefinition PROPDEF_OPTIONAL_MULTI_VALUED_DN_PROPERTY2;
/** Build the "aggregation-property" property definition. */
static {
"aggregation-property"));
}
/** Build the "mandatory-boolean-property" property definition. */
static {
"mandatory-boolean-property");
"mandatory-boolean-property"));
}
/** Build the "mandatory-class-property" property definition. */
static {
"mandatory-class-property");
builder.setAdministratorAction(new AdministratorAction(AdministratorAction.Type.COMPONENT_RESTART, INSTANCE,
"mandatory-class-property"));
"org.opends.server.extensions.UserDefinedVirtualAttributeProvider");
}
/**
* Build the "mandatory-read-only-attribute-type-property" property
* definition.
*/
static {
AttributeTypePropertyDefinition.Builder builder = AttributeTypePropertyDefinition.createBuilder(INSTANCE,
"mandatory-read-only-attribute-type-property");
"mandatory-read-only-attribute-type-property"));
}
/** Build the "optional-multi-valued-dn-property1" property definition. */
static {
"optional-multi-valued-dn-property1");
"optional-multi-valued-dn-property1"));
}
/** Build the "optional-multi-valued-dn-property2" property definition. */
static {
"optional-multi-valued-dn-property2");
"optional-multi-valued-dn-property2"));
}
/**
* Get the Test Child configuration definition singleton.
*
* @return Returns the Test Child configuration definition singleton.
*/
public static TestChildCfgDefn getInstance() {
return INSTANCE;
}
/**
* Private constructor.
*/
private TestChildCfgDefn() {
super("test-child", null);
}
/** {@inheritDoc} */
public TestChildCfgClient createClientConfiguration(ManagedObject<? extends TestChildCfgClient> impl) {
return new TestChildCfgClientImpl(impl);
}
/** {@inheritDoc} */
return new TestChildCfgServerImpl(impl);
}
/** {@inheritDoc} */
return TestChildCfg.class;
}
/**
* Get the "aggregation-property" property definition.
* <p>
* An aggregation property which references connection handlers.
*
* @return Returns the "aggregation-property" property definition.
*/
// @Checkstyle:off
return PROPDEF_AGGREGATION_PROPERTY;
}
// @Checkstyle:on
/**
* Get the "mandatory-boolean-property" property definition.
* <p>
* A mandatory boolean property.
*
* @return Returns the "mandatory-boolean-property" property definition.
*/
}
/**
* Get the "mandatory-class-property" property definition.
* <p>
* A mandatory Java-class property requiring a component restart.
*
* @return Returns the "mandatory-class-property" property definition.
*/
return PROPDEF_MANDATORY_CLASS_PROPERTY;
}
/**
* Get the "mandatory-read-only-attribute-type-property" property
* definition.
* <p>
* A mandatory read-only attribute type property.
*
* @return Returns the "mandatory-read-only-attribute-type-property"
* property definition.
*/
public AttributeTypePropertyDefinition getMandatoryReadOnlyAttributeTypePropertyPropertyDefinition() {
}
/**
* Get the "optional-multi-valued-dn-property1" property definition.
* <p>
* An optional multi-valued DN property which inherits its values from
* optional-multi-valued-dn-property in the parent.
*
* @return Returns the "optional-multi-valued-dn-property1" property
* definition.
*/
}
/**
* Get the "optional-multi-valued-dn-property2" property definition.
* <p>
* An optional multi-valued DN property which inherits its values from
* optional-multi-valued-dn-property1.
*
* @return Returns the "optional-multi-valued-dn-property2" property
* definition.
*/
}
/**
* Managed object client implementation.
*/
private static class TestChildCfgClientImpl implements TestChildCfgClient {
/** Private implementation. */
/** Private constructor. */
}
/** {@inheritDoc} */
}
/** {@inheritDoc} */
}
/** {@inheritDoc} */
public Boolean isMandatoryBooleanProperty() {
}
/** {@inheritDoc} */
public void setMandatoryBooleanProperty(boolean value) {
}
/** {@inheritDoc} */
public String getMandatoryClassProperty() {
}
/** {@inheritDoc} */
}
/** {@inheritDoc} */
return impl.getPropertyValue(INSTANCE.getMandatoryReadOnlyAttributeTypePropertyPropertyDefinition());
}
/** {@inheritDoc} */
public void setMandatoryReadOnlyAttributeTypeProperty(AttributeType value) throws PropertyException {
impl.setPropertyValue(INSTANCE.getMandatoryReadOnlyAttributeTypePropertyPropertyDefinition(), value);
}
/** {@inheritDoc} */
}
/** {@inheritDoc} */
}
/** {@inheritDoc} */
}
/** {@inheritDoc} */
}
/** {@inheritDoc} */
return INSTANCE;
}
/** {@inheritDoc} */
public PropertyProvider properties() {
return impl;
}
/** {@inheritDoc} */
public void commit() throws ManagedObjectAlreadyExistsException, MissingMandatoryPropertiesException,
}
}
/**
* Managed object server implementation.
*/
private static class TestChildCfgServerImpl implements TestChildCfg {
/** Private implementation. */
/** Private constructor. */
}
/** {@inheritDoc} */
}
/** {@inheritDoc} */
}
/** {@inheritDoc} */
}
/** {@inheritDoc} */
public boolean isMandatoryBooleanProperty() {
}
/** {@inheritDoc} */
public String getMandatoryClassProperty() {
}
/** {@inheritDoc} */
return impl.getPropertyValue(INSTANCE.getMandatoryReadOnlyAttributeTypePropertyPropertyDefinition());
}
/** {@inheritDoc} */
}
/** {@inheritDoc} */
}
/** {@inheritDoc} */
return TestChildCfg.class;
}
/** {@inheritDoc} */
}
}
}