Class ContentLogic
java.lang.Object
com.echothree.util.server.control.BaseLogic
com.echothree.model.control.content.server.logic.ContentLogic
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkReferrer
(ExecutionErrorAccumulator eea, String referrer) createContentCategoryItem
(ExecutionErrorAccumulator eea, ContentCategory contentCategory, Item item, InventoryCondition inventoryCondition, UnitOfMeasureType unitOfMeasureType, Currency currency, Boolean isDefault, Integer sortOrder, BasePK createdBy) void
deleteContentCategoryItem
(ContentCategoryItem contentCategoryItem, BasePK deletedBy) void
deleteContentCategoryItemByOfferItemPrice
(OfferItemPrice offerItemPrice, BasePK deletedBy) getContentCategoryDefaultOfferUse
(ContentCategory contentCategory) For a given ContentCategory, find the OfferUse that is used for items added to it.static ContentLogic
getParentContentCategoryByNonNullDefaultOfferUse
(ContentCategory startingContentCategory) Find a ContentCategory where a DefaultOfferUse is not null by following parents.void
updateContentCatalogItemPriceByContentCatalogItem
(ContentCatalogItem contentCatalogItem, BasePK updatedBy) Check to make sure the ContentCatalogItem has the lower price possible in the ContentCatalog, or if it is no longer used, delete it.void
updateContentCatalogItemPrices
(Iterable<ContentCatalogItem> contentCatalogItems, BasePK updatedBy) For all ContentCatalogItem in the Set, verify they have the lower price possible in their ContentCatalog.void
updateContentCatalogItemPricesByContentCategory
(ContentCategory contentCategory, BasePK updatedBy) Call when a ContentCategory is updated, and the DefaultOfferUse was modified.void
updateContentCatalogItemPricesByOfferItemPrice
(OfferItemPrice offerItemPrice, BasePK updatedBy) void
updateContentCategoryItemFromValue
(ContentCategoryItemValue contentCategoryItemValue, BasePK updatedBy) Methods inherited from class com.echothree.util.server.control.BaseLogic
addExecutionError, addSecurityMessage, getEntityInstanceByBaseEntity, getEntityInstanceByBasePK, getSession, handleExecutionError, handleSecurityMessage, hasExecutionErrors
-
Method Details
-
getInstance
-
checkReferrer
-
getParentContentCategoryByNonNullDefaultOfferUse
public ContentCategory getParentContentCategoryByNonNullDefaultOfferUse(ContentCategory startingContentCategory) Find a ContentCategory where a DefaultOfferUse is not null by following parents. -
getContentCategoryDefaultOfferUse
For a given ContentCategory, find the OfferUse that is used for items added to it. -
updateContentCatalogItemPriceByContentCatalogItem
public void updateContentCatalogItemPriceByContentCatalogItem(ContentCatalogItem contentCatalogItem, BasePK updatedBy) Check to make sure the ContentCatalogItem has the lower price possible in the ContentCatalog, or if it is no longer used, delete it. -
updateContentCatalogItemPrices
public void updateContentCatalogItemPrices(Iterable<ContentCatalogItem> contentCatalogItems, BasePK updatedBy) For all ContentCatalogItem in the Set, verify they have the lower price possible in their ContentCatalog. -
updateContentCatalogItemPricesByOfferItemPrice
public void updateContentCatalogItemPricesByOfferItemPrice(OfferItemPrice offerItemPrice, BasePK updatedBy) -
updateContentCatalogItemPricesByContentCategory
public void updateContentCatalogItemPricesByContentCategory(ContentCategory contentCategory, BasePK updatedBy) Call when a ContentCategory is updated, and the DefaultOfferUse was modified. -
createContentCategoryItem
public ContentCategoryItem createContentCategoryItem(ExecutionErrorAccumulator eea, ContentCategory contentCategory, Item item, InventoryCondition inventoryCondition, UnitOfMeasureType unitOfMeasureType, Currency currency, Boolean isDefault, Integer sortOrder, BasePK createdBy) -
updateContentCategoryItemFromValue
public void updateContentCategoryItemFromValue(ContentCategoryItemValue contentCategoryItemValue, BasePK updatedBy) -
deleteContentCategoryItem
-
deleteContentCategoryItemByOfferItemPrice
public void deleteContentCategoryItemByOfferItemPrice(OfferItemPrice offerItemPrice, BasePK deletedBy)
-