Class ContentLogic
java.lang.Object
com.echothree.util.server.control.BaseLogic
com.echothree.model.control.content.server.logic.ContentLogic
-
Field Summary
Fields inherited from class com.echothree.util.server.control.BaseLogic
coreControl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckReferrer(ExecutionErrorAccumulator eea, String referrer) createContentCategoryItem(ExecutionErrorAccumulator eea, ContentCategory contentCategory, Item item, InventoryCondition inventoryCondition, UnitOfMeasureType unitOfMeasureType, Currency currency, Boolean isDefault, Integer sortOrder, BasePK createdBy) voiddeleteContentCategoryItem(ContentCategoryItem contentCategoryItem, BasePK deletedBy) voiddeleteContentCategoryItemByOfferItemPrice(OfferItemPrice offerItemPrice, BasePK deletedBy) getContentCategoryDefaultOfferUse(ContentCategory contentCategory) For a given ContentCategory, find the OfferUse that is used for items added to it.static ContentLogicgetParentContentCategoryByNonNullDefaultOfferUse(ContentCategory startingContentCategory) Find a ContentCategory where a DefaultOfferUse is not null by following parents.voidupdateContentCatalogItemPriceByContentCatalogItem(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.voidupdateContentCatalogItemPrices(Iterable<ContentCatalogItem> contentCatalogItems, BasePK updatedBy) For all ContentCatalogItem in the Set, verify they have the lower price possible in their ContentCatalog.voidupdateContentCatalogItemPricesByContentCategory(ContentCategory contentCategory, BasePK updatedBy) Call when a ContentCategory is updated, and the DefaultOfferUse was modified.voidupdateContentCatalogItemPricesByOfferItemPrice(OfferItemPrice offerItemPrice, BasePK updatedBy) voidupdateContentCategoryItemFromValue(ContentCategoryItemValue contentCategoryItemValue, BasePK updatedBy) Methods inherited from class com.echothree.util.server.control.BaseLogic
addExecutionError, addSecurityMessage, getEntityInstanceByBaseEntity, getEntityInstanceByBasePK, getSession, handleExecutionError, handleSecurityMessage, hasExecutionErrors
-
Constructor Details
-
ContentLogic
protected ContentLogic()
-
-
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)
-