|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opends.server.admin.Constraint
org.opends.server.admin.GenericConstraint
public class GenericConstraint
A generic constraint which comprises of an underlying condition and
a description. The condition must evaluate to true
in order for a new managed object to be created or modified.
| Constructor Summary | |
|---|---|
GenericConstraint(AbstractManagedObjectDefinition<?,?> definition,
int id,
Condition condition)
Creates a new generic constraint. |
|
| Method Summary | |
|---|---|
java.util.Collection<ClientConstraintHandler> |
getClientConstraintHandlers()
Gets the client-side constraint handlers which will be used to enforce this constraint in client applications. |
java.util.Collection<ServerConstraintHandler> |
getServerConstraintHandlers()
Gets the server-side constraint handlers which will be used to enforce this constraint within the server. |
Message |
getSynopsis()
Gets the synopsis of this constraint in the default locale. |
Message |
getSynopsis(java.util.Locale locale)
Gets the synopsis of this constraint in the specified locale. |
protected void |
initialize()
Initializes this constraint. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public java.util.Collection<ClientConstraintHandler> getClientConstraintHandlers()
getClientConstraintHandlers in class Constraintnull
but maybe empty (indicating that the constraint can only
be enforced on the server-side).public java.util.Collection<ServerConstraintHandler> getServerConstraintHandlers()
getServerConstraintHandlers in class Constraintnull and
must not be empty, since constraints must always be
enforced on the server.public final Message getSynopsis()
public final Message getSynopsis(java.util.Locale locale)
locale - The locale.
protected void initialize()
throws java.lang.Exception
initialize in class Constraintjava.lang.Exception - If this constraint could not be initialized.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||