Package org.opends.server.api.plugin
Record Class PluginResult.PreOperation
java.lang.Object
java.lang.Record
org.opends.server.api.plugin.PluginResult.PreOperation
- Record Components:
continueProcessing- Whether to continue operation processingcontinuePluginProcessing- Whether to invoke the rest of the pluginsresult- The result for this result
- All Implemented Interfaces:
PluginResult.OperationResult
- Enclosing class:
- PluginResult
public static record PluginResult.PreOperation(boolean continueProcessing, boolean continuePluginProcessing, Result result)
extends Record
implements PluginResult.OperationResult
Defines a pre operation plugin result for core server operation processing consisting of either continue, skip
further plugins, or stop operation processing with a result code, matched DN, referral URLs, and error message.
-
Constructor Summary
ConstructorsConstructorDescriptionPreOperation(boolean continueProcessing, boolean continuePluginProcessing, Result result) Creates an instance of aPreOperationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PluginResult.PreOperationDefines a continue processing pre operation plugin result.booleanReturns the value of thecontinuePluginProcessingrecord component.booleanReturns the value of thecontinueProcessingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.result()Returns the value of theresultrecord component.static PluginResult.PreOperationDefines a skip further plugin processing pre operation plugin result.static PluginResult.PreOperationstopProcessing(ResultCode resultCode, LocalizableMessage errorMessage) Constructs a new stop processing pre operation plugin result.static PluginResult.PreOperationstopProcessing(ResultCode resultCode, LocalizableMessage errorMessage, Dn matchedDN, List<String> referralURLs) Defines a new stop processing pre operation plugin result.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PreOperation
Creates an instance of aPreOperationrecord class.- Parameters:
continueProcessing- the value for thecontinueProcessingrecord componentcontinuePluginProcessing- the value for thecontinuePluginProcessingrecord componentresult- the value for theresultrecord component
-
-
Method Details
-
continueOperationProcessing
Defines a continue processing pre operation plugin result.- Returns:
- a continue processing pre operation plugin result.
-
skipFurtherPluginProcessing
Defines a skip further plugin processing pre operation plugin result.- Returns:
- a skip further plugin processing pre operation plugin result.
-
stopProcessing
public static PluginResult.PreOperation stopProcessing(ResultCode resultCode, LocalizableMessage errorMessage, Dn matchedDN, List<String> referralURLs) Defines a new stop processing pre operation plugin result.- Parameters:
resultCode- The result code for this result.errorMessage- A message explaining why processing should stop.matchedDN- The matched DN for this result.referralURLs- The set of referral URLs for this result.- Returns:
- a new stop processing pre operation plugin result.
-
stopProcessing
public static PluginResult.PreOperation stopProcessing(ResultCode resultCode, LocalizableMessage errorMessage) Constructs a new stop processing pre operation plugin result.- Parameters:
resultCode- The result code for this result.errorMessage- A message explaining why processing should stop.- Returns:
- a new stop processing pre operation plugin result.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
continueProcessing
public boolean continueProcessing()Returns the value of thecontinueProcessingrecord component.- Specified by:
continueProcessingin interfacePluginResult.OperationResult- Returns:
- the value of the
continueProcessingrecord component
-
continuePluginProcessing
public boolean continuePluginProcessing()Returns the value of thecontinuePluginProcessingrecord component.- Returns:
- the value of the
continuePluginProcessingrecord component
-
result
Returns the value of theresultrecord component.- Specified by:
resultin interfacePluginResult.OperationResult- Returns:
- the value of the
resultrecord component
-