Package com.skava.subscription.util
Class StatusFlowComponent
java.lang.Object
com.skava.subscription.util.StatusFlowComponent
class StatusFlowComponent
The class contains the flow of status of a subscription.
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
method checkSubscriptionInstanceFlowvoid
method checkSubscriptionStatusFlow
-
Constructor Details
-
StatusFlowComponent
public StatusFlowComponent()method StatusFlowComponent
The private constructor initializes the rules for status
it initializes the rule of the ACTIVE, CANCELED, COMPLETED and DELETED status rules.
-
-
Method Details
-
checkSubscriptionStatusFlow
method checkSubscriptionStatusFlow
Checks the status is valid or not.
- Parameters:
from
- theSubscriptionStatus
the from status.to
- theSubscriptionStatus
the from status.
-
checkSubscriptionInstanceFlow
method checkSubscriptionInstanceFlow
Checks the instance status is valid or not.
- Parameters:
from
- theInstanceStatus
the from status.to
- theInstanceStatus
the from status.
-