Class ReviewTransitionStateActionImpl

java.lang.Object
com.commercetools.api.models.review.ReviewTransitionStateActionImpl
All Implemented Interfaces:
ResourceUpdateAction<ReviewUpdateAction>, ReviewTransitionStateAction, ReviewUpdateAction, io.vrap.rmf.base.client.ModelBase

public class ReviewTransitionStateActionImpl extends Object implements ReviewTransitionStateAction, io.vrap.rmf.base.client.ModelBase

Transition to a new State. This update action produces the Review State Transition Message.

  • Constructor Details

    • ReviewTransitionStateActionImpl

      public ReviewTransitionStateActionImpl()
      create empty instance
  • Method Details

    • getAction

      public String getAction()
      Specified by:
      getAction in interface ResourceUpdateAction<ReviewUpdateAction>
      Specified by:
      getAction in interface ReviewUpdateAction
      Returns:
      action
    • getState

      public StateResourceIdentifier getState()

      Value to set. If there is no State yet, the new State must be an initial State. If the existing State has transitions set, there must be a direct transition to the new State. If transitions is not set, no validation is performed. If the new State does not have the role ReviewIncludedInStatistics, the Review is not taken into account in the ratings statistics of the target.

      Specified by:
      getState in interface ReviewTransitionStateAction
      Returns:
      state
    • getForce

      public Boolean getForce()

      Switch validations on or off.

      Specified by:
      getForce in interface ReviewTransitionStateAction
      Returns:
      force
    • setState

      public void setState(StateResourceIdentifier state)
      Description copied from interface: ReviewTransitionStateAction

      Value to set. If there is no State yet, the new State must be an initial State. If the existing State has transitions set, there must be a direct transition to the new State. If transitions is not set, no validation is performed. If the new State does not have the role ReviewIncludedInStatistics, the Review is not taken into account in the ratings statistics of the target.

      Specified by:
      setState in interface ReviewTransitionStateAction
      Parameters:
      state - value to be set
    • setForce

      public void setForce(Boolean force)
      Description copied from interface: ReviewTransitionStateAction

      Switch validations on or off.

      Specified by:
      setForce in interface ReviewTransitionStateAction
      Parameters:
      force - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object