Class AbstractPermissionEvaluationStrategy<P extends B2BPermissionModel>
java.lang.Object
de.hybris.platform.b2b.strategies.impl.AbstractEvaluationStrategy<P>
de.hybris.platform.b2b.strategies.impl.AbstractPermissionEvaluationStrategy<P>
- Direct Known Subclasses:
AbstractB2BOrderThresholdPermissionEvaluationStrategy,B2B2POEPermissionEvaluationStrategy,DefaultB2BBudgetExceededEvaluationStrategy
public abstract class AbstractPermissionEvaluationStrategy<P extends B2BPermissionModel>
extends AbstractEvaluationStrategy<P>
Abstract evaluation strategy which provides methods helpful to all permission evaluations strategies.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetActivePermissions(Set<P> permissionSet) protected BigDecimalprotected BigDecimalgetOrderTotal(AbstractOrderModel order) protected BigDecimalgetOrderTotals(List<OrderModel> orders) getPermissions(B2BCustomerModel customer) Deprecated, for removal: This API element is subject to removal in a future version.Since 4.4.abstract Class<? extends B2BPermissionModel>protected BigDecimalgetTotalOfEntriesWithCostCenter(B2BCostCenterModel costCenter, List<AbstractOrderEntryModel> entries) protected BigDecimalgetTotalTax(AbstractOrderEntryModel orderEntry) getTypesToEvaluate(B2BCustomerModel user, AbstractOrderModel order) protected BigDecimalMethods inherited from class de.hybris.platform.b2b.strategies.impl.AbstractEvaluationStrategy
getModelService, getTypeService, setModelService, setTypeService
-
Field Details
-
NOLIMIT
-
-
Constructor Details
-
AbstractPermissionEvaluationStrategy
public AbstractPermissionEvaluationStrategy()
-
-
Method Details
-
getPermissions
Deprecated, for removal: This API element is subject to removal in a future version.Builds a list of permissions associated to aB2BCustomerModelby collections associated permissions formB2BCustomerModel.getPermissionGroups()and mB2BCustomerModel.getPermissions()- Parameters:
customer- AB2BCustomerModelwho placed a b2b order- Returns:
- A Collection of permissions.
-
getTypesToEvaluate
- Specified by:
getTypesToEvaluatein classAbstractEvaluationStrategy<P extends B2BPermissionModel>
-
getActivePermissions
-
getPermissionType
-
getOrderTotal
-
getOrderEntryTotal
-
getOrderTotals
-
getTotalTax
-
getTotalOfEntriesWithCostCenter
protected BigDecimal getTotalOfEntriesWithCostCenter(B2BCostCenterModel costCenter, List<AbstractOrderEntryModel> entries) -
toMoney
-