C - The type of client managed object configuration that this
relation definition refers to.S - The type of server managed object configuration that this
relation definition refers to.public static final class SingletonRelationDefinition.Builder<C extends ConfigurationClient,S extends Configuration> extends RelationDefinition.AbstractBuilder<C,S,SingletonRelationDefinition<C,S>>
| Constructor and Description |
|---|
SingletonRelationDefinition.Builder(AbstractManagedObjectDefinition<?,?> pd,
String name,
AbstractManagedObjectDefinition<C,S> cd)
Creates a new builder which can be used to incrementally build an
singleton relation definition.
|
| Modifier and Type | Method and Description |
|---|---|
protected SingletonRelationDefinition<C,S> |
buildInstance(RelationDefinition.Common<C,S> common)
Build a relation definition based on the properties of this builder.
|
void |
setDefaultManagedObject(DefaultManagedObject<? extends C,? extends S> defaultManagedObject)
Sets the optional default managed object associated with this
singleton relation definition.
|
getInstance, setOptionpublic SingletonRelationDefinition.Builder(AbstractManagedObjectDefinition<?,?> pd, String name, AbstractManagedObjectDefinition<C,S> cd)
pd - The parent managed object definition.name - The name of the relation.cd - The child managed object definition.public void setDefaultManagedObject(DefaultManagedObject<? extends C,? extends S> defaultManagedObject)
defaultManagedObject - The default managed object or null if there
is no default managed object defined for this relation
definition.protected SingletonRelationDefinition<C,S> buildInstance(RelationDefinition.Common<C,S> common)
buildInstance in class RelationDefinition.AbstractBuilder<C extends ConfigurationClient,S extends Configuration,SingletonRelationDefinition<C extends ConfigurationClient,S extends Configuration>>common - The common fields of the new relation definition.Copyright © 2011-2015 ForgeRock AS. All Rights Reserved.