com.ibm.portal.resolver.operations
Interface SafeOperation

All Superinterfaces:
ActiveFlag, Addressable, Disposable, Localized, Operation

public interface SafeOperation
extends Operation

A safe operation is a operation which should not have any non-idempotent side effects. For exampe, a safe operation should not be used to modify server-side state.

Since:
8.0

Field Summary
 
Fields inherited from interface com.ibm.portal.resolver.data.Addressable
EMPTY_PARAMETERS
 
Method Summary
 boolean resolve(Resolved result)
          Executes the operation by modifying the state in the Resolved bean.
 
Methods inherited from interface com.ibm.portal.resolver.operations.Operation
getBinding
 
Methods inherited from interface com.ibm.portal.Localized
getDescription, getLocales, getTitle
 
Methods inherited from interface com.ibm.portal.ActiveFlag
isActive
 
Methods inherited from interface com.ibm.portal.resolver.data.Addressable
getParameters, getURI
 
Methods inherited from interface com.ibm.portal.Disposable
dispose
 

Method Detail

resolve

boolean resolve(Resolved result)
                throws ResolutionException,
                       StateException
Executes the operation by modifying the state in the Resolved bean. This method should NOT have any non-idempotent side effects. If such a side effect is required, then this method must encode the appropriate action into the state.

Parameters:
result - The resolution result. Must not be null.
Returns:
true if the operation could be executed, else false
Throws:
ResolutionException
StateException