ProductModel instead
Represents a product.@Deprecated public class Product extends GeneratedProduct
GenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationExceptionCODE, DEFAULT_INITIAL_ATTRIBUTES, DESCRIPTION, NAME, PICTURE, THUMBNAIL, UNITLANGUAGE_FALLBACK_ENABLED_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEimpl, tenant| Constructor and Description |
|---|
Product()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Deprecated.
Has to be implemented for each concrete subtype of item.
|
Map |
getAllDescriptions(SessionContext ctx)
Deprecated.
|
Map |
getAllNames(SessionContext ctx)
Deprecated.
|
ProductPriceInformations |
getAllPriceInformations(boolean net)
Deprecated.
Calculates all applicable prices, taxes and discounts for this product and the current session user at the current
time.
|
ProductPriceInformations |
getAllPriceInformations(Date forDate,
boolean net)
Deprecated.
Calculates all applicable prices, taxes and discounts for this product and the current session user at the given
time.
|
ProductPriceInformations |
getAllPriceInformations(SessionContext ctx,
boolean net)
Deprecated.
Calculates all applicable prices, taxes and discounts for this product and the current session user at the current
time.
|
ProductPriceInformations |
getAllPriceInformations(SessionContext ctx,
Date forDate,
boolean net)
Deprecated.
Calculates all applicable prices, taxes and discounts for this product and the current session user at the given
time.
|
List |
getDiscountInformations(boolean net)
Deprecated.
Calculates all applying discounts for this product and the current session user at this time.
|
List |
getDiscountInformations(Date forDate,
boolean net)
Deprecated.
Calculates all applying discounts for this product and the current session user.
|
List |
getDiscountInformations(SessionContext ctx,
boolean net)
Deprecated.
Calculates all applying discounts for this product and the current session user at this time.
|
List |
getDiscountInformations(SessionContext ctx,
Date forDate,
boolean net)
Deprecated.
Calculates all applying discounts for this product and the current session user.
|
List |
getPriceInformations(boolean net)
Deprecated.
Calculates all applicable prices for this product and the current session user at this time.
|
List |
getPriceInformations(Date forDate,
boolean net)
Deprecated.
Calculates all applicable prices for this product and the current session user.
|
List |
getPriceInformations(SessionContext ctx,
boolean net)
Deprecated.
Calculates all applicable prices for this product and the current session user at this time.
|
List |
getPriceInformations(SessionContext ctx,
Date forDate,
boolean net)
Deprecated.
Calculates all applicable prices for this product and the current session user.
|
List |
getTaxInformations()
Deprecated.
Calculates all applying taxes for this product and the current session user at this time.
|
List |
getTaxInformations(Date forDate)
Deprecated.
Calculates all applying taxes for this product and the current session user.
|
List |
getTaxInformations(SessionContext ctx)
Deprecated.
Calculates all applying taxes for this product and the current session user at this time.
|
List |
getTaxInformations(SessionContext ctx,
Date forDate)
Deprecated.
Calculates all applying taxes for this product and the current session user.
|
void |
setAllDescriptions(SessionContext ctx,
Map descriptions)
Deprecated.
|
void |
setAllNames(SessionContext ctx,
Map names)
Deprecated.
|
String |
toString()
Deprecated.
Returns String representation the string representation of a product adds the product code to the representation
of an Item (pk).
Examples: |
getAllDescription, getAllDescription, getAllName, getAllName, getCode, getCode, getDefaultAttributeModes, getDescription, getDescription, getName, getName, getPicture, getPicture, getThumbnail, getThumbnail, getUnit, getUnit, setAllDescription, setAllDescription, setAllName, setAllName, setCode, setCode, setDescription, setDescription, setName, setName, setPicture, setPicture, setThumbnail, setThumbnail, setUnit, setUnitgetInitialProperties, getNonInitialAttributesgetAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertycreateNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyaddLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, checkRemovable, clearPermission, compareTo, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getOwner, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRestrictedPrincipals, getSession, getSyncObject, getTenant, getTransientObject, getTransientObjectMap, hashCode, hasRegisteredClassAccessorFor, internal_registerClassAccessorFor, internal_registerNonClassAccessorFor, invalidateLocalCaches, isAlive, isCacheBound, isCurrentlyRemoving, isCurrentlyRemoving, isEmptyRelationValue, isInCreate, isInstanceOf, isItemCheckBeforeRemoveableDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, readResolve, refreshRemote, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, remove, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinks, removePartOfItems, removePartOfItems, setAllAttributes, setAllAttributes, setAllAttributesInternal, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAttribute, setAttribute, setAttributeFromString, setAttributeFromString, setCacheBound, setComposedType, setCreationTime, setImplementation, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setModificationTime, setNonInitialAttributes, setOwner, setPermissionsByMap, setTransientObject, setUseTA, useTA, writeReplacegetImplementation, setTenantprotected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
ItemComposedType.newInstance(Map).
In case this method uses any of the attribute values during creation it is required to override
Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
Sn example:
public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
// here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
super.getNonInitialAttributes( ctx, allAttributes );
// remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
createItem in class GenericItemctx - the current session context which this item is created withintype - the actual item type ( since subtypes may not provide a own jalo class this may be different from the
type which this method was implemented for )JaloBusinessException - indicates an error during creation - any changes will be rollbacked@Deprecated public Map getAllNames(SessionContext ctx)
GeneratedProduct.getAllName(SessionContext)ctx - A SessionContext object@AttributeSetter(value="Product.name") @Deprecated public void setAllNames(SessionContext ctx, Map names)
GeneratedProduct.setAllName(SessionContext, Map)ctx - A SessionContext objectnames - map with following combination key:language, value:name@Deprecated public Map getAllDescriptions(SessionContext ctx)
GeneratedProduct.getAllDescription(SessionContext)ctx - A SessionContext object@AttributeSetter(value="Product.description") @Deprecated public void setAllDescriptions(SessionContext ctx, Map descriptions)
GeneratedProduct.setAllDescription(SessionContext, Map)ctx - A SessionContext objectdescriptions - map with following combination key:language, value:descriptionpublic ProductPriceInformations getAllPriceInformations(boolean net) throws JaloPriceFactoryException
As default this methods just calls
AbstractPriceFactory.getAllPriceInformations(Product, Date, boolean).
Override this method to implement other (non-pricefactory) logic.
net - tells whether net or gross prices are requestedProductPriceInformations objectJaloPriceFactoryException - indicates an price calculation errorpublic ProductPriceInformations getAllPriceInformations(SessionContext ctx, boolean net) throws JaloPriceFactoryException
As default this methods just calls
AbstractPriceFactory.getAllPriceInformations(Product, Date, boolean).
Override this method to implement other (non-pricefactory) logic.
net - tells whether net or gross prices are requestedProductPriceInformations objectJaloPriceFactoryException - indicates an price calculation errorpublic ProductPriceInformations getAllPriceInformations(Date forDate, boolean net) throws JaloPriceFactoryException
As default this methods just calls
AbstractPriceFactory.getAllPriceInformations(Product, Date, boolean).
Override this method to implement other (non-pricefactory) logic.
net - tells whether net or gross prices are requestedforDate - the date to calculate prices, taxes and discounts forProductPriceInformations objectJaloPriceFactoryException - indicates an price calculation errorpublic ProductPriceInformations getAllPriceInformations(SessionContext ctx, Date forDate, boolean net) throws JaloPriceFactoryException
As default this methods just calls
AbstractPriceFactory.getAllPriceInformations(Product, Date, boolean).
Override this method to implement other (non-pricefactory) logic.
net - tells whether net or gross prices are requestedforDate - the date to calculate prices, taxes and discounts forProductPriceInformations objectJaloPriceFactoryException - indicates an price calculation errorpublic List getPriceInformations(Date forDate, boolean net) throws JaloPriceFactoryException
forDate - the date for which the prices should be calculatednet - tells whether net or gross prices are requestedList containing PriceInformationsJaloPriceFactoryException - indicates an price calculation errorpublic List getPriceInformations(SessionContext ctx, Date forDate, boolean net) throws JaloPriceFactoryException
forDate - the date for which the prices should be calculatednet - tells whether net or gross prices are requestedList containing PriceInformationsJaloPriceFactoryException - indicates an price calculation errorpublic List getPriceInformations(boolean net) throws JaloPriceFactoryException
net - tells whether net or gross prices are requestedList containing PriceInformationsJaloPriceFactoryException - indicates an price calculation errorpublic List getPriceInformations(SessionContext ctx, boolean net) throws JaloPriceFactoryException
net - tells whether net or gross prices are requestedList containing PriceInformationsJaloPriceFactoryException - indicates an price calculation errorpublic List getTaxInformations(Date forDate) throws JaloPriceFactoryException
forDate - the date (in case taxes are assoziated time dependantly)List containing TaxInformationsJaloPriceFactoryException - indicates an price calculation errorpublic List getTaxInformations(SessionContext ctx, Date forDate) throws JaloPriceFactoryException
forDate - the date (in case taxes are assoziated time dependantly)List containing TaxInformationsJaloPriceFactoryException - indicates an price calculation errorpublic List getTaxInformations() throws JaloPriceFactoryException
List containing TaxInformationsJaloPriceFactoryException - indicates an price calculation errorpublic List getTaxInformations(SessionContext ctx) throws JaloPriceFactoryException
List containing TaxInformationsJaloPriceFactoryException - indicates an price calculation errorpublic List getDiscountInformations(Date forDate, boolean net) throws JaloPriceFactoryException
forDate - the date (in case discounts are assoziated time dependantly)net - true if net values should be caculatedList containing DiscountInformationsJaloPriceFactoryException - indicates an calculation errorpublic List getDiscountInformations(SessionContext ctx, Date forDate, boolean net) throws JaloPriceFactoryException
forDate - the date (in case discounts are assoziated time dependantly)net - true if net values should be caculatedList containing DiscountInformationsJaloPriceFactoryException - indicates an calculation errorpublic List getDiscountInformations(boolean net) throws JaloPriceFactoryException
net - true if net values should be caculatedList containing DiscountInformationsJaloPriceFactoryException - indicates an calculation errorpublic List getDiscountInformations(SessionContext ctx, boolean net) throws JaloPriceFactoryException
net - true if net values should be caculatedList containing DiscountInformationsJaloPriceFactoryException - indicates an calculation errorpublic String toString()
Product 'AUDIA2' (2we8sdf/23423rwqade88%32:1)
Copyright © 2017 SAP SE. All Rights Reserved.