Package de.hybris.platform.catalog.jalo
Class Catalog
- All Implemented Interfaces:
Serializable,Comparable
- Direct Known Subclasses:
GeneratedClassificationSystem,GeneratedContentCatalog
A
To simplify the development of storefront, catalog provides the possibility to set onenull.
The following methods will return the corresponding value of the currently active
Catalog is the root element of the CatalogExtension. Each catalog has an ID, a name and a
supplier. The combination of the supplier of an catalog and its id must be unique. The different versions of a
catalog are represented by CatalogVersions, which are accessible through GeneratedCatalog.getCatalogVersions()
and getCatalogVersion(String).To simplify the development of storefront, catalog provides the possibility to set one
CatalogVersion as
active. All attributes of the active CatalogVersion can be accessed through delegation methods of the
Catalog. If no active CatalogVersion is set, these methods will return CatalogVersion:
getAgreements(SessionContext)getRootCategories(SessionContext)getGenerationDate(SessionContext)getGeneratorInfo(SessionContext)getLanguages(SessionContext)getMimeRootDirectory(SessionContext)getTerritories(SessionContext)getVersion(SessionContext)isInclAssurance(SessionContext)isInclAssuranceAsPrimitive(SessionContext)isInclDuty(SessionContext)isInclDutyAsPrimitive(SessionContext)isInclFreight(SessionContext)isInclFreightAsPrimitive(SessionContext)isInclPacking(SessionContext)isInclPackingAsPrimitive(SessionContext)getAllCategories()getAllCategories(int, int)getAllCategoryCount()getAllKeywordCount()getAllKeywords()getAllKeywords(int, int)getAllMediaCount()getAllMedias()getAllMedias(int, int)getAllProductCount()getAllProducts()getAllProducts(int, int)getCategories(SessionContext, String)getCategories(String)getCategory(SessionContext, String)getCategory(String)getProducts(SessionContext, String)getProducts(String)getProduct(SessionContext, String)getProduct(String)getMedias(SessionContext, String)getMedias(String)getMedia(SessionContext, String)getMedia(String)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.jalo.GenericItem
GenericItem.GenericItemImplNested classes/interfaces inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LocalizableItem.LocalizableItemImplNested classes/interfaces inherited from class de.hybris.platform.jalo.ExtensibleItem
ExtensibleItem.ExtensibleItemImplNested classes/interfaces inherited from class de.hybris.platform.jalo.Item
Item.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException -
Field Summary
FieldsFields inherited from class de.hybris.platform.catalog.jalo.GeneratedCatalog
ACTIVECATALOGVERSION, BUYER, BUYERHANDLER, CATALOGVERSIONS, CATALOGVERSIONSHANDLER, DEFAULT_INITIAL_ATTRIBUTES, DEFAULTCATALOG, ID, NAME, PREVIEWURLTEMPLATE, SUPPLIER, SUPPLIERHANDLER, URLPATTERNSFields inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LANGUAGE_FALLBACK_ENABLEDFields inherited from class de.hybris.platform.jalo.Item
_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, HJMPTS, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEFields inherited from class de.hybris.platform.util.BridgeAbstraction
impl, tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidChecks whether or not this it may be removed or not.protected ItemcreateItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) Has to be implemented for each concrete subtype of item.Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getAgreements() instead.ReturnsCatalogVersion.getAllCategories()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.getAllCategories(int start, int count) ReturnsCatalogVersion.getAllCategories(int, int)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.intReturnsCatalogVersion.getAllCategoryCount()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()or-1if no activeCatalogVersionis set.intReturnsCatalogVersion.getAllKeywordCount()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()or-1if no activeCatalogVersionis set.ReturnsCatalogVersion.getAllKeywords()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.getAllKeywords(int start, int count) ReturnsCatalogVersion.getAllKeywords(int, int)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.intReturnsCatalogVersion.getAllMediaCount()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()or-1if no activeCatalogVersionis set.ReturnsCatalogVersion.getAllMedias()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.getAllMedias(int start, int count) ReturnsCatalogVersion.getAllMedias(int, int)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.intReturnsCatalogVersion.getAllProductCount()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()or-1if no activeCatalogVersionis set.ReturnsCatalogVersion.getAllProducts()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.getAllProducts(int start, int count) ReturnsCatalogVersion.getAllProducts(int, int)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.getCatalogVersion(String version) Deprecated.since ages - Use CatalogVersionService.getCatalogVersion(String, String) instead.getCategories(SessionContext ctx, String code) ReturnsCatalogVersion.getCategories(SessionContext, String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.getCategories(String code) ReturnsCatalogVersion.getCategory(String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.getCategory(SessionContext ctx, String code) Deprecated.since ages - Use CategoryService.getCategory(de.hybris.platform.catalog.model.CatalogVersionModel, String)} for active CatalogVersionModel instead.getCategory(String code) Deprecated.since ages - Use CategoryService.getCategory(de.hybris.platform.catalog.model.CatalogVersionModel, String)} for active CatalogVersionModel instead.Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getDefaultCurrency() instead.Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getGenerationDate() instead.Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getGeneratorInfo() instead.Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getLanguages() instead.getMedia(SessionContext ctx, String code) ReturnsCatalogVersion.getMedia(SessionContext, String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.ReturnsCatalogVersion.getMedia(String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.getMedias(SessionContext ctx, String code) ReturnsCatalogVersion.getMedias(SessionContext, String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.ReturnsCatalogVersion.getMedias(String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getMimeRootDirectory() instead.getProduct(SessionContext ctx, String code) ReturnsCatalogVersion.getProduct(SessionContext, String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.getProduct(String code) Deprecated.since ages - Use ProductService.getProduct(CatalogVersionModel, String)} for active CatalogVersionModel instead.getProducts(SessionContext ctx, String code) ReturnsCatalogVersion.getProducts(SessionContext, String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.getProducts(String code) ReturnsCatalogVersion.getProducts(String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.ReturnsCatalogVersion.getRootCategories(SessionContext)of the active (GeneratedCatalog.getActiveCatalogVersion()orCollections.EMPTY_LISTif no activeCatalogVersionis set.Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getTerritories() instead.getVersion(SessionContext ctx) Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() instead.Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getInclAssurance() instead.booleanbooleanDeprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getInclAssurance() instead.isInclDuty(SessionContext ctx) Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getInclDuty() instead.booleanbooleanDeprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getInclDuty() instead.Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getInclFreight() instead.booleanbooleanDeprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getInclFreight() instead.Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getInclPacking() instead.booleanbooleanDeprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getInclPacking() instead.voidsetActiveCatalogVersion(SessionContext ctx, CatalogVersion catalogVersion) Deprecated.since ages - Use CatalogModel.setActiveCatalogVersion(de.hybris.platform.catalog.model.CatalogVersionModel) instead.protected voidsetActiveCatalogVersionInternal(SessionContext ctx, CatalogVersion catalogVersion) Used byCatalogVersion.setActive(SessionContext, Boolean)to make sure the catalog is having the correct active version even if only the active flag of the version is changed.voidsetDefaultCatalog(SessionContext ctx, Boolean param) Deprecated.since ages - The corresponding logic is handled by CatalogPrepareInterceptor.voidsetUrlPatterns(SessionContext ctx, Collection<String> value) Deprecated.since ages - The corresponding logic is handled by CatalogURLPatternsValidator.Methods inherited from class de.hybris.platform.catalog.jalo.GeneratedCatalog
addToCatalogVersions, addToCatalogVersions, getActiveCatalogVersion, getActiveCatalogVersion, getAllName, getAllName, getBuyer, getBuyer, getCatalogVersions, getCatalogVersions, getDefaultAttributeModes, getId, getId, getName, getName, getPreviewURLTemplate, getPreviewURLTemplate, getSupplier, getSupplier, getUrlPatterns, getUrlPatterns, isDefaultCatalog, isDefaultCatalog, isDefaultCatalogAsPrimitive, isDefaultCatalogAsPrimitive, removeFromCatalogVersions, removeFromCatalogVersions, setActiveCatalogVersion, setAllName, setAllName, setBuyer, setBuyer, setCatalogVersions, setCatalogVersions, setDefaultCatalog, setDefaultCatalog, setDefaultCatalog, setId, setId, setName, setName, setPreviewURLTemplate, setPreviewURLTemplate, setSupplier, setSupplier, setUrlPatternsMethods inherited from class de.hybris.platform.jalo.GenericItem
getImplementation, getInitialProperties, getNonInitialAttributes, getRelatedItems, getRelatedItems, setRelatedItemsMethods inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertyMethods inherited from class de.hybris.platform.jalo.ExtensibleItem
createNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyMethods inherited from class de.hybris.platform.jalo.Item
addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, 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, getPartOfRemovedSessionMarker, 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, isMarkModifiedDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, notifyManagerAboutItemRemoval, readResolve, 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, suppressRelation, toString, useTA, writeReplaceMethods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
Field Details
-
ERROR
public static final int ERROR- See Also:
-
-
Constructor Details
-
Catalog
public Catalog()
-
-
Method Details
-
createItem
protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException Description copied from class:ItemHas to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) duringComposedType.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; }- Overrides:
createItemin classGeneratedCatalog- Parameters:
ctx- 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 )- Returns:
- the new item instance
- Throws:
JaloBusinessException- indicates an error during creation - any changes will be rollbacked
-
checkRemovable
Description copied from class:ItemChecks whether or not this it may be removed or not. Called before the actual removal process.- Overrides:
checkRemovablein classItem- Throws:
ConsistencyCheckException- to indicate that the item cannot be removed
-
setActiveCatalogVersion
@Deprecated(since="ages", forRemoval=false) public void setActiveCatalogVersion(SessionContext ctx, CatalogVersion catalogVersion) Deprecated.since ages - Use CatalogModel.setActiveCatalogVersion(de.hybris.platform.catalog.model.CatalogVersionModel) instead. The DefaultCatalogPrepareInterceptor will handle the corresponding logic.Description copied from class:GeneratedCatalogGenerated method - Setter of theCatalog.activeCatalogVersionattribute.- Overrides:
setActiveCatalogVersionin classGeneratedCatalogcatalogVersion- the activeCatalogVersion - active CatalogVersion
-
setActiveCatalogVersionInternal
Used byCatalogVersion.setActive(SessionContext, Boolean)to make sure the catalog is having the correct active version even if only the active flag of the version is changed.For internal use only!
-
getRootCategories
ReturnsCatalogVersion.getRootCategories(SessionContext)of the active (GeneratedCatalog.getActiveCatalogVersion()orCollections.EMPTY_LISTif no activeCatalogVersionis set.- Parameters:
ctx- theSessionContext- Returns:
CatalogVersion.getRootCategories(SessionContext)of the active (GeneratedCatalog.getActiveCatalogVersion()orCollections.EMPTY_LISTif no activeCatalogVersionis set
-
getRootCategories
-
getCatalogVersion
Deprecated.since ages - Use CatalogVersionService.getCatalogVersion(String, String) instead.Returns theCatalogVersionof thisCatalogwith version specified in the version parameter ornullif noCatalogVersionwith the specified version exists.- Parameters:
version- version of theCatalogVersionas aStringwhich should be returned.- Returns:
- the
CatalogVersionof thisCatalogwith version specified in the version parameter ornullif noCatalogVersionwith the specified version exists
-
getVersion
Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() instead.ReturnsGeneratedCatalogVersion.getVersion()of the active (GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
ctx- theSessionContext- Returns:
GeneratedCatalogVersion.getVersion()of the active (GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getVersion
-
getMimeRootDirectory
Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getMimeRootDirectory() instead.ReturnsGeneratedCatalogVersion.getMimeRootDirectory()of the active (GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
ctx- theSessionContext- Returns:
GeneratedCatalogVersion.getMimeRootDirectory()of the active (GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getMimeRootDirectory
-
getGenerationDate
Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getGenerationDate() instead.ReturnsGeneratedCatalogVersion.getGenerationDate()of the active (GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
ctx- theSessionContext- Returns:
GeneratedCatalogVersion.getGenerationDate()of the active (GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getGenerationDate
-
getDefaultCurrency
Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getDefaultCurrency() instead.ReturnsGeneratedCatalogVersion.getDefaultCurrency()of the active (GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
ctx- theSessionContext- Returns:
GeneratedCatalogVersion.getDefaultCurrency()of the active (GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getDefaultCurrency
-
isInclFreight
Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getInclFreight() instead.ReturnsGeneratedCatalogVersion.isInclFreight()of the active (GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
ctx- theSessionContext- Returns:
GeneratedCatalogVersion.isInclFreight()of the active (GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
isInclFreight
-
isInclFreightAsPrimitive
public boolean isInclFreightAsPrimitive() -
isInclFreightAsPrimitive
@Deprecated(since="ages", forRemoval=false) public boolean isInclFreightAsPrimitive(SessionContext ctx) Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getInclFreight() instead.ReturnsGeneratedCatalogVersion.isInclFreightAsPrimitive()of the active (GeneratedCatalog.getActiveCatalogVersion()orfalseif no activeCatalogVersionis set.- Parameters:
ctx- theSessionContext- Returns:
GeneratedCatalogVersion.isInclFreightAsPrimitive()of the active (GeneratedCatalog.getActiveCatalogVersion()orfalseif no activeCatalogVersionis set
-
isInclPacking
Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getInclPacking() instead.ReturnsGeneratedCatalogVersion.isInclPacking()of the active (GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
ctx- theSessionContext- Returns:
GeneratedCatalogVersion.isInclPacking()of the active (GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
isInclPacking
-
isInclPackingAsPrimitive
public boolean isInclPackingAsPrimitive() -
isInclPackingAsPrimitive
@Deprecated(since="ages", forRemoval=false) public boolean isInclPackingAsPrimitive(SessionContext ctx) Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getInclPacking() instead.ReturnsGeneratedCatalogVersion.isInclPackingAsPrimitive()of the active (GeneratedCatalog.getActiveCatalogVersion()orfalseif no activeCatalogVersionis set.- Parameters:
ctx- theSessionContext- Returns:
GeneratedCatalogVersion.isInclPackingAsPrimitive()of the active (GeneratedCatalog.getActiveCatalogVersion()orfalseif no activeCatalogVersionis set
-
isInclAssurance
Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getInclAssurance() instead.ReturnsGeneratedCatalogVersion.isInclAssurance()of the active (GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
ctx- theSessionContext- Returns:
GeneratedCatalogVersion.isInclAssurance()of the active (GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
isInclAssurance
-
isInclAssuranceAsPrimitive
public boolean isInclAssuranceAsPrimitive() -
isInclAssuranceAsPrimitive
@Deprecated(since="ages", forRemoval=false) public boolean isInclAssuranceAsPrimitive(SessionContext ctx) Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getInclAssurance() instead.ReturnsGeneratedCatalogVersion.isInclAssuranceAsPrimitive()of the active (GeneratedCatalog.getActiveCatalogVersion()orfalseif no activeCatalogVersionis set.- Parameters:
ctx- theSessionContext- Returns:
GeneratedCatalogVersion.isInclAssuranceAsPrimitive()of the active (GeneratedCatalog.getActiveCatalogVersion()orfalseif no activeCatalogVersionis set
-
isInclDuty
Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getInclDuty() instead.ReturnsGeneratedCatalogVersion.isInclDuty()of the active (GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
ctx- theSessionContext- Returns:
GeneratedCatalogVersion.isInclDuty()of the active (GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
isInclDuty
-
isInclDutyAsPrimitive
public boolean isInclDutyAsPrimitive() -
isInclDutyAsPrimitive
@Deprecated(since="ages", forRemoval=false) public boolean isInclDutyAsPrimitive(SessionContext ctx) Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getInclDuty() instead.ReturnsGeneratedCatalogVersion.isInclDutyAsPrimitive()of the active (GeneratedCatalog.getActiveCatalogVersion()orfalseif no activeCatalogVersionis set.- Parameters:
ctx- theSessionContext- Returns:
GeneratedCatalogVersion.isInclDutyAsPrimitive()of the active (GeneratedCatalog.getActiveCatalogVersion()orfalseif no activeCatalogVersionis set
-
getTerritories
@Deprecated(since="ages", forRemoval=false) public Collection<Country> getTerritories(SessionContext ctx) Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getTerritories() instead.Returns aCollectionof allCountrys (GeneratedCatalogVersion.getTerritories()) of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
ctx- theSessionContext- Returns:
- a
Collectionof allCountrys (GeneratedCatalogVersion.getTerritories()) of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getTerritories
-
getLanguages
@Deprecated(since="ages", forRemoval=false) public Collection<Language> getLanguages(SessionContext ctx) Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getLanguages() instead.Returns aCollectionof allLanguages of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
ctx- theSessionContext- Returns:
- a
Collectionof allLanguages of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getLanguages
-
getGeneratorInfo
Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getGeneratorInfo() instead.Returns the generator info (GeneratedCatalogVersion.getGeneratorInfo()) of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
ctx- theSessionContext- Returns:
- the generator info (
GeneratedCatalogVersion.getGeneratorInfo()) of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getGeneratorInfo
-
getAgreements
@Deprecated(since="ages", forRemoval=false) public Collection<Agreement> getAgreements(SessionContext ctx) Deprecated.since ages - Use CatalogModel.getActiveCatalogVersion() and CatalogVersionModel.getAgreements() instead.Returns allAgreements (GeneratedCatalogVersion.getAgreements()) of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
ctx- theSessionContext- Returns:
- all
Agreements (GeneratedCatalogVersion.getAgreements()) of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.
-
getAgreements
-
getAllCategories
ReturnsCatalogVersion.getAllCategories()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Returns:
CatalogVersion.getAllCategories()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getAllCategories
ReturnsCatalogVersion.getAllCategories(int, int)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
start-count-- Returns:
CatalogVersion.getAllCategories(int, int)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getAllCategoryCount
public int getAllCategoryCount()ReturnsCatalogVersion.getAllCategoryCount()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()or-1if no activeCatalogVersionis set.- Returns:
CatalogVersion.getAllCategoryCount()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()or-1if no activeCatalogVersionis set
-
getAllKeywords
ReturnsCatalogVersion.getAllKeywords()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Returns:
CatalogVersion.getAllKeywords()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getAllKeywords
ReturnsCatalogVersion.getAllKeywords(int, int)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
start-count-- Returns:
CatalogVersion.getAllKeywords(int, int)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getAllKeywordCount
public int getAllKeywordCount()ReturnsCatalogVersion.getAllKeywordCount()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()or-1if no activeCatalogVersionis set.- Returns:
CatalogVersion.getAllKeywordCount()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()or-1if no activeCatalogVersionis set
-
getAllMedias
ReturnsCatalogVersion.getAllMedias()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Returns:
CatalogVersion.getAllMedias()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getAllMedias
ReturnsCatalogVersion.getAllMedias(int, int)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
start-count-- Returns:
CatalogVersion.getAllMedias(int, int)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getAllMediaCount
public int getAllMediaCount()ReturnsCatalogVersion.getAllMediaCount()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()or-1if no activeCatalogVersionis set.- Returns:
CatalogVersion.getAllMediaCount()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()or-1if no activeCatalogVersionis set
-
getAllProducts
ReturnsCatalogVersion.getAllProducts()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Returns:
CatalogVersion.getAllProducts()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getAllProducts
ReturnsCatalogVersion.getAllProducts(int, int)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
start-count-- Returns:
CatalogVersion.getAllProducts(int, int)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getAllProductCount
public int getAllProductCount()ReturnsCatalogVersion.getAllProductCount()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()or-1if no activeCatalogVersionis set.- Returns:
CatalogVersion.getAllProductCount()of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()or-1if no activeCatalogVersionis set
-
getCategory
Deprecated.since ages - Use CategoryService.getCategory(de.hybris.platform.catalog.model.CatalogVersionModel, String)} for active CatalogVersionModel instead.ReturnsCatalogVersion.getCategory(String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
code-- Returns:
CatalogVersion.getCategory(String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getCategory
@Deprecated(since="ages", forRemoval=false) public Category getCategory(SessionContext ctx, String code) Deprecated.since ages - Use CategoryService.getCategory(de.hybris.platform.catalog.model.CatalogVersionModel, String)} for active CatalogVersionModel instead.ReturnsCatalogVersion.getCategory(SessionContext, String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
ctx-code-- Returns:
CatalogVersion.getCategory(SessionContext, String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getCategories
ReturnsCatalogVersion.getCategory(String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
code-- Returns:
CatalogVersion.getCategory(String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getCategories
ReturnsCatalogVersion.getCategories(SessionContext, String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
ctx-code-- Returns:
CatalogVersion.getCategories(SessionContext, String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getProduct
Deprecated.since ages - Use ProductService.getProduct(CatalogVersionModel, String)} for active CatalogVersionModel instead.ReturnsCatalogVersion.getProduct(String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
code-- Returns:
CatalogVersion.getProduct(String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getProduct
ReturnsCatalogVersion.getProduct(SessionContext, String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
ctx-code-- Returns:
CatalogVersion.getProduct(SessionContext, String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getProducts
ReturnsCatalogVersion.getProducts(String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
code-- Returns:
CatalogVersion.getProducts(String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getProducts
ReturnsCatalogVersion.getProducts(SessionContext, String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
ctx-code-- Returns:
CatalogVersion.getProducts(SessionContext, String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getMedia
ReturnsCatalogVersion.getMedia(String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
code-- Returns:
CatalogVersion.getMedia(String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getMedia
ReturnsCatalogVersion.getMedia(SessionContext, String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
ctx-code-- Returns:
CatalogVersion.getMedia(SessionContext, String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getMedias
ReturnsCatalogVersion.getMedias(String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
code-- Returns:
CatalogVersion.getMedias(String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
getMedias
ReturnsCatalogVersion.getMedias(SessionContext, String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set.- Parameters:
ctx-code-- Returns:
CatalogVersion.getMedias(SessionContext, String)of the activeCatalogVersion(GeneratedCatalog.getActiveCatalogVersion()ornullif no activeCatalogVersionis set
-
setDefaultCatalog
@Deprecated(since="ages", forRemoval=false) public void setDefaultCatalog(SessionContext ctx, Boolean param) Deprecated.since ages - The corresponding logic is handled by CatalogPrepareInterceptor.Description copied from class:GeneratedCatalogGenerated method - Setter of theCatalog.defaultCatalogattribute.- Overrides:
setDefaultCatalogin classGeneratedCatalogparam- the defaultCatalog - Default catalog- See Also:
-
setUrlPatterns
@Deprecated(since="ages", forRemoval=false) public void setUrlPatterns(SessionContext ctx, Collection<String> value) Deprecated.since ages - The corresponding logic is handled by CatalogURLPatternsValidator.Description copied from class:GeneratedCatalogGenerated method - Setter of theCatalog.urlPatternsattribute.- Overrides:
setUrlPatternsin classGeneratedCatalogvalue- the urlPatterns - Collection of URL patterns
-