org.opends.server.api.plugin
Class PluginResult.SubordinateModifyDN

java.lang.Object
  extended by org.opends.server.api.plugin.PluginResult.SubordinateModifyDN
Enclosing class:
PluginResult

public static final class PluginResult.SubordinateModifyDN
extends java.lang.Object

Defines a subordinate modify DN 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.


Method Summary
static PluginResult.SubordinateModifyDN continueOperationProcessing()
          Defines a continue processing subordinate modify DN plugin result.
 boolean continuePluginProcessing()
          Whether to invoke the rest of the plugins.
 boolean continueProcessing()
          Whether to continue operation processing.
 Message getErrorMessage()
          Retrieves the error message if continueProcessing returned false.
 DN getMatchedDN()
          Retrieves the matched DN for the operation if continueProcessing returned false.
 java.util.List<java.lang.String> getReferralURLs()
          Retrieves the referral URLs for the operation if continueProcessing returned false.
 ResultCode getResultCode()
          Retrieves the result code for the operation if continueProcessing returned false.
static PluginResult.SubordinateModifyDN skipFurtherPluginProcesssing()
          Defines a skip further plugin processing subordinate modify DN plugin result.
static PluginResult.SubordinateModifyDN stopProcessing(ResultCode resultCode, Message errorMessage)
          Contrust a new stop processing subordinate modify DN plugin result.
static PluginResult.SubordinateModifyDN stopProcessing(ResultCode resultCode, Message errorMessage, DN matchedDN, java.util.List<java.lang.String> referralURLs)
          Defines a new stop processing subordinate modify DN plugin result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

continueOperationProcessing

public static PluginResult.SubordinateModifyDN continueOperationProcessing()
Defines a continue processing subordinate modify DN plugin result.

Returns:
a continue processing subordinate modify DN plugin result.

skipFurtherPluginProcesssing

public static PluginResult.SubordinateModifyDN skipFurtherPluginProcesssing()
Defines a skip further plugin processing subordinate modify DN plugin result.

Returns:
a skip further plugin processing subordinate modify DN plugin result.

stopProcessing

public static PluginResult.SubordinateModifyDN stopProcessing(ResultCode resultCode,
                                                              Message errorMessage,
                                                              DN matchedDN,
                                                              java.util.List<java.lang.String> referralURLs)
Defines a new stop processing subordinate modify DN plugin result.

Parameters:
resultCode - The result code for this result.
errorMessage - An 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 subordinate modify DN plugin result.

stopProcessing

public static PluginResult.SubordinateModifyDN stopProcessing(ResultCode resultCode,
                                                              Message errorMessage)
Contrust a new stop processing subordinate modify DN plugin result.

Parameters:
resultCode - The result code for this result.
errorMessage - An message explaining why processing should stop.
Returns:
a new stop processing subordinate modify DN plugin result.

continueProcessing

public boolean continueProcessing()
Whether to continue operation processing.

Returns:
true if processing should continue or false otherwise.

continuePluginProcessing

public boolean continuePluginProcessing()
Whether to invoke the rest of the plugins.

Returns:
true if the rest of the plugins should be invoked for false to skip the rest of the plugins.

getErrorMessage

public Message getErrorMessage()
Retrieves the error message if continueProcessing returned false.

Returns:
An error message explaining why processing should stop or null if none is provided.

getResultCode

public ResultCode getResultCode()
Retrieves the result code for the operation if continueProcessing returned false.

Returns:
the result code for the operation or null if none is provided.

getMatchedDN

public DN getMatchedDN()
Retrieves the matched DN for the operation if continueProcessing returned false.

Returns:
the matched DN for the operation or null if none is provided.

getReferralURLs

public java.util.List<java.lang.String> getReferralURLs()
Retrieves the referral URLs for the operation if continueProcessing returned false.

Returns:
the refferal URLs for the operation or null if none is provided.