/* * 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 * or http://forgerock.org/license/CDDLv1.0.html. * 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 2008 Sun Microsystems, Inc. */ package org.forgerock.opendj.config; import java.util.Collection; import java.util.SortedSet; import org.forgerock.opendj.config.ConfigurationClient; import org.forgerock.opendj.config.DefaultBehaviorException; import org.forgerock.opendj.config.DefinitionDecodingException; import org.forgerock.opendj.config.IllegalPropertyValueException; import org.forgerock.opendj.config.ManagedObjectDefinition; import org.forgerock.opendj.config.ManagedObjectNotFoundException; import org.forgerock.opendj.config.PropertyIsReadOnlyException; import org.forgerock.opendj.config.client.ConcurrentModificationException; import org.forgerock.opendj.config.client.IllegalManagedObjectNameException; import org.forgerock.opendj.config.client.ManagedObjectDecodingException; import org.forgerock.opendj.config.client.OperationRejectedException; import org.forgerock.opendj.ldap.DN; import org.forgerock.opendj.ldap.ErrorResultException; import org.forgerock.opendj.ldap.schema.AttributeType; /** * A client-side interface for reading and modifying Test Parent settings. *
* A configuration for testing components that have child components. It re-uses * the virtual-attribute configuration LDAP profile. */ public interface TestParentCfgClient extends ConfigurationClient { /** * Get the configuration definition associated with this Test Parent. * * @return Returns the configuration definition associated with this Test * Parent. */ ManagedObjectDefinition extends TestParentCfgClient, ? extends TestParentCfg> definition(); /** * Get the "mandatory-boolean-property" property. *
* A mandatory boolean property. * * @return Returns the value of the "mandatory-boolean-property" property. */ Boolean isMandatoryBooleanProperty(); /** * Set the "mandatory-boolean-property" property. *
* A mandatory boolean property. * * @param value * The value of the "mandatory-boolean-property" property. * @throws IllegalPropertyValueException * If the new value is invalid. */ void setMandatoryBooleanProperty(boolean value) throws IllegalPropertyValueException; /** * Get the "mandatory-class-property" property. *
* A mandatory Java-class property requiring a component restart. * * @return Returns the value of the "mandatory-class-property" property. */ String getMandatoryClassProperty(); /** * Set the "mandatory-class-property" property. *
* A mandatory Java-class property requiring a component restart. * * @param value * The value of the "mandatory-class-property" property. * @throws IllegalPropertyValueException * If the new value is invalid. */ void setMandatoryClassProperty(String value) throws IllegalPropertyValueException; /** * Get the "mandatory-read-only-attribute-type-property" property. *
* A mandatory read-only attribute type property. * * @return Returns the value of the * "mandatory-read-only-attribute-type-property" property. */ AttributeType getMandatoryReadOnlyAttributeTypeProperty(); /** * Set the "mandatory-read-only-attribute-type-property" property. *
* A mandatory read-only attribute type property. *
* This property is read-only and can only be modified during creation of a * Test Parent. * * @param value * The value of the "mandatory-read-only-attribute-type-property" * property. * @throws IllegalPropertyValueException * If the new value is invalid. * @throws PropertyIsReadOnlyException * If this Test Parent is not being initialized. */ void setMandatoryReadOnlyAttributeTypeProperty(AttributeType value) throws IllegalPropertyValueException, PropertyIsReadOnlyException; /** * Get the "optional-multi-valued-dn-property" property. *
* An optional multi-valued DN property with a defined default behavior.
*
* @return Returns the values of the "optional-multi-valued-dn-property"
* property.
*/
SortedSet
* An optional multi-valued DN property with a defined default behavior.
*
* @param values
* The values of the "optional-multi-valued-dn-property"
* property.
* @throws IllegalPropertyValueException
* If one or more of the new values are invalid.
*/
void setOptionalMultiValuedDNProperty(Collectionnull.
* @return Returns a new Test Child configuration instance.
* @throws IllegalManagedObjectNameException
* If the name is invalid.
*/
null.
* @return Returns a new Optional Test Child configuration instance.
*/