Class ReviewTransitionStateActionImpl
- All Implemented Interfaces:
ResourceUpdateAction<ReviewUpdateAction>
,ReviewTransitionStateAction
,ReviewUpdateAction
,io.vrap.rmf.base.client.ModelBase
Transition to a new State. This update action produces the Review State Transition Message.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.review.ReviewTransitionStateAction
TRANSITION_STATE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getForce()
Switch validations on or off.getState()
Value to set.int
hashCode()
void
Switch validations on or off.void
setState
(StateResourceIdentifier state) Value to set.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.review.ReviewTransitionStateAction
withReviewTransitionStateAction
Methods inherited from interface com.commercetools.api.models.review.ReviewUpdateAction
withReviewUpdateAction
-
Constructor Details
-
ReviewTransitionStateActionImpl
public ReviewTransitionStateActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<ReviewUpdateAction>
- Specified by:
getAction
in interfaceReviewUpdateAction
- Returns:
- action
-
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. Iftransitions
is not set, no validation is performed. If the new State does not have the roleReviewIncludedInStatistics
, the Review is not taken into account in the ratings statistics of the target.- Specified by:
getState
in interfaceReviewTransitionStateAction
- Returns:
- state
-
getForce
Switch validations on or off.
- Specified by:
getForce
in interfaceReviewTransitionStateAction
- Returns:
- force
-
setState
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. Iftransitions
is not set, no validation is performed. If the new State does not have the roleReviewIncludedInStatistics
, the Review is not taken into account in the ratings statistics of the target.- Specified by:
setState
in interfaceReviewTransitionStateAction
- Parameters:
state
- value to be set
-
setForce
Description copied from interface:ReviewTransitionStateAction
Switch validations on or off.
- Specified by:
setForce
in interfaceReviewTransitionStateAction
- Parameters:
force
- value to be set
-
equals
-
hashCode
public int hashCode()
-