Package org.forgerock.opendj.config
Class DefaultManagedObject<C extends ConfigurationClient,S extends Configuration>
- java.lang.Object
-
- org.forgerock.opendj.config.DefaultManagedObject<C,S>
-
- Type Parameters:
C- The type of client default managed object configuration.S- The type of server default managed object configuration.
- All Implemented Interfaces:
PropertyProvider
public final class DefaultManagedObject<C extends ConfigurationClient,S extends Configuration> extends Object implements PropertyProvider
A default managed object which should be created when a parent managed object is created. Default managed objects are associated with aRelationDefinition.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultManagedObject.Builder<C extends ConfigurationClient,S extends Configuration>An interface for incrementally constructing default managed objects.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagedObjectDefinition<C,S>getManagedObjectDefinition()Gets the managed object definition associated with this default managed object.<T> SortedSet<ValueOrExpression<T>>getPropertyValues(PropertyDefinition<T> pd)Gets a mutable copy of the set of property values for the specified property.
-
-
-
Method Detail
-
getManagedObjectDefinition
public ManagedObjectDefinition<C,S> getManagedObjectDefinition()
Gets the managed object definition associated with this default managed object.- Returns:
- Returns the managed object definition associated with this default managed object.
-
getPropertyValues
public <T> SortedSet<ValueOrExpression<T>> getPropertyValues(PropertyDefinition<T> pd)
Gets a mutable copy of the set of property values for the specified property.- Specified by:
getPropertyValuesin interfacePropertyProvider- Type Parameters:
T- The type of the property to be retrieved.- Parameters:
pd- The property to be retrieved.- Returns:
- Returns a newly allocated set containing a copy of the property's values. An empty set indicates that the property has no values defined and any default behavior is applicable.
- Throws:
IllegalArgumentException- If the property definition is not associated with this managed object's definition.
-
-