Package com.flower.docs.operation.api
Class OperationRegistration
- java.lang.Object
-
- com.flower.docs.domain.common.IdentifiableElement
-
- com.flower.docs.operation.api.OperationRegistration
-
- All Implemented Interfaces:
java.io.Serializable
public class OperationRegistration extends com.flower.docs.domain.common.IdentifiableElement implements java.io.Serializable
Registration of anOperationHandler
for anOperation
- Author:
- Christopher Laszczuk
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OperationRegistration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
java.lang.String
getAuthorization()
Gets the string to provide as 'Authorization' HTTP headerExecutionPhase
getExecutionPhase()
java.lang.String
getHandler()
Gets theOperationHandler
identifier to invokedOperation
getOperation()
Gets the operation on which the registration relatesint
getOrder()
Determines the order at which theOperationHandler
should be invokedcom.flower.docs.domain.search.SearchRequest
getRequest()
Gets request allowing to filter operationjava.util.List<com.flower.docs.domain.component.Tag>
getTags()
int
hashCode()
boolean
isAsynchronous()
Determines if theOperationHandler
should be asynchronously invokedboolean
isEnabled()
Determines if the registration is enabledboolean
isInjectToken()
boolean
isReserveComponentsAsynchronous()
boolean
isStopOnException()
Determines if the operation should be stopped if the registration handling throws an exceptionvoid
setAsynchronous(boolean isAsynchronous)
void
setAuthorization(java.lang.String authorization)
void
setEnabled(boolean enabled)
void
setExecutionPhase(ExecutionPhase adviceType)
void
setHandler(java.lang.String handler)
void
setInjectToken(boolean injectToken)
void
setOperation(Operation operation)
void
setOrder(int order)
void
setRequest(com.flower.docs.domain.search.SearchRequest request)
void
setReserveComponentsAsynchronous(boolean reserveAsync)
Determines if operation's components should be reserved for async operationvoid
setStopOnException(boolean stopOnException)
void
setTags(java.util.List<com.flower.docs.domain.component.Tag> tags)
java.lang.String
toString()
-
-
-
Method Detail
-
getOperation
public Operation getOperation()
Gets the operation on which the registration relates- Returns:
- The
Operation
-
setOperation
public void setOperation(Operation operation)
-
getExecutionPhase
public ExecutionPhase getExecutionPhase()
-
setExecutionPhase
public void setExecutionPhase(ExecutionPhase adviceType)
-
getHandler
public java.lang.String getHandler()
Gets theOperationHandler
identifier to invoked- Returns:
- The
OperationHandler
identifier
-
setHandler
public void setHandler(java.lang.String handler)
-
getRequest
public com.flower.docs.domain.search.SearchRequest getRequest()
Gets request allowing to filter operation- Returns:
- The
SearchRequest
standing for filters
-
setRequest
public void setRequest(com.flower.docs.domain.search.SearchRequest request)
-
isAsynchronous
public boolean isAsynchronous()
Determines if theOperationHandler
should be asynchronously invoked- Returns:
- True if the registration should be asynchronously processed, false otherwise
-
setAsynchronous
public void setAsynchronous(boolean isAsynchronous)
-
isStopOnException
public boolean isStopOnException()
Determines if the operation should be stopped if the registration handling throws an exception- Returns:
- True if the operation should be stopped, false otherwise
-
setStopOnException
public void setStopOnException(boolean stopOnException)
-
isEnabled
public boolean isEnabled()
Determines if the registration is enabled- Returns:
- True if enabled, false otherwise
-
setEnabled
public void setEnabled(boolean enabled)
-
getTags
public java.util.List<com.flower.docs.domain.component.Tag> getTags()
-
setTags
public void setTags(java.util.List<com.flower.docs.domain.component.Tag> tags)
-
getOrder
public int getOrder()
Determines the order at which theOperationHandler
should be invoked- Returns:
- The execution order
-
setOrder
public void setOrder(int order)
-
isInjectToken
public boolean isInjectToken()
-
setInjectToken
public void setInjectToken(boolean injectToken)
-
getAuthorization
public java.lang.String getAuthorization()
Gets the string to provide as 'Authorization' HTTP header
-
setAuthorization
public void setAuthorization(java.lang.String authorization)
-
isReserveComponentsAsynchronous
public boolean isReserveComponentsAsynchronous()
-
setReserveComponentsAsynchronous
public void setReserveComponentsAsynchronous(boolean reserveAsync)
Determines if operation's components should be reserved for async operation
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
-