public abstract class Restriction extends GeneratedRestriction
GenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationExceptionDEFAULT_INITIAL_ATTRIBUTES, DESCRIPTION, POSITIVE, RESTRICTIONTYPE, VIOLATIONMESSAGE, VOUCHER, VOUCHERHANDLER, VOUCHERPOSLANGUAGE_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, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEimpl, tenant| Constructor and Description |
|---|
Restriction() |
| Modifier and Type | Method and Description |
|---|---|
Map |
getAllRestrictionType(SessionContext ctx)
Returns a map containing all localized names of the type of this restriction.
|
VoucherEntrySet |
getApplicableEntries(AbstractOrder anOrder) |
String |
getDescription(SessionContext ctx)
Returns a description for this restriction.
|
protected String[] |
getMessageAttributeValues()
Returns the values for making violation messages more useful.
|
String |
getRestrictionType(SessionContext ctx)
Convenience method.
|
String |
getViolationMessage(SessionContext ctx)
Returns a message explaining on what terms this restriction is fulfilled.
|
boolean |
isFulfilled(AbstractOrder anOrder)
Returns true if the specified abstract order is not null and fulfills this restriction.
|
boolean |
isFulfilled(Product aProduct)
Returns true if the specified product is not null and fulfills this restriction.
|
protected abstract boolean |
isFulfilledInternal(AbstractOrder anOrder)
Returns true if the specified abstract order fulfills this restriction.
|
protected abstract boolean |
isFulfilledInternal(Product aProduct)
Returns true if the specified product fulfills this restriction.
|
createItem, getAllDescription, getAllDescription, getAllRestrictionType, getAllViolationMessage, getAllViolationMessage, getDefaultAttributeModes, getDescription, getRestrictionType, getViolationMessage, getVoucher, getVoucher, isPositive, isPositive, isPositiveAsPrimitive, isPositiveAsPrimitive, setAllDescription, setAllDescription, setAllViolationMessage, setAllViolationMessage, setDescription, setDescription, setPositive, setPositive, setPositive, setPositive, setViolationMessage, setViolationMessage, setVoucher, setVouchergetInitialProperties, 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, toString, useTA, writeReplacegetImplementation, setTenantpublic Map getAllRestrictionType(SessionContext ctx)
getAllRestrictionType in class GeneratedRestrictionctx - the context of the actual sessionpublic VoucherEntrySet getApplicableEntries(AbstractOrder anOrder)
public String getDescription(SessionContext ctx)
getDescription in class GeneratedRestrictionpublic String getRestrictionType(SessionContext ctx)
getRestrictionType in class GeneratedRestrictionctx - the context of the actual session.public final String getViolationMessage(SessionContext ctx)
getViolationMessage in class GeneratedRestrictionprotected String[] getMessageAttributeValues()
public final boolean isFulfilled(AbstractOrder anOrder)
anOrder - the abstract order to check whether it fullfills this restriction.public final boolean isFulfilled(Product aProduct)
aProduct - the product to check whether it fullfills this restriction.protected abstract boolean isFulfilledInternal(AbstractOrder anOrder)
anOrder - the abstract order to check whether it fullfills this restriction.protected abstract boolean isFulfilledInternal(Product aProduct)
aProduct - the product to check whether it fullfills this restriction.Copyright © 2017 SAP SE. All Rights Reserved.