public class GenericConstraint extends Constraint
true in order for a
new managed object to be created or modified.| Constructor and Description |
|---|
GenericConstraint(AbstractManagedObjectDefinition<?,?> definition,
int id,
Condition condition)
Creates a new generic constraint.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<ClientConstraintHandler> |
getClientConstraintHandlers()
Gets the client-side constraint handlers which will be used to enforce
this constraint in client applications.
|
Collection<ServerConstraintHandler> |
getServerConstraintHandlers()
Gets the server-side constraint handlers which will be used to enforce
this constraint within the server.
|
org.forgerock.i18n.LocalizableMessage |
getSynopsis()
Gets the synopsis of this constraint in the default locale.
|
org.forgerock.i18n.LocalizableMessage |
getSynopsis(Locale locale)
Gets the synopsis of this constraint in the specified locale.
|
protected void |
initialize()
Initializes this constraint.
|
public GenericConstraint(AbstractManagedObjectDefinition<?,?> definition, int id, Condition condition)
definition - The managed object definition associated with this constraint.id - The constraint ID.condition - The condition associated with this constraint.public Collection<ClientConstraintHandler> getClientConstraintHandlers()
ConstraintgetClientConstraintHandlers in class Constraintnull but maybe empty
(indicating that the constraint can only be enforced on the
server-side).public Collection<ServerConstraintHandler> getServerConstraintHandlers()
ConstraintgetServerConstraintHandlers in class Constraintnull and must not be empty,
since constraints must always be enforced on the server.public final org.forgerock.i18n.LocalizableMessage getSynopsis()
public final org.forgerock.i18n.LocalizableMessage getSynopsis(Locale locale)
locale - The locale.protected void initialize()
throws Exception
Constraintinitialize in class ConstraintException - If this constraint could not be initialized.Copyright © 2017-2020 Wren Security. All Rights Reserved.