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.
|
LocalizableMessage |
getSynopsis()
Gets the synopsis of this constraint in the default locale.
|
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()
getClientConstraintHandlers in class Constraintnull but maybe empty
(indicating that the constraint can only be enforced on the
server-side).public Collection<ServerConstraintHandler> getServerConstraintHandlers()
getServerConstraintHandlers in class Constraintnull and must not be empty,
since constraints must always be enforced on the server.public final LocalizableMessage getSynopsis()
public final LocalizableMessage getSynopsis(Locale locale)
locale - The locale.protected void initialize() throws Exception
initialize in class ConstraintException - If this constraint could not be initialized.Copyright © 2011-2015 ForgeRock AS. All Rights Reserved.