Class DefaultRecurringChargeEntryValidationService
- java.lang.Object
-
- de.hybris.platform.subscriptionservices.model.impl.DefaultRecurringChargeEntryValidationService
-
- All Implemented Interfaces:
RecurringChargeEntryValidationService
public class DefaultRecurringChargeEntryValidationService extends java.lang.Object implements RecurringChargeEntryValidationService
Implementation class for validating recurring charge entries of a subscription price plan.
-
-
Constructor Summary
Constructors Constructor Description DefaultRecurringChargeEntryValidationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddErrorIfTermOfServiceNumberExceeded(java.util.Collection<java.lang.String> errors, SubscriptionTermModel term, RecurringChargeEntryModel rcEntry)protected voidaddErrorIfTermOfServiceNumberNotReached(java.util.Collection<java.lang.String> errors, SubscriptionTermModel term, RecurringChargeEntryModel lastRecurringChargeEntry)protected RecurringChargeEntryModelSortServicegetSortService()voidsetSortService(RecurringChargeEntryModelSortService sortService)java.util.Collection<java.lang.String>validate(java.util.Collection<RecurringChargeEntryModel> recurringChargeEntries)Validates the given collection ofRecurringChargeEntryModelinstances.
-
-
-
Method Detail
-
validate
@Nonnull public java.util.Collection<java.lang.String> validate(@Nullable java.util.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(java.util.Collection<java.lang.String> errors, SubscriptionTermModel term, RecurringChargeEntryModel rcEntry)
-
addErrorIfTermOfServiceNumberNotReached
protected void addErrorIfTermOfServiceNumberNotReached(java.util.Collection<java.lang.String> errors, SubscriptionTermModel term, RecurringChargeEntryModel lastRecurringChargeEntry)
-
getSortService
protected RecurringChargeEntryModelSortService getSortService()
-
setSortService
public void setSortService(RecurringChargeEntryModelSortService sortService)
-
-