public abstract class GeneratedProductListComponent extends SimpleCMSComponent
ProductListComponent.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 |
CATEGORY
Qualifier of the
ProductListComponent.category attribute |
static String |
CATEGORYCODE
Qualifier of the
ProductListComponent.categoryCode attribute |
protected static BidirectionalOneToManyHandler<GeneratedProductListComponent> |
CATEGORYHANDLER
BidirectionalOneToManyHandler for handling 1:n CATEGORY's relation attributes from 'one' side. |
protected static Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static String |
HEADLINE
Qualifier of the
ProductListComponent.headline attribute |
static String |
LAYOUT
Qualifier of the
ProductListComponent.layout attribute |
static String |
PAGINATION
Qualifier of the
ProductListComponent.pagination attribute |
static String |
PRODUCTCODES
Qualifier of the
ProductListComponent.productCodes attribute |
static String |
PRODUCTS
Qualifier of the
ProductListComponent.products attribute |
protected static String |
PRODUCTSFORPRODUCTLISTCOMPONENT_MARKMODIFIED
Relation disable markmodifed parameter constants for ProductsForProductListComponent from ((cms2lib))
|
protected static String |
PRODUCTSFORPRODUCTLISTCOMPONENT_SRC_ORDERED
Relation ordering override parameter constants for ProductsForProductListComponent from ((cms2lib))
|
protected static String |
PRODUCTSFORPRODUCTLISTCOMPONENT_TGT_ORDERED |
static String |
PRODUCTSFROMCONTEXT
Qualifier of the
ProductListComponent.productsFromContext attribute |
static String |
SEARCHQUERY
Qualifier of the
ProductListComponent.searchQuery attribute |
CONTAINERS, ELEMENTSFORCONTAINER_MARKMODIFIED, ELEMENTSFORCONTAINER_SRC_ORDERED, ELEMENTSFORCONTAINER_TGT_ORDEREDCONTAINER, ELEMENTSFORSLOT_MARKMODIFIED, ELEMENTSFORSLOT_SRC_ORDERED, ELEMENTSFORSLOT_TGT_ORDERED, ONLYONERESTRICTIONMUSTAPPLY, RESTRICTED, RESTRICTIONS, RESTRICTIONSFORCOMPONENTS_MARKMODIFIED, RESTRICTIONSFORCOMPONENTS_SRC_ORDERED, RESTRICTIONSFORCOMPONENTS_TGT_ORDERED, SLOTS, TYPE, TYPECODE, VISIBLECATALOGVERSION, NAME, UIDLANGUAGE_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, staticTransientObjectsimpl, tenant| Constructor and Description |
|---|
GeneratedProductListComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToProducts(Product value)
Generated method - Adds
value to products. |
void |
addToProducts(SessionContext ctx,
Product value)
Generated method - Adds
value to products. |
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.
|
Map<Language,String> |
getAllHeadline()
Generated method - Getter of the
ProductListComponent.headline attribute. |
Map<Language,String> |
getAllHeadline(SessionContext ctx)
Generated method - Getter of the
ProductListComponent.headline attribute. |
Map<Language,String> |
getAllSearchQuery()
Generated method - Getter of the
ProductListComponent.searchQuery attribute. |
Map<Language,String> |
getAllSearchQuery(SessionContext ctx)
Generated method - Getter of the
ProductListComponent.searchQuery attribute. |
Category |
getCategory()
Generated method - Getter of the
ProductListComponent.category attribute. |
Category |
getCategory(SessionContext ctx)
Generated method - Getter of the
ProductListComponent.category attribute. |
String |
getCategoryCode()
Generated method - Getter of the
ProductListComponent.categoryCode attribute. |
abstract String |
getCategoryCode(SessionContext ctx)
Generated method - Getter of the
ProductListComponent.categoryCode attribute. |
protected Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
String |
getHeadline()
Generated method - Getter of the
ProductListComponent.headline attribute. |
String |
getHeadline(SessionContext ctx)
Generated method - Getter of the
ProductListComponent.headline attribute. |
EnumerationValue |
getLayout()
Generated method - Getter of the
ProductListComponent.layout attribute. |
EnumerationValue |
getLayout(SessionContext ctx)
Generated method - Getter of the
ProductListComponent.layout attribute. |
List<String> |
getProductCodes()
Generated method - Getter of the
ProductListComponent.productCodes attribute. |
abstract List<String> |
getProductCodes(SessionContext ctx)
Generated method - Getter of the
ProductListComponent.productCodes attribute. |
List<Product> |
getProducts()
Generated method - Getter of the
ProductListComponent.products attribute. |
List<Product> |
getProducts(SessionContext ctx)
Generated method - Getter of the
ProductListComponent.products attribute. |
long |
getProductsCount() |
long |
getProductsCount(SessionContext ctx) |
String |
getSearchQuery()
Generated method - Getter of the
ProductListComponent.searchQuery attribute. |
String |
getSearchQuery(SessionContext ctx)
Generated method - Getter of the
ProductListComponent.searchQuery attribute. |
Boolean |
isPagination()
Generated method - Getter of the
ProductListComponent.pagination attribute. |
Boolean |
isPagination(SessionContext ctx)
Generated method - Getter of the
ProductListComponent.pagination attribute. |
boolean |
isPaginationAsPrimitive()
Generated method - Getter of the
ProductListComponent.pagination attribute. |
boolean |
isPaginationAsPrimitive(SessionContext ctx)
Generated method - Getter of the
ProductListComponent.pagination attribute. |
Boolean |
isProductsFromContext()
Generated method - Getter of the
ProductListComponent.productsFromContext attribute. |
Boolean |
isProductsFromContext(SessionContext ctx)
Generated method - Getter of the
ProductListComponent.productsFromContext attribute. |
boolean |
isProductsFromContextAsPrimitive()
Generated method - Getter of the
ProductListComponent.productsFromContext attribute. |
boolean |
isProductsFromContextAsPrimitive(SessionContext ctx)
Generated method - Getter of the
ProductListComponent.productsFromContext attribute. |
void |
removeFromProducts(Product value)
Generated method - Removes
value from products. |
void |
removeFromProducts(SessionContext ctx,
Product value)
Generated method - Removes
value from products. |
void |
setAllHeadline(Map<Language,String> value)
Generated method - Setter of the
ProductListComponent.headline attribute. |
void |
setAllHeadline(SessionContext ctx,
Map<Language,String> value)
Generated method - Setter of the
ProductListComponent.headline attribute. |
void |
setAllSearchQuery(Map<Language,String> value)
Generated method - Setter of the
ProductListComponent.searchQuery attribute. |
void |
setAllSearchQuery(SessionContext ctx,
Map<Language,String> value)
Generated method - Setter of the
ProductListComponent.searchQuery attribute. |
void |
setCategory(Category value)
Generated method - Setter of the
ProductListComponent.category attribute. |
void |
setCategory(SessionContext ctx,
Category value)
Generated method - Setter of the
ProductListComponent.category attribute. |
void |
setHeadline(SessionContext ctx,
String value)
Generated method - Setter of the
ProductListComponent.headline attribute. |
void |
setHeadline(String value)
Generated method - Setter of the
ProductListComponent.headline attribute. |
void |
setLayout(EnumerationValue value)
Generated method - Setter of the
ProductListComponent.layout attribute. |
void |
setLayout(SessionContext ctx,
EnumerationValue value)
Generated method - Setter of the
ProductListComponent.layout attribute. |
void |
setPagination(boolean value)
Generated method - Setter of the
ProductListComponent.pagination attribute. |
void |
setPagination(Boolean value)
Generated method - Setter of the
ProductListComponent.pagination attribute. |
void |
setPagination(SessionContext ctx,
boolean value)
Generated method - Setter of the
ProductListComponent.pagination attribute. |
void |
setPagination(SessionContext ctx,
Boolean value)
Generated method - Setter of the
ProductListComponent.pagination attribute. |
void |
setProducts(List<Product> value)
Generated method - Setter of the
ProductListComponent.products attribute. |
void |
setProducts(SessionContext ctx,
List<Product> value)
Generated method - Setter of the
ProductListComponent.products attribute. |
void |
setProductsFromContext(boolean value)
Generated method - Setter of the
ProductListComponent.productsFromContext attribute. |
void |
setProductsFromContext(Boolean value)
Generated method - Setter of the
ProductListComponent.productsFromContext attribute. |
void |
setProductsFromContext(SessionContext ctx,
boolean value)
Generated method - Setter of the
ProductListComponent.productsFromContext attribute. |
void |
setProductsFromContext(SessionContext ctx,
Boolean value)
Generated method - Setter of the
ProductListComponent.productsFromContext attribute. |
void |
setSearchQuery(SessionContext ctx,
String value)
Generated method - Setter of the
ProductListComponent.searchQuery attribute. |
void |
setSearchQuery(String value)
Generated method - Setter of the
ProductListComponent.searchQuery attribute. |
isContaineraddToContainers, addToContainers, getContainers, getContainers, getContainersCount, getContainersCount, removeFromContainers, removeFromContainers, setContainers, setContainersgetAllType, getType, getTypeCode, isRestricted, isVisibleaddToRestrictions, addToRestrictions, addToSlots, addToSlots, getAllType, getRestrictions, getRestrictions, getRestrictionsCount, getRestrictionsCount, getSlots, getSlots, getSlotsCount, getSlotsCount, getType, getTypeCode, isContainer, isContainerAsPrimitive, isContainerAsPrimitive, isOnlyOneRestrictionMustApply, isOnlyOneRestrictionMustApply, isOnlyOneRestrictionMustApplyAsPrimitive, isOnlyOneRestrictionMustApplyAsPrimitive, isRestricted, isRestrictedAsPrimitive, isRestrictedAsPrimitive, isVisible, isVisibleAsPrimitive, isVisibleAsPrimitive, removeFromRestrictions, removeFromRestrictions, removeFromSlots, removeFromSlots, setOnlyOneRestrictionMustApply, setOnlyOneRestrictionMustApply, setOnlyOneRestrictionMustApply, setOnlyOneRestrictionMustApply, setRestrictions, setRestrictions, setSlots, setSlots, setVisible, setVisible, setVisible, setVisiblegetCatalogVersion, getCatalogVersion, getName, getUid, getUid, setCatalogVersion, setCatalogVersion, setName, setName, setUid, setUidgetInitialProperties, 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 static final String HEADLINE
ProductListComponent.headline attributepublic static final String CATEGORYCODE
ProductListComponent.categoryCode attributepublic static final String PRODUCTSFROMCONTEXT
ProductListComponent.productsFromContext attributepublic static final String SEARCHQUERY
ProductListComponent.searchQuery attributepublic static final String PAGINATION
ProductListComponent.pagination attributepublic static final String LAYOUT
ProductListComponent.layout attributepublic static final String PRODUCTCODES
ProductListComponent.productCodes attributepublic static final String PRODUCTS
ProductListComponent.products attributeprotected static String PRODUCTSFORPRODUCTLISTCOMPONENT_SRC_ORDERED
protected static String PRODUCTSFORPRODUCTLISTCOMPONENT_TGT_ORDERED
protected static String PRODUCTSFORPRODUCTLISTCOMPONENT_MARKMODIFIED
public static final String CATEGORY
ProductListComponent.category attributeprotected static final BidirectionalOneToManyHandler<GeneratedProductListComponent> CATEGORYHANDLER
BidirectionalOneToManyHandler for handling 1:n CATEGORY's relation attributes from 'one' side.protected static final Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
getDefaultAttributeModes in class GeneratedSimpleCMSComponentpublic Category getCategory(SessionContext ctx)
ProductListComponent.category attribute.public Category getCategory()
ProductListComponent.category attribute.public void setCategory(SessionContext ctx, Category value)
ProductListComponent.category attribute.value - the categorypublic void setCategory(Category value)
ProductListComponent.category attribute.value - the categorypublic abstract String getCategoryCode(SessionContext ctx)
ProductListComponent.categoryCode attribute.public String getCategoryCode()
ProductListComponent.categoryCode attribute.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 AbstractCMSComponentctx - 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 String getHeadline(SessionContext ctx)
ProductListComponent.headline attribute.public String getHeadline()
ProductListComponent.headline attribute.public Map<Language,String> getAllHeadline(SessionContext ctx)
ProductListComponent.headline attribute.public Map<Language,String> getAllHeadline()
ProductListComponent.headline attribute.public void setHeadline(SessionContext ctx, String value)
ProductListComponent.headline attribute.value - the headlinepublic void setHeadline(String value)
ProductListComponent.headline attribute.value - the headlinepublic void setAllHeadline(SessionContext ctx, Map<Language,String> value)
ProductListComponent.headline attribute.value - the headlinepublic void setAllHeadline(Map<Language,String> value)
ProductListComponent.headline attribute.value - the headlinepublic EnumerationValue getLayout(SessionContext ctx)
ProductListComponent.layout attribute.public EnumerationValue getLayout()
ProductListComponent.layout attribute.public void setLayout(SessionContext ctx, EnumerationValue value)
ProductListComponent.layout attribute.value - the layoutpublic void setLayout(EnumerationValue value)
ProductListComponent.layout attribute.value - the layoutpublic Boolean isPagination(SessionContext ctx)
ProductListComponent.pagination attribute.public Boolean isPagination()
ProductListComponent.pagination attribute.public boolean isPaginationAsPrimitive(SessionContext ctx)
ProductListComponent.pagination attribute.public boolean isPaginationAsPrimitive()
ProductListComponent.pagination attribute.public void setPagination(SessionContext ctx, Boolean value)
ProductListComponent.pagination attribute.value - the paginationpublic void setPagination(Boolean value)
ProductListComponent.pagination attribute.value - the paginationpublic void setPagination(SessionContext ctx, boolean value)
ProductListComponent.pagination attribute.value - the paginationpublic void setPagination(boolean value)
ProductListComponent.pagination attribute.value - the paginationpublic abstract List<String> getProductCodes(SessionContext ctx)
ProductListComponent.productCodes attribute.public List<String> getProductCodes()
ProductListComponent.productCodes attribute.public List<Product> getProducts(SessionContext ctx)
ProductListComponent.products attribute.public List<Product> getProducts()
ProductListComponent.products attribute.public long getProductsCount(SessionContext ctx)
public long getProductsCount()
public void setProducts(SessionContext ctx, List<Product> value)
ProductListComponent.products attribute.value - the productspublic void setProducts(List<Product> value)
ProductListComponent.products attribute.value - the productspublic void addToProducts(SessionContext ctx, Product value)
value to products.value - the item to add to productspublic void addToProducts(Product value)
value to products.value - the item to add to productspublic void removeFromProducts(SessionContext ctx, Product value)
value from products.value - the item to remove from productspublic void removeFromProducts(Product value)
value from products.value - the item to remove from productspublic Boolean isProductsFromContext(SessionContext ctx)
ProductListComponent.productsFromContext attribute.public Boolean isProductsFromContext()
ProductListComponent.productsFromContext attribute.public boolean isProductsFromContextAsPrimitive(SessionContext ctx)
ProductListComponent.productsFromContext attribute.public boolean isProductsFromContextAsPrimitive()
ProductListComponent.productsFromContext attribute.public void setProductsFromContext(SessionContext ctx, Boolean value)
ProductListComponent.productsFromContext attribute.value - the productsFromContextpublic void setProductsFromContext(Boolean value)
ProductListComponent.productsFromContext attribute.value - the productsFromContextpublic void setProductsFromContext(SessionContext ctx, boolean value)
ProductListComponent.productsFromContext attribute.value - the productsFromContextpublic void setProductsFromContext(boolean value)
ProductListComponent.productsFromContext attribute.value - the productsFromContextpublic String getSearchQuery(SessionContext ctx)
ProductListComponent.searchQuery attribute.public String getSearchQuery()
ProductListComponent.searchQuery attribute.public Map<Language,String> getAllSearchQuery(SessionContext ctx)
ProductListComponent.searchQuery attribute.public Map<Language,String> getAllSearchQuery()
ProductListComponent.searchQuery attribute.public void setSearchQuery(SessionContext ctx, String value)
ProductListComponent.searchQuery attribute.value - the searchQuerypublic void setSearchQuery(String value)
ProductListComponent.searchQuery attribute.value - the searchQuerypublic void setAllSearchQuery(SessionContext ctx, Map<Language,String> value)
ProductListComponent.searchQuery attribute.value - the searchQueryCopyright © 2017 SAP SE. All Rights Reserved.