Class DefaultRecurringChargeEntryValidationService
java.lang.Object
de.hybris.platform.subscriptionservices.model.impl.DefaultRecurringChargeEntryValidationService
- All Implemented Interfaces:
RecurringChargeEntryValidationService
public class DefaultRecurringChargeEntryValidationService
extends Object
implements RecurringChargeEntryValidationService
Implementation class for validating recurring charge entries of a subscription price plan.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddErrorIfTermOfServiceNumberExceeded(Collection<String> errors, SubscriptionTermModel term, RecurringChargeEntryModel rcEntry) protected voidaddErrorIfTermOfServiceNumberNotReached(Collection<String> errors, SubscriptionTermModel term, RecurringChargeEntryModel lastRecurringChargeEntry) protected RecurringChargeEntryModelSortServicevoidsetSortService(RecurringChargeEntryModelSortService sortService) validate(Collection<RecurringChargeEntryModel> recurringChargeEntries) Validates the given collection ofRecurringChargeEntryModelinstances.
-
Constructor Details
-
DefaultRecurringChargeEntryValidationService
public DefaultRecurringChargeEntryValidationService()
-
-
Method Details
-
validate
@Nonnull public Collection<String> validate(@Nullable Collection<RecurringChargeEntryModel> recurringChargeEntries) Description copied from interface:RecurringChargeEntryValidationServiceValidates the given collection ofRecurringChargeEntryModelinstances.- Specified by:
validatein interfaceRecurringChargeEntryValidationService- Parameters:
recurringChargeEntries- the recurring charge entries to validate- Returns:
- a collection of validation messages
-
addErrorIfTermOfServiceNumberExceeded
protected void addErrorIfTermOfServiceNumberExceeded(Collection<String> errors, SubscriptionTermModel term, RecurringChargeEntryModel rcEntry) -
addErrorIfTermOfServiceNumberNotReached
protected void addErrorIfTermOfServiceNumberNotReached(Collection<String> errors, SubscriptionTermModel term, RecurringChargeEntryModel lastRecurringChargeEntry) -
getSortService
-
setSortService
-