@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, classMatchesadd, canHandleAdd, canHandleRemove, getClassForName, getMetadata, getOrder, getPolymorphicClasses, getResultSet, isAdornedListOperation, isAssignableFrom, isBasicOperation, isMapOperation, meetsCustomCriteria, remove, willHandleSecurityprotected 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)
CustomPersistenceHandlercanHandleInspect in interface CustomPersistenceHandlercanHandleInspect in class CustomPersistenceHandlerAdapterpersistencePackage - details about the inspect operationpublic Boolean canHandleFetch(PersistencePackage persistencePackage)
CustomPersistenceHandlercanHandleFetch in interface CustomPersistenceHandlercanHandleFetch in class CustomPersistenceHandlerAdapterpersistencePackage - details about the fetch operationpublic Boolean canHandleUpdate(PersistencePackage persistencePackage)
CustomPersistenceHandlercanHandleUpdate in interface CustomPersistenceHandlercanHandleUpdate in class CustomPersistenceHandlerAdapterpersistencePackage - details about the update operationpublic DynamicResultSet inspect(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper helper) throws ServiceException
inspect in interface CustomPersistenceHandlerinspect in class CustomPersistenceHandlerAdapterServiceExceptionprotected 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 CustomPersistenceHandlerfetch in class CustomPersistenceHandlerAdapterServiceExceptionprotected 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 CustomPersistenceHandlerupdate in class CustomPersistenceHandlerAdapterServiceExceptionprotected Property buildOfferItemQualifierRuleTypeProperty(Property qualifiersCanBeQualifiers, Property qualifiersCanBeTargets)
Copyright © 2022. All rights reserved.