@Component(value="blOfferCustomPersistenceHandler") public class OfferCustomPersistenceHandler extends ClassCustomPersistenceHandlerAdapter
| Modifier and Type | Field and Description |
|---|---|
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 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
public Boolean canHandleInspect(PersistencePackage persistencePackage)
canHandleInspect in interface CustomPersistenceHandlercanHandleInspect in class CustomPersistenceHandlerAdapterpublic Boolean canHandleFetch(PersistencePackage persistencePackage)
canHandleFetch in interface CustomPersistenceHandlercanHandleFetch in class CustomPersistenceHandlerAdapterpublic Boolean canHandleUpdate(PersistencePackage persistencePackage)
canHandleUpdate in interface CustomPersistenceHandlercanHandleUpdate in class CustomPersistenceHandlerAdapterpublic DynamicResultSet inspect(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper helper) throws org.broadleafcommerce.common.exception.ServiceException
inspect in interface CustomPersistenceHandlerinspect in class CustomPersistenceHandlerAdapterorg.broadleafcommerce.common.exception.ServiceExceptionprotected 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 org.broadleafcommerce.common.exception.ServiceException
fetch in interface CustomPersistenceHandlerfetch in class CustomPersistenceHandlerAdapterorg.broadleafcommerce.common.exception.ServiceExceptionprotected 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 org.broadleafcommerce.common.exception.ServiceException
update in interface CustomPersistenceHandlerupdate in class CustomPersistenceHandlerAdapterorg.broadleafcommerce.common.exception.ServiceExceptionprotected Property buildOfferItemQualifierRuleTypeProperty(Property qualifiersCanBeQualifiers, Property qualifiersCanBeTargets)
Copyright © 2020. All rights reserved.