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 abstract class RelationDefinition<C extends ConfigurationClient,S extends Configuration> extends Object
Within the server, listeners can choose to request notification of managed objects being added or removed from relations.
In LDAP, compositions are represented as follows:
Modifier and Type | Class and Description |
---|---|
protected static class |
RelationDefinition.AbstractBuilder<C extends ConfigurationClient,S extends Configuration,D extends RelationDefinition<C,S>>
An interface for incrementally constructing relation definitions.
|
protected static class |
RelationDefinition.Common<C extends ConfigurationClient,S extends Configuration>
Opaque structure containing fields common to all relation definition
types.
|
Modifier | Constructor and Description |
---|---|
protected |
RelationDefinition(RelationDefinition.Common<C,S> common)
Create a new managed object relation definition with the specified common
fields.
|
Modifier and Type | Method and Description |
---|---|
abstract <R,P> R |
accept(RelationDefinitionVisitor<R,P> v,
P p)
Apply a visitor to this relation definition.
|
AbstractManagedObjectDefinition<C,S> |
getChildDefinition()
Get the definition of the child managed object.
|
LocalizableMessage |
getDescription()
Gets the optional description of this relation definition in the default
locale.
|
LocalizableMessage |
getDescription(Locale locale)
Gets the optional description of this relation definition in the
specified locale.
|
String |
getName()
Get the name of the relation.
|
AbstractManagedObjectDefinition<?,?> |
getParentDefinition()
Get the definition of the parent managed object.
|
LocalizableMessage |
getSynopsis()
Gets the synopsis of this relation definition in the default locale.
|
LocalizableMessage |
getSynopsis(Locale locale)
Gets the synopsis of this relation definition in the specified locale.
|
LocalizableMessage |
getUserFriendlyName()
Gets the user friendly name of this relation definition in the default
locale.
|
LocalizableMessage |
getUserFriendlyName(Locale locale)
Gets the user friendly name of this relation definition in the specified
locale.
|
boolean |
hasOption(RelationOption option)
Check if the specified option is set for this relation definition.
|
protected void |
initialize()
Performs any run-time initialization required by this relation
definition.
|
String |
toString() |
abstract void |
toString(StringBuilder builder)
Append a string representation of the managed object relation to the
provided string builder.
|
protected RelationDefinition(RelationDefinition.Common<C,S> common)
common
- The common fields of the new relation definition.public abstract <R,P> R accept(RelationDefinitionVisitor<R,P> v, P p)
R
- The return type of the visitor's methods.P
- The type of the additional parameters to the visitor's
methods.v
- The relation definition visitor.p
- Optional additional visitor parameter.public final AbstractManagedObjectDefinition<C,S> getChildDefinition()
public final LocalizableMessage getDescription()
null
if there is no description.public final LocalizableMessage getDescription(Locale locale)
locale
- The locale.null
if there is no
description.public final String getName()
public final AbstractManagedObjectDefinition<?,?> getParentDefinition()
public final LocalizableMessage getSynopsis()
public final LocalizableMessage getSynopsis(Locale locale)
locale
- The locale.public final LocalizableMessage getUserFriendlyName()
public final LocalizableMessage getUserFriendlyName(Locale locale)
locale
- The locale.public final boolean hasOption(RelationOption option)
option
- The option to test.true
if the option is set, or
false
otherwise.public abstract void toString(StringBuilder builder)
builder
- The string builder where the string representation should be
appended.Copyright 2010-2022 ForgeRock AS.