Class LocalBackendWorkflowElement
- java.lang.Object
-
- org.opends.server.workflowelement.localbackend.LocalBackendWorkflowElement
-
public class LocalBackendWorkflowElement extends Object
This class defines a local backend workflow element; e-g an entity that handle the processing of an operation against a local backend.
-
-
Constructor Summary
Constructors Constructor Description LocalBackendWorkflowElement()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanexecute(Operation operation, DN entryDN)Executes the supplied operation.static booleanisRelaxRulesRequested(PluginOperation operation)Indicates whether the provided operation carries the Relax Rules request control.
-
-
-
Method Detail
-
isRelaxRulesRequested
public static boolean isRelaxRulesRequested(PluginOperation operation)
Indicates whether the provided operation carries the Relax Rules request control.The control relaxes the constraints of the schema on the request - the attributes marked NO-USER-MODIFICATION or OBSOLETE, and the schema check of the resulting entry - for a client which has the
bypass-aclprivilege, and keeps the values such a client supplies for the attributes the server maintains (the last modified attributes, a pre-encoded password and its change time). It does not make the change a synchronization one: the change is logged, run through the plugins and replicated as any other.The method only reads the request controls: before
removeAllDisallowedControlshas run they include a control the client may not use, and whether the client has the privilege is for the caller to check. By the time the pre-operation plugins run, both are settled.- Parameters:
operation- The operation to look at.- Returns:
trueif the request carries the Relax Rules control.
-
execute
public static boolean execute(Operation operation, DN entryDN) throws CanceledOperationException
Executes the supplied operation.- Parameters:
operation- the operation to executeentryDN- the entry DN whose backend will be used- Returns:
- true if the operation successfully executed, false otherwise
- Throws:
CanceledOperationException- if this operation should be cancelled.
-
-