Class OfferControl
java.lang.Object
com.echothree.util.server.control.BaseModelControl
com.echothree.model.control.offer.server.control.BaseOfferControl
com.echothree.model.control.offer.server.control.OfferControl
-
Field Summary
Fields inherited from class com.echothree.util.server.control.BaseModelControl
connection, session
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
long
countOffersByDepartmentParty
(Party departmentParty) long
countOffersByFilter
(Filter filter) long
countOffersBySalesOrderSequence
(Sequence sequence) long
countOffersBySelector
(Selector selector) createOffer
(String offerName, Sequence salesOrderSequence, Party departmentParty, Selector offerItemSelector, Filter offerItemPriceFilter, Boolean isDefault, Integer sortOrder, BasePK createdBy) Use the function in OfferLogic instead.createOfferChainType
(Offer offer, ChainType chainType, Chain chain, BasePK createdBy) createOfferCustomerType
(Offer offer, CustomerType customerType, Boolean isDefault, Integer sortOrder, BasePK createdBy) createOfferDescription
(Offer offer, Language language, String description, BasePK createdBy) createOfferTime
(Offer offer) void
deleteOffer
(Offer offer, BasePK deletedBy) Use the function in OfferLogic instead.void
deleteOfferChainType
(OfferChainType offerChainType, BasePK deletedBy) void
deleteOfferChainTypes
(List<OfferChainType> offerChainTypes, BasePK deletedBy) void
deleteOfferChainTypesByChain
(Chain chain, BasePK deletedBy) void
deleteOfferChainTypesByChainType
(ChainType chainType, BasePK deletedBy) void
deleteOfferChainTypesByOffer
(Offer offer, BasePK deletedBy) void
deleteOfferCustomerType
(OfferCustomerType offerCustomerType, BasePK deletedBy) void
deleteOfferCustomerTypes
(List<OfferCustomerType> offerCustomerTypes, BasePK deletedBy) void
deleteOfferCustomerTypesByCustomerType
(CustomerType customerType, BasePK deletedBy) void
deleteOfferCustomerTypesByOffer
(Offer offer, BasePK deletedBy) void
deleteOfferDescription
(OfferDescription offerDescription, BasePK deletedBy) void
deleteOfferDescriptionsByOffer
(Offer offer, BasePK deletedBy) getBestOfferDescription
(Offer offer, Language language) getDefaultOffer
(EntityPermission entityPermission) getDefaultOfferCustomerType
(Offer offer) Gets a List that contains all the Selectors used by Offers.getOfferByEntityInstance
(EntityInstance entityInstance) getOfferByEntityInstance
(EntityInstance entityInstance, EntityPermission entityPermission) Assume that the entityInstance passed to this function is a ECHO_THREE.OffergetOfferByEntityInstanceForUpdate
(EntityInstance entityInstance) getOfferByName
(String offerName) getOfferByName
(String offerName, EntityPermission entityPermission) getOfferByNameForUpdate
(String offerName) getOfferChainType
(Offer offer, ChainType chainType) getOfferChainTypeForUpdate
(Offer offer, ChainType chainType) getOfferChainTypesByChain
(Chain chain) getOfferChainTypesByChainType
(ChainType chainType) getOfferChainTypesByChainTypeForUpdate
(ChainType chainType) getOfferChainTypesByOffer
(Offer offer) getOfferChainTypeTransfer
(UserVisit userVisit, OfferChainType offerChainType) getOfferChainTypeTransfers
(UserVisit userVisit, Collection<OfferChainType> offerChainTypes) getOfferChainTypeTransfersByChainType
(UserVisit userVisit, ChainType chainType) getOfferChainTypeTransfersByOffer
(UserVisit userVisit, Offer offer) getOfferChainTypeValue
(OfferChainType offerChainType) getOfferChainTypeValueForUpdate
(Offer offer, ChainType chainType) getOfferChoices
(String defaultOfferChoice, Language language, boolean allowNullChoice) getOfferCustomerType
(Offer offer, CustomerType customerType) getOfferCustomerTypeForUpdate
(Offer offer, CustomerType customerType) getOfferCustomerTypesByCustomerType
(CustomerType customerType) getOfferCustomerTypesByCustomerTypeForUpdate
(CustomerType customerType) getOfferCustomerTypeTransfer
(UserVisit userVisit, OfferCustomerType offerCustomerType) getOfferCustomerTypeTransfers
(UserVisit userVisit, Collection<OfferCustomerType> offerCustomerTypes) getOfferCustomerTypeTransfersByCustomerType
(UserVisit userVisit, CustomerType customerType) getOfferCustomerTypeTransfersByOffer
(UserVisit userVisit, Offer offer) getOfferCustomerTypeValueForUpdate
(Offer offer, CustomerType customerType) getOfferDescription
(Offer offer, Language language) getOfferDescriptionForUpdate
(Offer offer, Language language) getOfferDescriptionsByOffer
(Offer offer) getOfferDescriptionTransfer
(UserVisit userVisit, OfferDescription offerDescription) getOfferDescriptionTransfers
(UserVisit userVisit, Offer offer) getOfferDescriptionValue
(OfferDescription offerDescription) getOfferDescriptionValueForUpdate
(Offer offer, Language language) getOfferDetailValueByNameForUpdate
(String offerName) getOfferResultTransfers
(UserVisit userVisit, UserVisitSearch userVisitSearch) getOffersByDepartmentParty
(Party departmentParty) getOffersByOfferItemSelector
(Selector offerItemSelector) getOfferTime
(Offer offer) getOfferTimeForUpdate
(Offer offer) getOfferTransfer
(UserVisit userVisit, Offer offer) getOfferTransfers
(UserVisit userVisit) getOfferTransfers
(UserVisit userVisit, Collection<Offer> offers) void
removeOfferTimeByOffer
(Offer offer) void
updateOfferChainTypeFromValue
(OfferChainTypeValue offerChainTypeValue, BasePK updatedBy) void
updateOfferCustomerTypeFromValue
(OfferCustomerTypeValue offerCustomerTypeValue, BasePK updatedBy) void
updateOfferDescriptionFromValue
(OfferDescriptionValue offerDescriptionValue, BasePK updatedBy) void
updateOfferFromValue
(OfferDetailValue offerDetailValue, BasePK updatedBy) Use the function in OfferLogic instead.Methods inherited from class com.echothree.model.control.offer.server.control.BaseOfferControl
getOfferTransferCaches
Methods inherited from class com.echothree.util.server.control.BaseModelControl
getConnection, getCoreControl, getEntityInstanceByBaseEntity, getEntityInstanceByBasePK, getLog, getPartyControl, getSession, getWorkflowControl, sendEvent, sendEvent, sendEvent
-
Constructor Details
-
OfferControl
public OfferControl()Creates a new instance of OfferControl
-
-
Method Details
-
createOffer
public Offer createOffer(String offerName, Sequence salesOrderSequence, Party departmentParty, Selector offerItemSelector, Filter offerItemPriceFilter, Boolean isDefault, Integer sortOrder, BasePK createdBy) Use the function in OfferLogic instead. -
countOffers
-
countOffersBySalesOrderSequence
-
countOffersByDepartmentParty
-
countOffersBySelector
-
countOffersByFilter
-
getOfferByEntityInstance
public Offer getOfferByEntityInstance(EntityInstance entityInstance, EntityPermission entityPermission) Assume that the entityInstance passed to this function is a ECHO_THREE.Offer -
getOfferByEntityInstance
-
getOfferByEntityInstanceForUpdate
-
getDefaultOffer
-
getDefaultOffer
-
getDefaultOfferForUpdate
-
getDefaultOfferDetailValueForUpdate
-
getOfferByName
-
getOfferByName
-
getOfferByNameForUpdate
-
getOfferDetailValueForUpdate
-
getOfferDetailValueByNameForUpdate
-
getOffersByDepartmentParty
-
getOffersByOfferItemSelector
-
getOffers
-
getOffersForUpdate
-
getDistinctOfferItemSelectors
Gets a List that contains all the Selectors used by Offers. -
getOfferTransfer
-
getOfferTransfers
-
getOfferTransfers
-
getOfferChoices
public OfferChoicesBean getOfferChoices(String defaultOfferChoice, Language language, boolean allowNullChoice) -
updateOfferFromValue
Use the function in OfferLogic instead. -
deleteOffer
Use the function in OfferLogic instead. -
createOfferDescription
public OfferDescription createOfferDescription(Offer offer, Language language, String description, BasePK createdBy) -
getOfferDescription
-
getOfferDescriptionForUpdate
-
getOfferDescriptionValue
-
getOfferDescriptionValueForUpdate
-
getOfferDescriptionsByOffer
-
getOfferDescriptionsByOfferForUpdate
-
getBestOfferDescription
-
getOfferDescriptionTransfer
public OfferDescriptionTransfer getOfferDescriptionTransfer(UserVisit userVisit, OfferDescription offerDescription) -
getOfferDescriptionTransfers
public List<OfferDescriptionTransfer> getOfferDescriptionTransfers(UserVisit userVisit, Offer offer) -
updateOfferDescriptionFromValue
public void updateOfferDescriptionFromValue(OfferDescriptionValue offerDescriptionValue, BasePK updatedBy) -
deleteOfferDescription
-
deleteOfferDescriptionsByOffer
-
createOfferTime
-
getOfferTime
-
getOfferTimeForUpdate
-
removeOfferTimeByOffer
-
createOfferCustomerType
public OfferCustomerType createOfferCustomerType(Offer offer, CustomerType customerType, Boolean isDefault, Integer sortOrder, BasePK createdBy) -
getOfferCustomerType
-
getOfferCustomerTypeForUpdate
-
getOfferCustomerTypeValueForUpdate
public OfferCustomerTypeValue getOfferCustomerTypeValueForUpdate(Offer offer, CustomerType customerType) -
getDefaultOfferCustomerType
-
getDefaultOfferCustomerTypeForUpdate
-
getDefaultOfferCustomerTypeValueForUpdate
-
getOfferCustomerTypesByOffer
-
getOfferCustomerTypesByOfferForUpdate
-
getOfferCustomerTypesByCustomerType
-
getOfferCustomerTypesByCustomerTypeForUpdate
public List<OfferCustomerType> getOfferCustomerTypesByCustomerTypeForUpdate(CustomerType customerType) -
getOfferCustomerTypeTransfers
public List<OfferCustomerTypeTransfer> getOfferCustomerTypeTransfers(UserVisit userVisit, Collection<OfferCustomerType> offerCustomerTypes) -
getOfferCustomerTypeTransfersByOffer
public List<OfferCustomerTypeTransfer> getOfferCustomerTypeTransfersByOffer(UserVisit userVisit, Offer offer) -
getOfferCustomerTypeTransfersByCustomerType
public List<OfferCustomerTypeTransfer> getOfferCustomerTypeTransfersByCustomerType(UserVisit userVisit, CustomerType customerType) -
getOfferCustomerTypeTransfer
public OfferCustomerTypeTransfer getOfferCustomerTypeTransfer(UserVisit userVisit, OfferCustomerType offerCustomerType) -
updateOfferCustomerTypeFromValue
public void updateOfferCustomerTypeFromValue(OfferCustomerTypeValue offerCustomerTypeValue, BasePK updatedBy) -
deleteOfferCustomerType
-
deleteOfferCustomerTypes
-
deleteOfferCustomerTypesByOffer
-
deleteOfferCustomerTypesByCustomerType
-
createOfferChainType
public OfferChainType createOfferChainType(Offer offer, ChainType chainType, Chain chain, BasePK createdBy) -
getOfferChainType
-
getOfferChainTypeForUpdate
-
getOfferChainTypeValue
-
getOfferChainTypeValueForUpdate
-
getOfferChainTypesByOffer
-
getOfferChainTypesByOfferForUpdate
-
getOfferChainTypesByChainType
-
getOfferChainTypesByChainTypeForUpdate
-
getOfferChainTypesByChain
-
getOfferChainTypesByChainForUpdate
-
getOfferChainTypeTransfer
public OfferChainTypeTransfer getOfferChainTypeTransfer(UserVisit userVisit, OfferChainType offerChainType) -
getOfferChainTypeTransfers
public List<OfferChainTypeTransfer> getOfferChainTypeTransfers(UserVisit userVisit, Collection<OfferChainType> offerChainTypes) -
getOfferChainTypeTransfersByOffer
public List<OfferChainTypeTransfer> getOfferChainTypeTransfersByOffer(UserVisit userVisit, Offer offer) -
getOfferChainTypeTransfersByChainType
public List<OfferChainTypeTransfer> getOfferChainTypeTransfersByChainType(UserVisit userVisit, ChainType chainType) -
updateOfferChainTypeFromValue
public void updateOfferChainTypeFromValue(OfferChainTypeValue offerChainTypeValue, BasePK updatedBy) -
deleteOfferChainType
-
deleteOfferChainTypes
-
deleteOfferChainTypesByOffer
-
deleteOfferChainTypesByChainType
-
deleteOfferChainTypesByChain
-
getOfferResultTransfers
public List<OfferResultTransfer> getOfferResultTransfers(UserVisit userVisit, UserVisitSearch userVisitSearch)
-