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 SetRelationDefinition.Builder<C extends ConfigurationClient,S extends Configuration> extends RelationDefinition.AbstractBuilder<C,S,SetRelationDefinition<C,S>>
| Constructor and Description |
|---|
SetRelationDefinition.Builder(AbstractManagedObjectDefinition<?,?> pd,
String name,
String pluralName,
AbstractManagedObjectDefinition<C,S> cd)
Creates a new builder which can be used to incrementally build a set
relation definition.
|
| Modifier and Type | Method and Description |
|---|---|
protected SetRelationDefinition<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)
Adds the default managed object to this set relation definition.
|
getInstance, setOptionpublic SetRelationDefinition.Builder(AbstractManagedObjectDefinition<?,?> pd, String name, String pluralName, AbstractManagedObjectDefinition<C,S> cd)
pd - The parent managed object definition.name - The name of the relation.pluralName - The plural name of the relation.cd - The child managed object definition.public void setDefaultManagedObject(DefaultManagedObject<? extends C,? extends S> defaultManagedObject)
defaultManagedObject - The default managed object.protected SetRelationDefinition<C,S> buildInstance(RelationDefinition.Common<C,S> common)
buildInstance in class RelationDefinition.AbstractBuilder<C extends ConfigurationClient,S extends Configuration,SetRelationDefinition<C extends ConfigurationClient,S extends Configuration>>common - The common fields of the new relation definition.Copyright © 2011-2015 ForgeRock AS. All Rights Reserved.