Class DefaultTmaAbstractChecklistActionResolver
java.lang.Object
de.hybris.platform.b2ctelcoservices.checklist.impl.DefaultTmaAbstractChecklistActionResolver
- All Implemented Interfaces:
TmaChecklistActionResolver
- Direct Known Subclasses:
TmaAppointmentActionResolver,TmaContractStartDateActionResolver,TmaInstallationAddressActionResolver,TmaMsisdnActionResolver,TmaServiceProviderActionResolver
public abstract class DefaultTmaAbstractChecklistActionResolver
extends Object
implements TmaChecklistActionResolver
Strategy to resolve an
TmaPolicyActionModel against a list of TmaPolicyContext- Since:
- 1911
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTmaAbstractChecklistActionResolver(de.hybris.platform.servicelayer.model.ModelService modelService, TmaCartValidationBuilder cartValidationBuilder) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringRetrieves the invalid message to be set on the validation objectprotected de.hybris.platform.servicelayer.model.ModelServiceprotected abstract booleanisActionFulfilled(TmaPolicyActionModel action, CartEntryModel cartEntry) Verifies if the action for the given cart entry is fulfilled or notvoidresolveAction(TmaPolicyActionModel action, List<TmaPolicyContext> contexts) Resolve the action against the list of contexts
-
Constructor Details
-
DefaultTmaAbstractChecklistActionResolver
public DefaultTmaAbstractChecklistActionResolver(de.hybris.platform.servicelayer.model.ModelService modelService, TmaCartValidationBuilder cartValidationBuilder)
-
-
Method Details
-
resolveAction
Description copied from interface:TmaChecklistActionResolverResolve the action against the list of contexts- Specified by:
resolveActionin interfaceTmaChecklistActionResolver- Parameters:
action- the action to be resolvedcontexts- the contexts for which the action will be resolved
-
isActionFulfilled
Verifies if the action for the given cart entry is fulfilled or not- Parameters:
action- the action to be verifiedcartEntry- the given cart entry- Returns:
- true if the action for the given car entry is fulfilled, otherwise false
-
getInvalidMessage
Retrieves the invalid message to be set on the validation object- Returns:
- the invalid message
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService() -
getCartValidationBuilder
-