Class OperationRegistration

  • All Implemented Interfaces:
    java.io.Serializable

    public class OperationRegistration
    extends com.flower.docs.domain.common.IdentifiableElement
    implements java.io.Serializable
    Registration of an OperationHandler for an Operation
    Author:
    Christopher Laszczuk
    See Also:
    Serialized Form
    • Constructor Detail

      • OperationRegistration

        public OperationRegistration()
    • Method Detail

      • getOperation

        public Operation getOperation()
        Gets the operation on which the registration relates
        Returns:
        The Operation
      • setOperation

        public void setOperation​(Operation operation)
      • setExecutionPhase

        public void setExecutionPhase​(ExecutionPhase adviceType)
      • 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 the OperationHandler 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 the OperationHandler 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object