@Component(value="blOfferCustomPersistenceHandler") public class OfferCustomPersistenceHandler extends ClassCustomPersistenceHandlerAdapter
Modifier and Type | Field and Description |
---|---|
protected OfferCustomServiceExtensionManager |
extensionManager |
protected static String |
IS_ACTIVE |
protected static String |
IS_TIERED_OFFER |
protected boolean |
isActiveFilter |
protected static String |
OFFER_ITEM_QUALIFIER_RULE_TYPE |
protected static String |
OFFER_ITEM_TARGET_RULE_TYPE |
protected static String |
OFFER_VALUE |
protected static String |
QUALIFIERS_CAN_BE_QUALIFIERS |
protected static String |
QUALIFIERS_CAN_BE_TARGETS |
protected SandBoxHelper |
sandBoxHelper |
protected static String |
SHOW_ADVANCED_VISIBILITY_OPTIONS |
protected static String |
STACKABLE |
DEFAULT_ORDER
Constructor and Description |
---|
OfferCustomPersistenceHandler() |
classIsAssignableFrom, classMatches
add, canHandleAdd, canHandleRemove, getClassForName, getMetadata, getOrder, getPolymorphicClasses, getResultSet, isAdornedListOperation, isAssignableFrom, isBasicOperation, isMapOperation, meetsCustomCriteria, remove, willHandleSecurity
protected static final String SHOW_ADVANCED_VISIBILITY_OPTIONS
protected static final String QUALIFIERS_CAN_BE_QUALIFIERS
protected static final String QUALIFIERS_CAN_BE_TARGETS
protected static final String OFFER_ITEM_QUALIFIER_RULE_TYPE
protected static final String STACKABLE
protected static final String OFFER_ITEM_TARGET_RULE_TYPE
protected static final String IS_ACTIVE
protected static final String IS_TIERED_OFFER
protected static final String OFFER_VALUE
@Value(value="${admin.offer.isactive.filter:false}") protected boolean isActiveFilter
protected OfferCustomServiceExtensionManager extensionManager
protected SandBoxHelper sandBoxHelper
public Boolean canHandleInspect(PersistencePackage persistencePackage)
CustomPersistenceHandler
canHandleInspect
in interface CustomPersistenceHandler
canHandleInspect
in class CustomPersistenceHandlerAdapter
persistencePackage
- details about the inspect operationpublic Boolean canHandleFetch(PersistencePackage persistencePackage)
CustomPersistenceHandler
canHandleFetch
in interface CustomPersistenceHandler
canHandleFetch
in class CustomPersistenceHandlerAdapter
persistencePackage
- details about the fetch operationpublic Boolean canHandleUpdate(PersistencePackage persistencePackage)
CustomPersistenceHandler
canHandleUpdate
in interface CustomPersistenceHandler
canHandleUpdate
in class CustomPersistenceHandlerAdapter
persistencePackage
- details about the update operationpublic DynamicResultSet inspect(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper helper) throws ServiceException
inspect
in interface CustomPersistenceHandler
inspect
in class CustomPersistenceHandlerAdapter
ServiceException
protected FieldMetadata buildAdvancedVisibilityOptionsFieldMetaData()
protected FieldMetadata buildIsActiveFieldMetaData()
protected FieldMetadata buildQualifiersCanBeQualifiersFieldMetaData()
protected FieldMetadata buildQualifiersCanBeTargetsFieldMetaData()
protected FieldMetadata buildStackableFieldMetaData()
public DynamicResultSet fetch(PersistencePackage persistencePackage, CriteriaTransferObject cto, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
fetch
in interface CustomPersistenceHandler
fetch
in class CustomPersistenceHandlerAdapter
ServiceException
protected void addIsActiveFiltering(CriteriaTransferObject cto)
protected void addIsActiveStatus(RecordHelper helper, Entity entity)
protected Property buildIsActiveProperty(boolean isActive)
protected Property buildAdvancedVisibilityOptionsProperty(Property timeRule)
protected Property buildQualifiersCanBeQualifiersProperty(Property offerItemQualifierRuleType)
protected Property buildQualifiersCanBeTargetsProperty(Property offerItemQualifierRuleType)
protected boolean isQualifierType(Property offerItemQualifierRuleType)
protected boolean isTargetType(Property offerItemQualifierRuleType)
protected boolean isQualifierTargetType(Property offerItemQualifierRuleType)
public Entity update(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
update
in interface CustomPersistenceHandler
update
in class CustomPersistenceHandlerAdapter
ServiceException
protected Property buildOfferItemQualifierRuleTypeProperty(Property qualifiersCanBeQualifiers, Property qualifiersCanBeTargets)
Copyright © 2022. All rights reserved.