public abstract class PDTRow extends GeneratedPDTRow
GenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException| Modifier and Type | Field and Description |
|---|---|
static String |
ALL_PRODUCT_GROUPS
Field ALL_PRODUCT_GROUPS
|
static Product |
ALL_PRODUCTS
Field ALL_PRODUCTS
|
static String |
ALL_USER_GROUPS
Field ALL_USER_GROUPS
|
static User |
ALL_USERS
Field ALL_USERS
|
static String |
DATE_RANGE
Deprecated.
|
static String |
DATERANGE
Deprecated.
|
static String |
END_TIME
Deprecated.
|
static String |
START_TIME
Deprecated.
|
DEFAULT_INITIAL_ATTRIBUTES, ENDTIME, PG, PRODUCT, PRODUCTID, PRODUCTMATCHQUALIFIER, STARTTIME, UG, USER, USERMATCHQUALIFIERLANGUAGE_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 |
|---|
PDTRow() |
| Modifier and Type | Method and Description |
|---|---|
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.
|
Customer |
getCustomer()
Deprecated.
please use getUser() instead.
|
Customer |
getCustomer(SessionContext ctx)
Deprecated.
please use getUser(SessionContext) instead.
|
EnumerationValue |
getCustomerGroup()
Deprecated.
please use getUserGroup instead.
|
EnumerationValue |
getCustomerGroup(SessionContext ctx)
Deprecated.
please use getUserGroup instead.
|
EnumerationValue |
getCustomerPriceGroup()
Deprecated.
please use getCustomerGroup() instead
|
EnumerationValue |
getCustomerPriceGroup(SessionContext ctx)
Deprecated.
please use getUserGroup( SessionContext ctx) instead
|
StandardDateRange |
getDateRange() |
StandardDateRange |
getDateRange(SessionContext ctx)
The range of time which this row is valid within.
|
protected Long |
getInitialProductMatchField(Item.ItemAttributeMap allAttributes) |
protected Long |
getInitialUserMatchField(Item.ItemAttributeMap allAttributes) |
EnumerationValue |
getProductGroup()
Specified the product price group this rule is assigned to.
|
EnumerationValue |
getProductGroup(SessionContext ctx)
|
EnumerationValue |
getProductPriceGroup()
Deprecated.
please use getProductGroup() instead
|
EnumerationValue |
getProductPriceGroup(SessionContext ctx)
Deprecated.
please use getProductGroup( SessionContext ctx ) instead
|
EnumerationValue |
getUserGroup()
The user group which this rule is assigned to.
|
EnumerationValue |
getUserGroup(SessionContext ctx)
See
getUserGroup(). |
protected void |
markProductModified()
Marks the product which this row (might) belong to modified.
|
void |
remove(SessionContext ctx)
Removes this item.
|
protected void |
removeLinks()
Superclass method overridden to skip searching for links during removal of a PDTRow.
|
void |
setDateRange(SessionContext ctx,
StandardDateRange dateRange)
Method setDateRange
|
void |
setDateRange(StandardDateRange dateRange) |
protected void |
setPg(SessionContext ctx,
EnumerationValue value)
Whenever a non-null PG is set the product attribute is cleared.
|
protected void |
setProduct(SessionContext ctx,
Product value)
Whenever a non-null product is set the PG attribute is cleared.
|
void |
setProductId(SessionContext ctx,
String value)
Generated method - Setter of the
PDTRow.productId attribute. |
void |
setProductMatchQualifier(SessionContext ctx,
Long value)
Overwritten to disallow changing this calculated field from outside this class
|
Object |
setProperty(SessionContext ctx,
String name,
Object value)
Overwritten to mark owning product as modified each time a property of this row has been changed.
|
void |
setUg(SessionContext ctx,
EnumerationValue value)
Whenever a non-null UG is set the user attribute is cleared.
|
void |
setUser(SessionContext ctx,
User value)
Whenever a non-null user is set the UG attribute is cleared.
|
void |
setUserMatchQualifier(SessionContext ctx,
Long value)
Overwritten to disallow changing this calculated field from outside this class
|
protected void |
updateProductMatchField() |
protected void |
updateUserMatchField() |
getDefaultAttributeModes, getEndTime, getEndTime, getPg, getPg, getProduct, getProduct, getProductId, getProductId, getProductMatchQualifier, getProductMatchQualifier, getProductMatchQualifierAsPrimitive, getProductMatchQualifierAsPrimitive, getStartTime, getStartTime, getUg, getUg, getUser, getUser, getUserMatchQualifier, getUserMatchQualifier, getUserMatchQualifierAsPrimitive, getUserMatchQualifierAsPrimitive, setEndTime, setEndTime, setPg, setProduct, setProductId, setProductMatchQualifier, setProductMatchQualifier, setProductMatchQualifier, setStartTime, setStartTime, setUg, setUser, setUserMatchQualifier, setUserMatchQualifier, setUserMatchQualifiergetInitialProperties, 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, 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, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, 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, toString, useTA, writeReplacegetImplementation, setTenant@Deprecated public static final String DATERANGE
@Deprecated public static final String DATE_RANGE
@Deprecated public static final String START_TIME
@Deprecated public static final String END_TIME
public static final Product ALL_PRODUCTS
public static final String ALL_PRODUCT_GROUPS
public static final User ALL_USERS
public static final String ALL_USER_GROUPS
protected 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 rollbackedpublic void setProductMatchQualifier(SessionContext ctx, Long value)
setProductMatchQualifier in class GeneratedPDTRowvalue - the productMatchQualifierpublic void setUserMatchQualifier(SessionContext ctx, Long value)
setUserMatchQualifier in class GeneratedPDTRowvalue - the userMatchQualifierprotected Long getInitialProductMatchField(Item.ItemAttributeMap allAttributes)
protected Long getInitialUserMatchField(Item.ItemAttributeMap allAttributes)
protected void updateProductMatchField()
protected void updateUserMatchField()
protected void setProduct(SessionContext ctx, Product value)
setProduct in class GeneratedPDTRowvalue - the productpublic void setProductId(SessionContext ctx, String value)
GeneratedPDTRowPDTRow.productId attribute.setProductId in class GeneratedPDTRowvalue - the productIdpublic void setUser(SessionContext ctx, User value)
setUser in class GeneratedPDTRowvalue - the userprotected void setPg(SessionContext ctx, EnumerationValue value)
setPg in class GeneratedPDTRowvalue - the pgpublic void setUg(SessionContext ctx, EnumerationValue value)
setUg in class GeneratedPDTRowvalue - the ugprotected void removeLinks()
removeLinks in class Item@Deprecated public EnumerationValue getProductPriceGroup()
null is a valid value and means that all groups are matched, while an empty
String will result in an invisible PriceRow as it is only matching the "empty String" product price
group.public EnumerationValue getProductGroup()
null is a valid value and means that all groups are matched, while an empty
String will result in an invisible PriceRow as it is only matching the "empty String" product price
group.@Deprecated public EnumerationValue getProductPriceGroup(SessionContext ctx)
ctx - public EnumerationValue getProductGroup(SessionContext ctx)
ctx - @Deprecated public Customer getCustomer()
null is set all customers are meant. If one is
specified the customer price group field is not evaluated.@Deprecated public Customer getCustomer(SessionContext ctx)
getCustomer().ctx - @Deprecated public EnumerationValue getCustomerPriceGroup()
null is a valid value and means that all groups are matched.@Deprecated public EnumerationValue getCustomerGroup()
null is a valid value and means that all groups are matched.public EnumerationValue getUserGroup()
null is a
valid value and means that all groups are matched.@Deprecated public EnumerationValue getCustomerPriceGroup(SessionContext ctx)
ctx - @Deprecated public EnumerationValue getCustomerGroup(SessionContext ctx)
getCustomerGroup().ctx - public EnumerationValue getUserGroup(SessionContext ctx)
getUserGroup().ctx - public StandardDateRange getDateRange()
public StandardDateRange getDateRange(SessionContext ctx)
public void setDateRange(StandardDateRange dateRange)
public void setDateRange(SessionContext ctx, StandardDateRange dateRange)
ctx - dateRange - public void remove(SessionContext ctx) throws ConsistencyCheckException
Item
This method is using the following attributes of the given SessionContext:
| CacheUsage | Language | StagingMethod | ||
|---|---|---|---|---|
| n/a (this is a setter method) | no, language doesn't matter for removal | yes if called on a StageableItem, no otherwise |
remove in class Itemctx - A SessionContext objectConsistencyCheckException - if this item could not be removed for some reasonpublic Object setProperty(SessionContext ctx, String name, Object value)
setProperty in class ExtensibleItemctx - A SessionContext objectname - the name (key) of the propertyvalue - the valuenull if there was no property.protected void markProductModified()
Europe1Constants.PDTROW_MARK_PRODUCT_MODIFIED to true / false. If this session
attribute is set to true, the product will be marked as modified independent of the other config setting. If set
to false, the config property pdtrow.mark.product.modified configured in your local.properties will be evaluated,
if set to true, the product will be marked modified, if set to false the mark as modified will be skipped.
By default this feature is disabled (no session attribute set (-> false) and the default value in
project.properties is set to false.Copyright © 2017 SAP SE. All Rights Reserved.