Class CatalogManager
- java.lang.Object
-
- de.hybris.platform.jalo.Manager
-
- de.hybris.platform.jalo.extension.Extension
-
- de.hybris.platform.catalog.jalo.GeneratedCatalogManager
-
- de.hybris.platform.catalog.jalo.CatalogManager
-
- All Implemented Interfaces:
Extension.RestrictedLanguagesProvider
,Extension.RightsProvider
,ItemLifecycleListener
,WebRequestInterceptor
,java.io.Serializable
public class CatalogManager extends GeneratedCatalogManager implements WebRequestInterceptor, Extension.RightsProvider, Extension.RestrictedLanguagesProvider
This is the extension manager of the Catalog extension. It mainly provides methods to create and search the items of the Catalog extension.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.extension.Extension
Extension.RestrictedLanguagesProvider, Extension.RightsProvider
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.Manager
Manager.GenericManagerSingletonCreator, Manager.ManagerSingletonCreator
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_CATALOG_ID
static java.lang.String
DEFAULT_CATALOG_NAME
static java.lang.String
DEFAULT_COMPANY_ID
static java.lang.String
DEFAULT_COMPANY_NAME
static java.lang.String
MEDIA_CODE_DELIMITER
static java.lang.String
OFFLINE_VERSION
static java.lang.String
ONLINE_VERSION
-
Fields inherited from class de.hybris.platform.catalog.jalo.GeneratedCatalogManager
ABSTRACTORDERENTRY2ABSTRACTORDERENTRYPRODUCTINFORELATIONPRODUCTINFOSHANDLER, CATEGORY2PRINCIPALRELATION_MARKMODIFIED, CATEGORY2PRINCIPALRELATION_SRC_ORDERED, CATEGORY2PRINCIPALRELATION_TGT_ORDERED, CATEGORYMEDIARELATION_MARKMODIFIED, CATEGORYMEDIARELATION_SRC_ORDERED, CATEGORYMEDIARELATION_TGT_ORDERED, CATEGORYPRODUCTRELATION_MARKMODIFIED, CATEGORYPRODUCTRELATION_SRC_ORDERED, CATEGORYPRODUCTRELATION_TGT_ORDERED, DEFAULT_INITIAL_ATTRIBUTES, PRINCIPAL2READABLECATALOGVERSIONRELATION_MARKMODIFIED, PRINCIPAL2READABLECATALOGVERSIONRELATION_SRC_ORDERED, PRINCIPAL2READABLECATALOGVERSIONRELATION_TGT_ORDERED, PRINCIPAL2WRITEABLECATALOGVERSIONRELATION_MARKMODIFIED, PRINCIPAL2WRITEABLECATALOGVERSIONRELATION_SRC_ORDERED, PRINCIPAL2WRITEABLECATALOGVERSIONRELATION_TGT_ORDERED, PRODUCT2FEATURERELATIONFEATURESHANDLER, PRODUCT2KEYWORDRELATION_MARKMODIFIED, PRODUCT2KEYWORDRELATION_SRC_ORDERED, PRODUCT2KEYWORDRELATION_TGT_ORDERED, PRODUCT2VARIANTRELATIONVARIANTSHANDLER, PRODUCTREFERENCERELATIONPRODUCTREFERENCESHANDLER, SYNCITEMJOB2PRINCIPAL_MARKMODIFIED, SYNCITEMJOB2PRINCIPAL_SRC_ORDERED, SYNCITEMJOB2PRINCIPAL_TGT_ORDERED, SYNCJOB2LANGREL_MARKMODIFIED, SYNCJOB2LANGREL_SRC_ORDERED, SYNCJOB2LANGREL_TGT_ORDERED, SYNCJOB2TYPEREL_MARKMODIFIED, SYNCJOB2TYPEREL_SRC_ORDERED, SYNCJOB2TYPEREL_TGT_ORDERED
-
-
Constructor Summary
Constructors Constructor Description CatalogManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addToAllowedPrincipals(Category item, Principal value)
void
addToAllowedPrincipals(SessionContext ctx, Category item, Principal value)
void
addToCatalogReadersAndWriters()
void
addToKeywords(Category item, Language lang, Keyword value)
void
addToKeywords(SessionContext ctx, Category item, Language lang, Keyword value)
protected void
assignCatalogVersions(javax.servlet.http.HttpServletRequest request, JaloSession jaloSession, java.util.Collection<CatalogVersion> versions, boolean previewMode)
void
beforeItemCreation(SessionContext ctx, ComposedType type, Item.ItemAttributeMap attributes)
This method will be called before an item is created BUT AFTER the default values of this type are assignedboolean
canRead(SessionContext ctx, User sessionUser, CatalogVersion catalogVersion)
boolean
canSync(SessionContext ctx, User sessionUser, SyncItemJob sync)
This method will be called by the SynchronizeCatalogVersionWizard for determining if the current user is allowed to execute a synchronization task.boolean
canWrite(SessionContext ctx, User sessionUser, CatalogVersion catalogVersion)
protected void
checkBeforeItemRemoval(SessionContext ctx, Item item)
Superclass method overridden to avoid calls to ejb layer.protected void
checkCatalogItemTypeAttributeDescriptor(ComposedType comptyp, AttributeDescriptor atrdesc, boolean forVersion)
Checks attribute descriptors.protected java.util.Collection<PreviewTicket>
collectPreviewTicketVersions(javax.servlet.http.HttpServletRequest request, JaloSession jaloSession)
void
configureDefaultSynchronization(JspContext jspc)
SyncItemJob
configureSynchronizationJob(java.lang.String code, Catalog catalog, java.lang.String sourceVersion, java.lang.String targetVersion, boolean createNewItems, boolean removeMissingItems)
Configures a publication rule (asSyncItemJob
item) between a specified source catalog version and target catalog version with a given catalog.Agreement
createAgreement(CatalogVersion catalogVersion, java.lang.String id, java.util.Date startDate, java.util.Date endDate)
Deprecated.since ages - Use ModelService to create new AgreementModels.Agreement
createAgreement(java.lang.String id, java.util.Date startDate, java.util.Date endDate)
Deprecated.since ages - Use ModelService to create new AgreementModels.protected ImpExMedia
createBatchMedia(java.lang.String fileName, java.lang.String mime, java.io.InputStream istr)
Catalog
createCatalog(java.lang.String id)
Deprecated.since ages - Use modelService to create new catalog.Catalog
createCatalog(java.lang.String id, java.lang.String name, Company supplier)
Deprecated.since ages - Use modelService to create new catalog.Category
createCatalogCategory(CatalogVersion catalogVersion, java.lang.String code, java.lang.String name, java.lang.String description, java.lang.Integer order, java.util.Collection keywords, Category parent)
Deprecated.since ages - Use ModelService to create new CategoryModel.void
createCatalogSyncMediaFolder()
CatalogVersion
createCatalogVersion(Catalog catalog, java.lang.String version, Language importLanguage)
Deprecated.since ages - Use modelService to create new catalogVersion.CategoryCatalogVersionDifference
createCategoryCatalogVersionDifference(CatalogVersion sourceVersion, CatalogVersion targetVersion, CronJob cronJob, Category srcCategory, Category targetCategory, EnumerationValue mode)
Deprecated.since agesClassificationSystem
createClassificationSystem(java.lang.String id)
Creates a new ClassificationSystem with the given id.ClassificationSystemVersion
createClassificationSystemVersion(ClassificationSystem system, java.lang.String version, Language importLanguage)
ClassificationSystemVersion
createClassificationSystemVersion(ClassificationSystem system, java.lang.String version, java.util.Collection<Language> languages)
Company
createCompany(java.lang.String uid)
Deprecated.since ages - Use ModelService to create new CompanyModel.boolean
createDefaultCatalog(JspContext jspc)
CompareCatalogVersionsCronJob
createDefaultCompareCatalogVersionCronJob(CatalogVersion source, CatalogVersion target, Customer priceCompareCustomer, java.lang.Double tolerance, java.lang.Boolean searchMissingProducts, java.lang.Boolean searchMissingCategories, java.lang.Boolean searchNewProducts, java.lang.Boolean searchNewCategories, java.lang.Boolean searchPriceDiffs, java.lang.Boolean overwriteStatus)
void
createEssentialData(java.util.Map params, JspContext jspc)
Keyword
createKeyword(CatalogVersion catalogVersion, java.lang.String keyword, Language lang)
Creates an newKeyword
for the givenCatalogVersion
and keyword value.PreviewTicket
createPreviewTicket(CatalogVersion version)
PreviewTicket
createPreviewTicket(CatalogVersion version, User createdBy, java.util.Date validTo)
ProductCatalogVersionDifference
createProductCatalogVersionDifference(CatalogVersion sourceVersion, CatalogVersion targetVersion, CronJob cronJob, Product srcProduct, Product targetProduct, EnumerationValue mode)
ProductReference
createProductReference(java.lang.String qualifier, Product source, Product target, java.lang.Integer quantity)
Deprecated.since ages - Use ModelService to create new ProductReferences.void
createProjectData(java.util.Map params, JspContext jspc)
void
createSavedQueries(JspContext jspc)
ItemSyncTimestamp
createSyncTimestamp(SyncItemJob job, Item source, PK copy)
ItemSyncTimestamp
createSyncTimestamp(SyncItemJob job, Item source, Item copy)
void
createUsersAndGroupsAndRights()
void
doPostRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
void
doPreRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected java.util.Collection
filterByURL(javax.servlet.http.HttpServletRequest request, java.util.Collection allActiveVersions)
protected Category
findInCatalogVersion(CatalogVersion ver, Category original)
Deprecated.since agesprotected Media
findInCatalogVersion(CatalogVersion ver, Media original)
protected Product
findInCatalogVersion(CatalogVersion ver, Product original)
protected java.lang.String
generateDuplicateQuery(java.lang.Class jaloClass)
Generated query statement for collecting duplicate versionable items.java.util.Collection<Category>
getAllCatalogCategories(CatalogVersion catalogVersion)
Deprecated.since ages - useCategoryService
instead.java.util.Set<ComposedType>
getAllCatalogItemRootTypes()
Deprecated.since ages - Use CatalogVersionService.getAllCatalogVersionAwareTypes(true) instead.java.util.Set<ComposedType>
getAllCatalogItemTypes()
Deprecated.since ages - Use CatalogTypeService.getAllCatalogVersionAwareTypes(false) instead.java.util.Set<Catalog>
getAllCatalogs()
Deprecated.since ages - Use CatalogService.getAllCatalogs() instead.java.util.Set<CatalogVersion>
getAllCatalogVersions()
Deprecated.since ages - Use CatalogVersionService.getAllCatalogVersions() instead.java.util.Map<Language,java.lang.String>
getAllClassificationIndexString(SessionContext ctx, Product item)
Generated method - Getter of theProduct.classificationIndexString
attribute.java.util.Set<ClassificationSystem>
getAllClassificationSystems()
Returns all classification systems within the system.java.util.Set<ClassificationSystemVersion>
getAllClassificationSystemVersions()
Deprecated.since ages - Use ClassificationSystemVersionDao.findAllClassificationSystemVersions() instead.java.util.Map<Language,java.lang.String>
getAllDescription(Category item)
java.util.Map<Language,java.lang.String>
getAllDescription(SessionContext ctx, Category item)
java.util.Map<Language,java.util.List<Keyword>>
getAllKeywords(Category item)
java.util.Map<Language,java.util.List<Keyword>>
getAllKeywords(SessionContext ctx, Category item)
Deprecated.since agesjava.util.List<Principal>
getAllowedPrincipals(Category item)
java.util.List<Principal>
getAllowedPrincipals(SessionContext ctx, Category item)
Generated methods from old GeneratedCatalogManager startslong
getAllowedPrincipalsCount(Category item)
long
getAllowedPrincipalsCount(SessionContext ctx, Category item)
java.util.Collection<CatalogVersion>
getAllReadableCatalogVersions(SessionContext ctx, User user)
Deprecated.since ages - Use CatalogVersionService.getAllReadableCatalogVersions(de.hybris.platform.core.model.security.java.util.Collection<CatalogVersion>
getAllWriteableCatalogVersions(SessionContext ctx, User user)
Deprecated.since ages - Use CatalogVersionService.getAllWritableCatalogVersions(de.hybris.platform.core.model.security.java.util.Collection<CatalogVersion>
getAllWriteableCatalogVersions(User user)
Deprecated.since ages - Use CatalogVersionService.getAllWritableCatalogVersions(de.hybris.platform.core.model.security.java.util.Collection<CatalogVersion>
getAvailableCatalogVersions(JaloSession jalosession)
Deprecated.since ages - Use CatalogVersionService.getAllReadableCatalogVersions(PrincipalModel currentUser) instead.protected ImpExMedia
getBatchMedia(java.lang.String fileName, java.lang.String fileExt)
Catalog
getCatalog(Company supplier, java.lang.String catalogID)
Deprecated.since ages - catalogId is unique, so it is sufficient to search over catalogId only.Catalog
getCatalog(java.lang.String catalogID)
Deprecated.since ages - Use CatalogService.getCatalogForId(String) instead.Catalog
getCatalog(java.lang.String supplierUID, java.lang.String catalogID)
Deprecated.since ages - catalogId is unique, so it is sufficient to search over catalogId only.Category
getCatalogCategory(CatalogVersion catalogVersion, java.lang.String code)
Deprecated.since ages - useCategoryService.getCategoryForCode(de.hybris.platform.catalog.model.CatalogVersionModel, String)
instead.java.lang.String
getCatalogItemID(Item catalogItem)
Returns the ID of a catalog item.MediaFolder
getCatalogSyncMediaFolder()
CatalogVersion
getCatalogVersion(Category item)
CatalogVersion
getCatalogVersion(Item item)
Deprecated.since ages - Use CatalogTypeService.getCatalogVersion(de.hybris.platform.core.model.ItemModel) instead.CatalogVersion
getCatalogVersion(SessionContext ctx, Category item)
CatalogVersion
getCatalogVersion(SessionContext ctx, Item item)
Deprecated.since ages - Use CatalogTypeService.getCatalogVersion(de.hybris.platform.core.model.ItemModel) instead.AttributeDescriptor
getCatalogVersionAttribute(SessionContext ctx, ComposedType type)
Generated method - Getter of theComposedType.catalogVersionAttribute
attribute.java.lang.String
getCatalogVersionAttributeQualifier(ComposedType item)
Deprecated.since ages - Use ComposedTypeModel.getCatalogVersionAttribute() instead.java.util.Collection<Category>
getCategoriesByProduct(CatalogVersion catver, Product product)
java.util.Collection<Category>
getCategoriesByProduct(CatalogVersion catver, Product product, SessionContext ctx)
CategoryManager
getCategoryManager()
Deprecated.since ages - Internal legacy migration method forCategoryManager.getInstance()
onlyjava.util.Collection<Link>
getCategoryProductLinks(CatalogVersion catalogVersion, Category category, Product product)
Deprecated.since agesjava.util.Collection<Product>
getCategoryProductsByState(SessionContext ctx, Category category, boolean offline)
Deprecated.since ages - useProductService.getOfflineProductsForCategory(de.hybris.platform.category.model.CategoryModel)
and)
instead.ClassificationAttribute
getClassificationAttribute(java.lang.String code, ClassificationSystemVersion version)
Deprecated.since ages - please useItem.getAttribute(String)
insteadClassificationAttributeValue
getClassificationAttributeValue(java.lang.String code, ClassificationSystemVersion version)
Deprecated.since ages - please useClassificationSystemVersion.getClassificationAttributeValue(String)
insteadClassificationClass
getClassificationClass(java.lang.String systemName, java.lang.String versionName, java.lang.String classID)
Finds a classification class directly by specifying its classificaiton system name, system version and class code.java.util.List<ClassificationClass>
getClassificationClasses(ClassificationSystemVersion systemVersion, Category src)
java.util.List<ClassificationClass>
getClassificationClasses(ClassificationSystemVersion systemVersion, Product product)
java.util.List<ClassificationClass>
getClassificationClasses(Category src)
java.util.List<ClassificationClass>
getClassificationClasses(Product product)
java.util.List<ClassificationClass>
getClassificationClasses(SessionContext ctx, Product product)
java.util.List<ClassificationClass>
getClassificationClasses(java.util.Collection<ClassificationSystemVersion> systemVersions, Category src)
java.util.List<ClassificationClass>
getClassificationClasses(java.util.Collection<ClassificationSystemVersion> systemVersions, Product product)
java.lang.String
getClassificationIndexString(SessionContext ctx, Product prod)
Generated method - Getter of theProduct.classificationIndexString
attribute.ClassificationSystem
getClassificationSystem(java.lang.String classificationSystemId)
Returns the matchingClassificationSystem
for the specified id.Company
getCompanyByUID(java.lang.String uid)
Deprecated.since ages - Use UserService.getUserGroupForUID(uid, CompanyModel.class) instead.Item
getCounterpartItem(Item sourceItem, CatalogVersion targetVersion)
Deprecated.since ages - Use CatalogTypeService.getCatalogVersionAwareModel(CatalogVersionModel, String, Map) instead.Item
getCounterpartItem(SessionContext ctx, Item sourceItem, CatalogVersion targetVersion)
Deprecated.since ages - Use CatalogTypeService.getCatalogVersionAwareModel(CatalogVersionModel, String, Map) instead.java.lang.String
getCreatorParameterDefault(java.lang.String param)
Override this method to provide default value for the given creator parameter.java.util.List<java.lang.String>
getCreatorParameterPossibleValues(java.lang.String param)
Override this method to provide a list of all possible values for the given creator parameter.java.util.Collection<Media>
getData_sheet(Category item)
java.util.Collection<Media>
getData_sheet(SessionContext ctx, Category item)
Catalog
getDefaultCatalog()
Deprecated.since ages - Use CatalogService.getDefaultCatalog() instead.java.util.List<ComposedType>
getDefaultRootTypes()
Check all subtypes of Item (recursively) searching for catalog.sync.default.root.type custom-property.java.lang.String
getDescription(Category item)
java.lang.String
getDescription(SessionContext ctx, Category item)
java.util.Collection<Media>
getDetail(Category item)
java.util.Collection<Media>
getDetail(SessionContext ctx, Category item)
static java.lang.Object
getFirstOne(java.util.Collection coll)
Tool method which returns just the first element of a collection.static CatalogManager
getInstance()
Keyword
getKeyword(CatalogVersion catalogVersion, java.lang.String keywordValue)
Returns the Keyword for the specified keyword value andCatalogVersion
.Keyword
getKeyword(java.lang.String typeCode, CatalogVersion catalogVersion, java.lang.String keywordValue)
Returns the Keyword for the specified keyword value andCatalogVersion
.java.util.List<Keyword>
getKeywords(Category item)
java.util.List<Keyword>
getKeywords(SessionContext ctx, Category item)
long
getKeywordsCount(Category item)
long
getKeywordsCount(Category item, Language lang)
long
getKeywordsCount(SessionContext ctx, Category item)
long
getKeywordsCount(SessionContext ctx, Category item, Language lang)
Language
getLanguageIfExists(java.lang.String isoCode)
Deprecated.since ages - Use CommonI18NService.getLanguage(String) instead.java.util.Date
getLastSyncModifiedTime(SyncItemJob job, Item src, Item copy)
java.util.Collection<Media>
getLogo(Category item)
java.util.Collection<Media>
getLogo(SessionContext ctx, Category item)
java.lang.String
getMediaCode(java.lang.String catalogID, java.lang.String catalogVersion, java.lang.String mediaCode)
java.util.Collection<Media>
getNormal(Category item)
java.util.Collection<Media>
getNormal(SessionContext ctx, Category item)
static Item
getOldest(java.util.Collection items)
CompareCatalogVersionsJob
getOrCreateDefaultCompareCatalogVersionJob()
RemoveCatalogVersionJob
getOrCreateDefaultRemoveCatalogVersionJob()
java.lang.Integer
getOrder(Category item)
java.lang.Integer
getOrder(SessionContext ctx, Category item)
int
getOrderAsPrimitive(Category item)
int
getOrderAsPrimitive(SessionContext ctx, Category item)
java.util.Collection<Media>
getOthers(Category item)
java.util.Collection<Media>
getOthers(SessionContext ctx, Category item)
Product
getProductByCatalogVersion(CatalogVersion catalogVersion, java.lang.String productCode)
java.util.Collection<ProductReference>
getProductReferences(java.lang.String qualifier, Product source, Product target)
Deprecated.since ages - Use one of the ProductReferenceService methods to fetch product referencesjava.util.Collection<ProductReference>
getProductReferences(java.lang.String qualifier, Product source, Product target, java.lang.Integer quantity, boolean forceQuantitySearch)
Deprecated.since ages - Use one of the ProductReferenceService methods to fetch product referencesjava.util.Set<Language>
getRestrictedLanguages(Item item)
Deprecated.since ages - In order to fetch language restrictions follow the following pattern: fetch catalog version from catalog version aware item: CatalogTypeService.getCatalogVersion(de.hybris.platform.core.model.ItemModel) fetch catalog version languages CatalogVersionModel.getLanguages()java.util.Collection<CatalogVersion>
getSessionCatalogVersions(JaloSession jalosession)
Deprecated.since ages - Use CatalogVersionService.getSessionCatalogVersions() instead.java.util.Collection<CatalogVersion>
getSessionCatalogVersions(SessionContext ctx)
Deprecated.since ages - Use CatalogVersionService.getSessionCatalogVersions() instead.java.util.List<ItemSyncTimestamp>
getSynchronizationSources(SessionContext ctx, Item target)
Generated method - Getter of theItem.synchronizationSources
attribute.java.util.List<ItemSyncTimestamp>
getSynchronizedCopies(SessionContext ctx, Item source)
Implements getting all copies of an extensible item.Item
getSynchronizedCopy(Item source, SyncItemJob sij)
SyncItemJob
getSyncJob(CatalogVersion source, CatalogVersion target)
SyncItemJob
getSyncJob(CatalogVersion source, CatalogVersion target, java.lang.String qualifier)
SyncItemJob
getSyncJobFromSource(CatalogVersion source)
java.util.Map<PK,ItemSyncTimestamp>
getSyncTimestampMap(Item source, SyncItemJob sij)
java.util.Collection<Media>
getThumbnails(Category item)
java.util.Collection<Media>
getThumbnails(SessionContext ctx, Category item)
int
getTotalObjectsCount(Catalog catalog)
Deprecated.since ages - - counts only products, categories, medias and keywords.int
getTotalObjectsCount(CatalogVersion version)
Deprecated.since ages - - counts only products, categories, medias and keywords.java.lang.String
getTypeQualifier(SessionContext ctx, Address address)
java.lang.String
getTypeQualifier(Address address)
java.util.Set<java.lang.String>
getUniqueKeyAttributeQualifiers(ComposedType comptyp)
Deprecated.since ages - Use CatalogTypeService.getCatalogVersionUniqueKeyAttribute(String typeCode) instead;java.util.Collection<AttributeDescriptor>
getUniqueKeyAttributes(SessionContext ctx, ComposedType item)
Deprecated.since ages - Check ComposedTypeModel.getUniqueKeyAttributes() instead.java.util.Collection<AttributeDescriptor>
getUniqueKeyAttributes(ComposedType item)
Generated method - Getter of theComposedType.uniqueKeyAttributes
attribute.java.util.List<ProductFeature>
getUntypedFeatures(Product item)
Deprecated.since ages - useFeatureContainer.loadUntyped(Product)
insteadjava.util.List<ProductFeature>
getUntypedFeatures(SessionContext ctx, Product prod)
Deprecated.since ages - useFeatureContainer.loadUntyped(Product)
insteadjava.util.Collection<VariantProduct>
getVariants(SessionContext ctx, Product baseProduct, CatalogVersion catalogVersion)
VariantsManager
getVariantsManager()
Deprecated.since ages - Internal legacy migration method forVariantsManager.getInstance()
onlyprotected java.io.InputStream
getZipEntryInputStream(java.util.zip.ZipFile zipfile, java.lang.String entryName)
boolean
hasUniqueKeyAttributes(ComposedType comptyp)
Deprecated.since ages - Check ComposedTypeModel.getUniqueKeyAttributes() instead.boolean
isActivatingPreviewMode(JaloSession jalosession)
Deprecated.since ages - Use SessionService.getAttribute(CatalogConstants.PREVIEW_MODE_ACTIVATION) in order to read the 'preview mode' flag value.boolean
isActivatingPreviewMode(SessionContext ctx)
Deprecated.since ages - Use SessionService.getAttribute(CatalogConstants.PREVIEW_MODE_ACTIVATION) in order to read the 'preview mode' flag value.boolean
isCatalogItem(Item item)
Deprecated.since ages - Use CatalogTypeService.isCatalogVersionAwareModel(de.hybris.platform.core.model.ItemModel) instead.boolean
isCatalogItem(ComposedType comptyp)
Deprecated.since ages - Use CatalogTypeService.isCatalogVersionAwareModel(de.hybris.platform.core.model.ItemModel) instead.boolean
isCatalogItem(java.lang.Class itemclass)
Deprecated.since ages - please useisCatalogItem(ComposedType)
insteadjava.lang.Boolean
isCatalogItemType(SessionContext ctx, ComposedType item)
Deprecated.since ages - UseisCatalogItem(ComposedType)
instead.boolean
isEditable(Item item, AttributeDescriptor descriptor)
Checks whether given attribute for given item can be modified.boolean
isEditorUser(User user)
static java.lang.Boolean
isSyncInProgress(SessionContext ctx)
Generated methods from old GeneratedCatalogManager endsstatic boolean
isSyncInProgressAsPrimitive(SessionContext ctx)
static boolean
mustSetCatalogVersions(JaloSession jaloSession, javax.servlet.http.HttpServletRequest req)
protected SyncItemJob
newDefaultSyncJobInstance(java.util.Map attributes)
void
notifyInitializationEnd(java.util.Map<java.lang.String,java.lang.String> params, JspContext ctx)
protected void
notifyItemRemoval(SessionContext ctx, Item item)
Superclass method overridden to avoid calls to ejb layer except forProduct
andProductFeature
instances.void
removeFromAllowedPrincipals(Category item, Principal value)
void
removeFromAllowedPrincipals(SessionContext ctx, Category item, Principal value)
void
removeFromKeywords(Category item, Language lang, Keyword value)
void
removeFromKeywords(SessionContext ctx, Category item, Language lang, Keyword value)
protected void
removeProductReferencesFor(SessionContext ctx, Product prod)
protected void
removeSyncTimestampsFor(SessionContext ctx, CatalogVersion catver)
protected void
removeSyncTimestampsFor(SessionContext ctx, Item forItem)
void
setAllDescription(Category item, java.util.Map<Language,java.lang.String> value)
void
setAllDescription(SessionContext ctx, Category item, java.util.Map<Language,java.lang.String> value)
void
setAllKeywords(Category item, java.util.Map<Language,java.util.List<Keyword>> value)
void
setAllKeywords(SessionContext ctx, Category item, java.util.Map<Language,java.util.List<Keyword>> value)
void
setAllowedPrincipals(Category item, java.util.List<Principal> value)
void
setAllowedPrincipals(SessionContext ctx, Category cat, java.util.List<Principal> newOnes)
Deprecated.since ages - useCategoryService.setAllowedPrincipalsForCategory(de.hybris.platform.category.model.CategoryModel, List)
instead.void
setAllowedPrincipalsOnlyForGivenCategory(SessionContext ctx, Category item, java.util.List<Principal> value)
void
setApprovalStatus(Category cat, EnumerationValue status, boolean recursively, boolean asTransaction)
Deprecated.since agesvoid
setCatalogItemType(SessionContext ctx, ComposedType item, java.lang.Boolean param)
Deprecated.since ages - Use ComposedTypeModel.setCatalogItemType(Boolean) instead.void
setCatalogVersion(Category item, CatalogVersion value)
void
setCatalogVersion(SessionContext ctx, Category cat, CatalogVersion catver)
Deprecated.since ages - Use CategoryModel.setCatalogVersion(de.hybris.platform.catalog.model.CatalogVersionModel) instead.void
setCatalogVersion(SessionContext ctx, Media media, CatalogVersion version)
Deprecated.since ages - Use MediaModel.setCatalogVersion(de.hybris.platform.catalog.model.CatalogVersionModel) instead.void
setCatalogVersion(SessionContext ctx, Product product, CatalogVersion version)
Deprecated.since ages - Use ProductModel.setCatalogVersion(de.hybris.platform.catalog.model.CatalogVersionModel) instead.void
setCatalogVersionAttribute(SessionContext ctx, ComposedType item, AttributeDescriptor attrdesc)
Generated method - Setter of theComposedType.catalogVersionAttribute
attribute.void
setData_sheet(Category item, java.util.Collection<Media> value)
void
setData_sheet(SessionContext ctx, Category item, java.util.Collection<Media> value)
void
setDescription(Category item, java.lang.String value)
void
setDescription(SessionContext ctx, Category item, java.lang.String value)
void
setDetail(Category item, java.util.Collection<Media> value)
void
setDetail(SessionContext ctx, Category item, java.util.Collection<Media> value)
void
setKeywords(Category item, java.util.List<Keyword> value)
void
setKeywords(SessionContext ctx, Category item, java.util.List<Keyword> value)
void
setLogo(Category item, java.util.Collection<Media> value)
void
setLogo(SessionContext ctx, Category item, java.util.Collection<Media> value)
void
setNormal(Category item, java.util.Collection<Media> value)
void
setNormal(SessionContext ctx, Category item, java.util.Collection<Media> value)
void
setOrder(Category item, int value)
void
setOrder(Category item, java.lang.Integer value)
void
setOrder(SessionContext ctx, Category item, int value)
void
setOrder(SessionContext ctx, Category item, java.lang.Integer value)
void
setOthers(Category item, java.util.Collection<Media> value)
void
setOthers(SessionContext ctx, Category item, java.util.Collection<Media> value)
void
setReadableCatalogVersions(SessionContext ctx, Principal principal, java.util.List<CatalogVersion> value)
Deprecated.since ages - Use PrincipalModel.setReadableCatalogVersions(List) instead.void
setSessionCatalogVersions(SessionContext ctx, java.util.Collection<CatalogVersion> versions)
Deprecated.since ages - Use CatalogVersionService.setSessionCatalogVersions(Set) instead.void
setSessionCatalogVersions(java.util.Collection<CatalogVersion> versions)
Deprecated.since ages - Use CatalogVersionService.setSessionCatalogVersions(Set) instead.void
setThumbnails(Category item, java.util.Collection<Media> value)
void
setThumbnails(SessionContext ctx, Category item, java.util.Collection<Media> value)
void
setUniqueKeyAttributes(SessionContext ctx, ComposedType item, java.util.Collection<AttributeDescriptor> value)
Generated method - Setter of theComposedType.uniqueKeyAttributes
attribute.void
setUntypedFeatures(SessionContext ctx, Product product, java.util.List<ProductFeature> features)
void
setWritableCatalogVersions(SessionContext ctx, Principal principal, java.util.List<CatalogVersion> value)
Deprecated.since ages - UsePrincipalModel.setWritableCatalogVersions(List)
instead.-
Methods inherited from class de.hybris.platform.catalog.jalo.GeneratedCatalogManager
addToFeatures, addToFeatures, addToKeywords, addToKeywords, addToProductInfos, addToProductInfos, addToProductReferences, addToProductReferences, addToReadableCatalogVersions, addToReadableCatalogVersions, addToSupercategories, addToSupercategories, addToSupercategories, addToSupercategories, addToSyncJobs, addToSyncJobs, addToVariants, addToVariants, addToWritableCatalogVersions, addToWritableCatalogVersions, createAgreement, createAgreement, createAttributeValueAssignment, createAttributeValueAssignment, createCatalog, createCatalog, createCatalogUnawareMedia, createCatalogUnawareMedia, createCatalogVersion, createCatalogVersion, createCatalogVersionSyncCronJob, createCatalogVersionSyncCronJob, createCatalogVersionSyncCronJobHistory, createCatalogVersionSyncCronJobHistory, createCatalogVersionSyncJob, createCatalogVersionSyncJob, createCatalogVersionSyncScheduleMedia, createCatalogVersionSyncScheduleMedia, createCategory, createCategory, createCategoryCatalogVersionDifference, createCategoryCatalogVersionDifference, createClassAttributeAssignment, createClassAttributeAssignment, createClassificationAttribute, createClassificationAttribute, createClassificationAttributeUnit, createClassificationAttributeUnit, createClassificationAttributeValue, createClassificationAttributeValue, createClassificationClass, createClassificationClass, createClassificationKeyword, createClassificationKeyword, createClassificationSystem, createClassificationSystem, createClassificationSystemVersion, createClassificationSystemVersion, createCompany, createCompany, createCompareCatalogVersionsCronJob, createCompareCatalogVersionsCronJob, createCompareCatalogVersionsJob, createCompareCatalogVersionsJob, createConfigurationCategory, createConfigurationCategory, createItemSyncDescriptor, createItemSyncDescriptor, createItemSyncTimestamp, createItemSyncTimestamp, createKeyword, createKeyword, createPreviewTicket, createPreviewTicket, createProductCatalogVersionDifference, createProductCatalogVersionDifference, createProductFeature, createProductFeature, createProductReference, createProductReference, createRemoveCatalogVersionCronJob, createRemoveCatalogVersionCronJob, createRemoveCatalogVersionJob, createRemoveCatalogVersionJob, createSyncAttributeDescriptorConfig, createSyncAttributeDescriptorConfig, createSyncItemCronJob, createSyncItemCronJob, createSyncItemJob, createSyncItemJob, createVariantAttributeDescriptor, createVariantAttributeDescriptor, createVariantProduct, createVariantProduct, createVariantType, createVariantType, getAccessibleCategories, getAccessibleCategories, getAccessibleCategoriesCount, getAccessibleCategoriesCount, getAllArticleStatus, getAllArticleStatus, getAllBuyerIDS, getAllBuyerIDS, getAllClassificationIndexString, getAllKeywords, getAllKeywords, getAllManufacturerTypeDescription, getAllManufacturerTypeDescription, getAllRemarks, getAllRemarks, getAllSegment, getAllSegment, getAllSpecialTreatmentClasses, getAllSpecialTreatmentClasses, getApprovalStatus, getApprovalStatus, getArticleStatus, getArticleStatus, getCatalogVersion, getCatalogVersion, getCatalogVersion, getCatalogVersion, getCatalogVersion, getCatalogVersion, getCatalogVersionAttribute, getClassificationIndexString, getContentUnit, getContentUnit, getData_sheet, getData_sheet, getDefaultAttributeModes, getDeliveryTime, getDeliveryTime, getDeliveryTimeAsPrimitive, getDeliveryTimeAsPrimitive, getDetail, getDetail, getEan, getEan, getEndLineNumber, getEndLineNumber, getEndLineNumberAsPrimitive, getEndLineNumberAsPrimitive, getErpGroupBuyer, getErpGroupBuyer, getErpGroupSupplier, getErpGroupSupplier, getFeatures, getFeatures, getKeywords, getKeywords, getKeywordsCount, getKeywordsCount, getKeywordsCount, getKeywordsCount, getLogo, getLogo, getManufacturerAID, getManufacturerAID, getManufacturerName, getManufacturerName, getManufacturerTypeDescription, getManufacturerTypeDescription, getMaxOrderQuantity, getMaxOrderQuantity, getMaxOrderQuantityAsPrimitive, getMaxOrderQuantityAsPrimitive, getMinOrderQuantity, getMinOrderQuantity, getMinOrderQuantityAsPrimitive, getMinOrderQuantityAsPrimitive, getName, getNormal, getNormal, getNumberContentUnits, getNumberContentUnits, getNumberContentUnitsAsPrimitive, getNumberContentUnitsAsPrimitive, getOfflineDate, getOfflineDate, getOnlineDate, getOnlineDate, getOrder, getOrder, getOrderAsPrimitive, getOrderAsPrimitive, getOrderQuantityInterval, getOrderQuantityInterval, getOrderQuantityIntervalAsPrimitive, getOrderQuantityIntervalAsPrimitive, getOthers, getOthers, getPreviewCatalogVersions, getPreviewCatalogVersions, getPriceQuantity, getPriceQuantity, getPriceQuantityAsPrimitive, getPriceQuantityAsPrimitive, getProductInfos, getProductInfos, getProductReferences, getProductReferences, getPublicKey, getPublicKey, getReadableCatalogVersions, getReadableCatalogVersions, getReadableCatalogVersionsCount, getReadableCatalogVersionsCount, getRemarks, getRemarks, getRemarks, getRemarks, getSegment, getSegment, getStartLineNumber, getStartLineNumber, getStartLineNumberAsPrimitive, getStartLineNumberAsPrimitive, getSupercategories, getSupercategories, getSupercategories, getSupercategories, getSupercategoriesCount, getSupercategoriesCount, getSupercategoriesCount, getSupercategoriesCount, getSupplierAlternativeAID, getSupplierAlternativeAID, getSynchronizationSources, getSynchronizedCopies, getSyncJobs, getSyncJobs, getSyncJobsCount, getSyncJobsCount, getThumbnails, getThumbnails, getUrl, getUrl, getVariants, getVariants, getVariantType, getVariantType, getWritableCatalogVersions, getWritableCatalogVersions, getWritableCatalogVersionsCount, getWritableCatalogVersionsCount, getXmlcontent, getXmlcontent, isBillingAddress, isBillingAddress, isBillingAddressAsPrimitive, isBillingAddressAsPrimitive, isCatalogItemType, isCatalogItemTypeAsPrimitive, isCatalogItemTypeAsPrimitive, isContactAddress, isContactAddress, isContactAddressAsPrimitive, isContactAddressAsPrimitive, isDontCopy, isDontCopy, isDontCopyAsPrimitive, isDontCopyAsPrimitive, isShippingAddress, isShippingAddress, isShippingAddressAsPrimitive, isShippingAddressAsPrimitive, isUnloadingAddress, isUnloadingAddress, isUnloadingAddressAsPrimitive, isUnloadingAddressAsPrimitive, removeFromFeatures, removeFromFeatures, removeFromKeywords, removeFromKeywords, removeFromProductInfos, removeFromProductInfos, removeFromProductReferences, removeFromProductReferences, removeFromReadableCatalogVersions, removeFromReadableCatalogVersions, removeFromSupercategories, removeFromSupercategories, removeFromSupercategories, removeFromSupercategories, removeFromSyncJobs, removeFromSyncJobs, removeFromVariants, removeFromVariants, removeFromWritableCatalogVersions, removeFromWritableCatalogVersions, setAllArticleStatus, setAllArticleStatus, setAllBuyerIDS, setAllBuyerIDS, setAllKeywords, setAllKeywords, setAllManufacturerTypeDescription, setAllManufacturerTypeDescription, setAllRemarks, setAllRemarks, setAllSegment, setAllSegment, setAllSpecialTreatmentClasses, setAllSpecialTreatmentClasses, setApprovalStatus, setApprovalStatus, setArticleStatus, setArticleStatus, setBillingAddress, setBillingAddress, setBillingAddress, setBillingAddress, setCatalogItemType, setCatalogItemType, setCatalogItemType, setCatalogVersion, setCatalogVersion, setCatalogVersion, setCatalogVersion, setCatalogVersionAttribute, setContactAddress, setContactAddress, setContactAddress, setContactAddress, setContentUnit, setContentUnit, setData_sheet, setData_sheet, setDeliveryTime, setDeliveryTime, setDeliveryTime, setDeliveryTime, setDetail, setDetail, setDontCopy, setDontCopy, setDontCopy, setDontCopy, setEan, setEan, setEndLineNumber, setEndLineNumber, setEndLineNumber, setEndLineNumber, setErpGroupBuyer, setErpGroupBuyer, setErpGroupSupplier, setErpGroupSupplier, setFeatures, setFeatures, setKeywords, setKeywords, setLogo, setLogo, setManufacturerAID, setManufacturerAID, setManufacturerName, setManufacturerName, setManufacturerTypeDescription, setManufacturerTypeDescription, setMaxOrderQuantity, setMaxOrderQuantity, setMaxOrderQuantity, setMaxOrderQuantity, setMinOrderQuantity, setMinOrderQuantity, setMinOrderQuantity, setMinOrderQuantity, setNormal, setNormal, setNumberContentUnits, setNumberContentUnits, setNumberContentUnits, setNumberContentUnits, setOfflineDate, setOfflineDate, setOnlineDate, setOnlineDate, setOrder, setOrder, setOrder, setOrder, setOrderQuantityInterval, setOrderQuantityInterval, setOrderQuantityInterval, setOrderQuantityInterval, setOthers, setOthers, setPreviewCatalogVersions, setPreviewCatalogVersions, setPriceQuantity, setPriceQuantity, setPriceQuantity, setPriceQuantity, setProductInfos, setProductInfos, setProductReferences, setProductReferences, setPublicKey, setPublicKey, setReadableCatalogVersions, setRemarks, setRemarks, setRemarks, setRemarks, setSegment, setSegment, setShippingAddress, setShippingAddress, setShippingAddress, setShippingAddress, setStartLineNumber, setStartLineNumber, setStartLineNumber, setStartLineNumber, setSupercategories, setSupercategories, setSupercategories, setSupercategories, setSupplierAlternativeAID, setSupplierAlternativeAID, setSyncJobs, setSyncJobs, setThumbnails, setThumbnails, setUniqueKeyAttributes, setUnloadingAddress, setUnloadingAddress, setUnloadingAddress, setUnloadingAddress, setUrl, setUrl, setVariants, setVariants, setVariantType, setVariantType, setWritableCatalogVersions, setXmlcontent, setXmlcontent
-
Methods inherited from class de.hybris.platform.jalo.extension.Extension
createSampleData, getCreatorDescription, getCreatorName, getCreatorParameterNames, getRemote, isCreatorDisabled, notifyInitializationStart, onFirstSessionCreation, writeReplace
-
Methods inherited from class de.hybris.platform.jalo.Manager
afterItemCreation, destroy, extractNonRequiredRemoteFromItem, extractRequiredRemoteFromItem, getAllValuesSessionContext, getAttribute, getAttributeMap, getFirstItemByAttribute, getFirstItemByAttribute, getRemoteManagerClass, getSession, getSingletonManagerInstance, getTenant, getTransientObject, getTransientObjectMap, init, setAttribute, setTenant, setTransientObject, wrap
-
-
-
-
Field Detail
-
MEDIA_CODE_DELIMITER
public static final java.lang.String MEDIA_CODE_DELIMITER
- See Also:
- Constant Field Values
-
DEFAULT_CATALOG_ID
public static final java.lang.String DEFAULT_CATALOG_ID
- See Also:
- Constant Field Values
-
DEFAULT_CATALOG_NAME
public static final java.lang.String DEFAULT_CATALOG_NAME
- See Also:
- Constant Field Values
-
OFFLINE_VERSION
public static final java.lang.String OFFLINE_VERSION
- See Also:
- Constant Field Values
-
ONLINE_VERSION
public static final java.lang.String ONLINE_VERSION
- See Also:
- Constant Field Values
-
DEFAULT_COMPANY_ID
public static final java.lang.String DEFAULT_COMPANY_ID
- See Also:
- Constant Field Values
-
DEFAULT_COMPANY_NAME
public static final java.lang.String DEFAULT_COMPANY_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCategoryManager
@Deprecated public CategoryManager getCategoryManager()
Deprecated.since ages - Internal legacy migration method forCategoryManager.getInstance()
only
-
getVariantsManager
@Deprecated public VariantsManager getVariantsManager()
Deprecated.since ages - Internal legacy migration method forVariantsManager.getInstance()
only
-
checkBeforeItemRemoval
protected void checkBeforeItemRemoval(SessionContext ctx, Item item) throws ConsistencyCheckException
Superclass method overridden to avoid calls to ejb layer.- Overrides:
checkBeforeItemRemoval
in classExtension
- Parameters:
ctx
- the current session contextitem
- the item which should be removed- Throws:
ConsistencyCheckException
- thrown to abort removal due to consistency errors
-
notifyItemRemoval
protected void notifyItemRemoval(SessionContext ctx, Item item)
Superclass method overridden to avoid calls to ejb layer except forProduct
andProductFeature
instances.- Overrides:
notifyItemRemoval
in classExtension
- Parameters:
ctx
- the currency session contextitem
- the item which is going to be removed
-
getInstance
public static CatalogManager getInstance()
- Returns:
- instance of this manager
-
setAllowedPrincipals
@Deprecated public void setAllowedPrincipals(SessionContext ctx, Category cat, java.util.List<Principal> newOnes)
Deprecated.since ages - useCategoryService.setAllowedPrincipalsForCategory(de.hybris.platform.category.model.CategoryModel, List)
instead.Copies changed visibilities down to subcategories and assures that added principals are allowed to all super categories too. If in the SessionContextCategory.DISABLE_SETALLOWEDPRINCIPAL_RECURSIVELY
is set to true the given principal list is only set to the given category.- Parameters:
ctx
- theSessionContext
cat
- the category where the principals is applied tonewOnes
- the list with the new allowed principals of this category- See Also:
Category.setAllowedPrincipals(de.hybris.platform.jalo.SessionContext, java.util.List)
-
getMediaCode
public java.lang.String getMediaCode(java.lang.String catalogID, java.lang.String catalogVersion, java.lang.String mediaCode)
-
createKeyword
public Keyword createKeyword(CatalogVersion catalogVersion, java.lang.String keyword, Language lang)
Creates an newKeyword
for the givenCatalogVersion
and keyword value.- Parameters:
catalogVersion
- TheCatalogVersion
, the keyword will belong to.keyword
- The keyword value.- Returns:
- The new
Keyword
for the given CatalogVersion and keyword value.
-
getDefaultCatalog
@Deprecated public Catalog getDefaultCatalog()
Deprecated.since ages - Use CatalogService.getDefaultCatalog() instead.
-
getKeyword
public Keyword getKeyword(CatalogVersion catalogVersion, java.lang.String keywordValue)
Returns the Keyword for the specified keyword value andCatalogVersion
.- Parameters:
catalogVersion
- TheCatalogVersion
theKeyword
belongs to.keywordValue
- The value of the searchedKeyword
.- Returns:
- The matching
Keyword
ornull
if there is no matchingKeyword
.
-
getKeyword
public Keyword getKeyword(java.lang.String typeCode, CatalogVersion catalogVersion, java.lang.String keywordValue)
Returns the Keyword for the specified keyword value andCatalogVersion
.- Parameters:
typeCode
- of keyword to allow to search for subclassescatalogVersion
- TheCatalogVersion
theKeyword
belongs to.keywordValue
- The value of the searchedKeyword
.- Returns:
- The matching
Keyword
ornull
if there is no matchingKeyword
.
-
createCatalog
@Deprecated public Catalog createCatalog(java.lang.String id)
Deprecated.since ages - Use modelService to create new catalog. Use CatalogModel setters to provide attributes values.Creates a new Catalog with the given id.- Parameters:
id
- The id of the newCatalog
.- Returns:
- The new
Catalog
.
-
createClassificationSystem
public ClassificationSystem createClassificationSystem(java.lang.String id) throws ConsistencyCheckException
Creates a new ClassificationSystem with the given id.- Parameters:
id
- The id of the newClassificationSystem
.- Returns:
- The new
ClassificationSystem
. - Throws:
ConsistencyCheckException
-
createCatalog
@Deprecated public Catalog createCatalog(java.lang.String id, java.lang.String name, Company supplier)
Deprecated.since ages - Use modelService to create new catalog. Use CatalogModel setters to provide attributes values.Creates a new Catalog with the given id, name and supplier.- Parameters:
id
- The id of the newCatalog
. The combination of supplier and id must be unique.name
- The localized name of theCatalog
. The current session language is used to set this localized value.supplier
- The supplier of thisCatalog
.- Returns:
- The new
Catalog
.
-
createCatalogVersion
@Deprecated public CatalogVersion createCatalogVersion(Catalog catalog, java.lang.String version, Language importLanguage)
Deprecated.since ages - Use modelService to create new catalogVersion. Use CatalogVersionModel setters to provide attributes values.Creates a newCatalogVersion
with the given version string and import language for the specifiedCatalog
.- Parameters:
catalog
- TheCatalog
for which the new version is created. This value must not benull
.version
- The version string. This value can not benull
.importLanguage
- The initalLanguage
of this catalog version. This value must not benull
.- Returns:
- The new
CatalogVersion
.
-
createClassificationSystemVersion
public ClassificationSystemVersion createClassificationSystemVersion(ClassificationSystem system, java.lang.String version, Language importLanguage) throws ConsistencyCheckException
- Throws:
ConsistencyCheckException
-
createClassificationSystemVersion
public ClassificationSystemVersion createClassificationSystemVersion(ClassificationSystem system, java.lang.String version, java.util.Collection<Language> languages) throws ConsistencyCheckException
- Throws:
ConsistencyCheckException
-
createAgreement
@Deprecated public Agreement createAgreement(java.lang.String id, java.util.Date startDate, java.util.Date endDate)
Deprecated.since ages - Use ModelService to create new AgreementModels. Use AgreementModel's setters to provide attribute values.Creates a newAgreement
with the given id, start- and enddate.- Parameters:
id
- The id of thisAgreement
. This value must not benull
.startDate
- The start date of thisAgreement
.endDate
- The end date of thisAgreement
. This value must not benull
.- Returns:
- The new Agreement for the specified parameter values.
-
createAgreement
@Deprecated public Agreement createAgreement(CatalogVersion catalogVersion, java.lang.String id, java.util.Date startDate, java.util.Date endDate)
Deprecated.since ages - Use ModelService to create new AgreementModels. Use AgreementModel's setters to provide attribute values.Creates a newAgreement
for the specifiedCatalogVersion
with the given id, start- and enddate.- Parameters:
catalogVersion
- TheCatalogVersion
this Agreement belongs to. This value must not benull
.id
- The id of thisAgreement
. This value must not benull
.startDate
- The start date of thisAgreement
.endDate
- The end date of thisAgreement
. This value must not benull
.- Returns:
- The new Agreement for the specified parameter values.
-
createProductReference
@Deprecated public ProductReference createProductReference(java.lang.String qualifier, Product source, Product target, java.lang.Integer quantity)
Deprecated.since ages - Use ModelService to create new ProductReferences. Use ProductReferncveModel setters to set attribute values.Creates a newProductReference
for the specified parameter values.- Parameters:
qualifier
- the reference qualifier. This value must not benull
.source
- the source producttarget
- the target productquantity
-- Returns:
- The new ProductReference for the specified parameter values.
-
getProductReferences
@Deprecated public java.util.Collection<ProductReference> getProductReferences(java.lang.String qualifier, Product source, Product target, java.lang.Integer quantity, boolean forceQuantitySearch)
Deprecated.since ages - Use one of the ProductReferenceService methods to fetch product references- Parameters:
qualifier
-source
-target
-quantity
-forceQuantitySearch
- specifies search behavior for the case that quantity is null. If false it means that all items with any quantity will be returned - if true only items with quantity == null will be returned- Returns:
- Collection of product references
-
getProductReferences
@Deprecated public java.util.Collection<ProductReference> getProductReferences(java.lang.String qualifier, Product source, Product target)
Deprecated.since ages - Use one of the ProductReferenceService methods to fetch product references
-
getCatalog
@Deprecated public Catalog getCatalog(java.lang.String catalogID)
Deprecated.since ages - Use CatalogService.getCatalogForId(String) instead.Returns the matchingCatalog
for the specified supplier and ID.- Parameters:
catalogID
- The id of the searchedCatalog
.- Returns:
- The matching
Catalog
ornull
if there is no matchingCatalog
.
-
getClassificationSystem
public ClassificationSystem getClassificationSystem(java.lang.String classificationSystemId)
Returns the matchingClassificationSystem
for the specified id.- Parameters:
classificationSystemId
- The id of the searchedClassificationSystem
.- Returns:
- The matching
ClassificationSystem
ornull
if there is no matchingClassificationSystem
.
-
getClassificationClass
public ClassificationClass getClassificationClass(java.lang.String systemName, java.lang.String versionName, java.lang.String classID)
Finds a classification class directly by specifying its classificaiton system name, system version and class code.- Parameters:
systemName
-versionName
-classID
-
-
getClassificationClasses
public java.util.List<ClassificationClass> getClassificationClasses(Product product)
-
getClassificationClasses
public java.util.List<ClassificationClass> getClassificationClasses(SessionContext ctx, Product product)
-
getClassificationClasses
public java.util.List<ClassificationClass> getClassificationClasses(ClassificationSystemVersion systemVersion, Product product)
-
getClassificationClasses
public java.util.List<ClassificationClass> getClassificationClasses(java.util.Collection<ClassificationSystemVersion> systemVersions, Product product)
-
getClassificationClasses
public java.util.List<ClassificationClass> getClassificationClasses(Category src)
-
getClassificationClasses
public java.util.List<ClassificationClass> getClassificationClasses(ClassificationSystemVersion systemVersion, Category src)
-
getClassificationClasses
public java.util.List<ClassificationClass> getClassificationClasses(java.util.Collection<ClassificationSystemVersion> systemVersions, Category src)
-
getCatalog
@Deprecated public Catalog getCatalog(java.lang.String supplierUID, java.lang.String catalogID)
Deprecated.since ages - catalogId is unique, so it is sufficient to search over catalogId only. Use CatalogService.getCatalogForId(String) instead.Returns theCatalog
with the provided id of Supplier specified by his UID. If either the is noCompany
with the provided UID or noCatalog
for the combination of catalog id and suppliernull
is returned.- Parameters:
supplierUID
- The UID of the supplier.catalogID
- The ID of the searchedCatalog
.- Returns:
- The found
Catalog
ornull
if noCatalog
matches the provided supplier and catalog id.
-
getCatalog
@Deprecated public Catalog getCatalog(Company supplier, java.lang.String catalogID)
Deprecated.since ages - catalogId is unique, so it is sufficient to search over catalogId only. Use CatalogService.getCatalogForId(String) instead.Returns the matchingCatalog
for the specified supplier and catalogID.- Parameters:
supplier
- The supplier of the searched catalog.catalogID
- The id of the searchedCatalog
.- Returns:
- The matching
Catalog
ornull
if there is no matchingCatalog
.
-
getCatalogCategory
@Deprecated public Category getCatalogCategory(CatalogVersion catalogVersion, java.lang.String code)
Deprecated.since ages - useCategoryService.getCategoryForCode(de.hybris.platform.catalog.model.CatalogVersionModel, String)
instead.Returns the matchingCatalogCategory
for the specifiedCatalogVersion
and catalog code.- Parameters:
catalogVersion
- TheCatalogVersion
theCatalogCategory
should belong to.code
- The code of the searched category.- Returns:
- The matching
CatalogCategory
or null, if no matchingCatalogCategory
exists.
-
getAllCatalogCategories
@Deprecated public java.util.Collection<Category> getAllCatalogCategories(CatalogVersion catalogVersion)
Deprecated.since ages - useCategoryService
instead.Returns a collection of all CatalogCategories for the specifiedCatalogVersion
- Parameters:
catalogVersion
- TheCatalogVersion
theCatalogCategory
should belong to.- Returns:
- The Collection of matching CatalogCategories.
-
getCompanyByUID
@Deprecated public Company getCompanyByUID(java.lang.String uid)
Deprecated.since ages - Use UserService.getUserGroupForUID(uid, CompanyModel.class) instead.Returns theCompany
with the specified UID. If noCompany
can be found with the specified UID,null
is returned.- Parameters:
uid
- The UID of the searchedCompany
.- Returns:
- The
Company
with the specified UID ornull
if there exists noCompany
with the specified UID.
-
createCompany
@Deprecated public Company createCompany(java.lang.String uid)
Deprecated.since ages - Use ModelService to create new CompanyModel. Use CompanyModel setters to provide attributes values.Creates a newCompany
with the given uid. By default the value of uid is also used as the name of theCompany
.- Parameters:
uid
- The uid of theCompany
. The uid must be unique within all companies.- Returns:
- The new
Company
.
-
createCatalogCategory
@Deprecated public Category createCatalogCategory(CatalogVersion catalogVersion, java.lang.String code, java.lang.String name, java.lang.String description, java.lang.Integer order, java.util.Collection keywords, Category parent)
Deprecated.since ages - Use ModelService to create new CategoryModel. Use CategoryModel setters to provide attributes values.Creates a new CatalogCategory instance for the given CatalogVersion.- Parameters:
catalogVersion
- TheCatalogVersion
, this category belongs to.null
is not a valid value.code
- The unique code of this category. (Unique within thisCatalogVersion
).null
is not a valid value.name
- The localized name of this category. TheLanguage
of the current session is used to set this localized value.description
- The localized description of this category. TheLanguage
of the current session is used to set this localized value.order
- This order can be used to define an order of the subcategories of an CatalogCategory.keywords
- Collection containing allKeyword
s which are associated with theCatalogCategory
.parent
- The parentCatalogCategory
instance of this new CatalogCategory.- Returns:
- The new CatalogCategory instance for the given values.
-
setCatalogVersion
@Deprecated public void setCatalogVersion(SessionContext ctx, Product product, CatalogVersion version)
Deprecated.since ages - Use ProductModel.setCatalogVersion(de.hybris.platform.catalog.model.CatalogVersionModel) instead. Use ModelService to persist model changes.Superclass method overridden to change the catalog as well.- Overrides:
setCatalogVersion
in classGeneratedCatalogManager
version
- the catalogVersion
-
setCatalogVersion
@Deprecated public void setCatalogVersion(SessionContext ctx, Category cat, CatalogVersion catver)
Deprecated.since ages - Use CategoryModel.setCatalogVersion(de.hybris.platform.catalog.model.CatalogVersionModel) instead. Use ModelService to persist model changes.Superclass method overridden to change the catalog as well.
-
setCatalogVersion
@Deprecated public void setCatalogVersion(SessionContext ctx, Media media, CatalogVersion version)
Deprecated.since ages - Use MediaModel.setCatalogVersion(de.hybris.platform.catalog.model.CatalogVersionModel) instead. Use ModelService to persist model changes.Superclass method overridden to set catalog as well.- Overrides:
setCatalogVersion
in classGeneratedCatalogManager
version
- the catalogVersion
-
setSessionCatalogVersions
@Deprecated public void setSessionCatalogVersions(java.util.Collection<CatalogVersion> versions)
Deprecated.since ages - Use CatalogVersionService.setSessionCatalogVersions(Set) instead.Changes the catalog versions which are associated to the given session.These versions are evaluated by the catalog search restrictions. Those restrictions will take effect only if they apply to the session user!
- Parameters:
versions
- the versions collection
-
setSessionCatalogVersions
@Deprecated public void setSessionCatalogVersions(SessionContext ctx, java.util.Collection<CatalogVersion> versions)
Deprecated.since ages - Use CatalogVersionService.setSessionCatalogVersions(Set) instead.Changes the catalog versions which are associated to the given session context.These versions are evaluated by the catalog search restrictions. Those restrictions will take effect only if they apply to the session user!
- Parameters:
ctx
- the jalo session context to change catalog versions forversions
- the versions collection
-
isActivatingPreviewMode
@Deprecated public boolean isActivatingPreviewMode(JaloSession jalosession)
Deprecated.since ages - Use SessionService.getAttribute(CatalogConstants.PREVIEW_MODE_ACTIVATION) in order to read the 'preview mode' flag value.
-
isActivatingPreviewMode
@Deprecated public boolean isActivatingPreviewMode(SessionContext ctx)
Deprecated.since ages - Use SessionService.getAttribute(CatalogConstants.PREVIEW_MODE_ACTIVATION) in order to read the 'preview mode' flag value.
-
getSessionCatalogVersions
@Deprecated public java.util.Collection<CatalogVersion> getSessionCatalogVersions(JaloSession jalosession)
Deprecated.since ages - Use CatalogVersionService.getSessionCatalogVersions() instead.Tells which catalog versions are currently associated with the given jalo session.These versions are evaluated by the catalog search restrictions. Those restrictions will take effect only if they apply to the session user!
- Parameters:
jalosession
- the jalo session to get the catalog versions from
-
getSessionCatalogVersions
@Deprecated public java.util.Collection<CatalogVersion> getSessionCatalogVersions(SessionContext ctx)
Deprecated.since ages - Use CatalogVersionService.getSessionCatalogVersions() instead.Tells which catalog versions are currently associated with the given jalo session context.These versions are evaluated by the catalog search restrictions. Those restrictions will take effect only if they apply to the session user!
- Parameters:
ctx
- the session contex to evaluate
-
getAvailableCatalogVersions
@Deprecated public java.util.Collection<CatalogVersion> getAvailableCatalogVersions(JaloSession jalosession)
Deprecated.since ages - Use CatalogVersionService.getAllReadableCatalogVersions(PrincipalModel currentUser) instead. UserService allows to fetch current user: UserService.getCurrentUser().Returns all catalog versions available to this jalo session. Right now this will return all catalog versions in the system. In future there may be different versions available per user.- Parameters:
jalosession
- the jalo session to get all available versions for
-
createCatalogSyncMediaFolder
public void createCatalogSyncMediaFolder()
-
getCatalogSyncMediaFolder
public MediaFolder getCatalogSyncMediaFolder()
-
notifyInitializationEnd
public void notifyInitializationEnd(java.util.Map<java.lang.String,java.lang.String> params, JspContext ctx) throws java.lang.Exception
- Overrides:
notifyInitializationEnd
in classExtension
- Throws:
java.lang.Exception
-
createSavedQueries
public void createSavedQueries(JspContext jspc)
-
getZipEntryInputStream
protected java.io.InputStream getZipEntryInputStream(java.util.zip.ZipFile zipfile, java.lang.String entryName) throws java.io.IOException
- Throws:
java.io.IOException
-
getBatchMedia
protected ImpExMedia getBatchMedia(java.lang.String fileName, java.lang.String fileExt) throws java.io.IOException, JaloBusinessException
- Throws:
java.io.IOException
JaloBusinessException
-
createBatchMedia
protected ImpExMedia createBatchMedia(java.lang.String fileName, java.lang.String mime, java.io.InputStream istr)
-
getClassificationAttribute
@Deprecated public ClassificationAttribute getClassificationAttribute(java.lang.String code, ClassificationSystemVersion version) throws JaloItemNotFoundException
Deprecated.since ages - please useItem.getAttribute(String)
instead- Throws:
JaloItemNotFoundException
-
getClassificationAttributeValue
@Deprecated public ClassificationAttributeValue getClassificationAttributeValue(java.lang.String code, ClassificationSystemVersion version)
Deprecated.since ages - please useClassificationSystemVersion.getClassificationAttributeValue(String)
instead
-
getCategoriesByProduct
public java.util.Collection<Category> getCategoriesByProduct(CatalogVersion catver, Product product, SessionContext ctx)
-
getCategoriesByProduct
public java.util.Collection<Category> getCategoriesByProduct(CatalogVersion catver, Product product)
- Returns:
- all categories the given product is in
-
getCategoryProductLinks
@Deprecated public java.util.Collection<Link> getCategoryProductLinks(CatalogVersion catalogVersion, Category category, Product product)
Deprecated.since ages
-
getProductByCatalogVersion
public Product getProductByCatalogVersion(CatalogVersion catalogVersion, java.lang.String productCode)
-
getVariants
public java.util.Collection<VariantProduct> getVariants(SessionContext ctx, Product baseProduct, CatalogVersion catalogVersion)
-
getCategoryProductsByState
@Deprecated public java.util.Collection<Product> getCategoryProductsByState(SessionContext ctx, Category category, boolean offline)
Deprecated.since ages - useProductService.getOfflineProductsForCategory(de.hybris.platform.category.model.CategoryModel)
and)
instead.
-
getUntypedFeatures
@Deprecated public java.util.List<ProductFeature> getUntypedFeatures(Product item)
Deprecated.since ages - useFeatureContainer.loadUntyped(Product)
instead
-
getUntypedFeatures
@Deprecated public java.util.List<ProductFeature> getUntypedFeatures(SessionContext ctx, Product prod)
Deprecated.since ages - useFeatureContainer.loadUntyped(Product)
insteadReturns all untyped features of a given product. Untyped features do not belong to aClassificationAttribute
.- Parameters:
ctx
-prod
-- Returns:
- Collection
-
setUntypedFeatures
public void setUntypedFeatures(SessionContext ctx, Product product, java.util.List<ProductFeature> features)
-
getAllCatalogs
@Deprecated public java.util.Set<Catalog> getAllCatalogs()
Deprecated.since ages - Use CatalogService.getAllCatalogs() instead.Returns all catalogs within the system.
-
getAllCatalogVersions
@Deprecated public java.util.Set<CatalogVersion> getAllCatalogVersions()
Deprecated.since ages - Use CatalogVersionService.getAllCatalogVersions() instead.Returns all catalog versions within the system.- Returns:
- all catalog versions
-
getAllClassificationSystems
public java.util.Set<ClassificationSystem> getAllClassificationSystems()
Returns all classification systems within the system.
-
getAllClassificationSystemVersions
@Deprecated public java.util.Set<ClassificationSystemVersion> getAllClassificationSystemVersions()
Deprecated.since ages - Use ClassificationSystemVersionDao.findAllClassificationSystemVersions() instead.Returns all classification system versions within the system.- Returns:
- all classification system versions within the system.
-
getLanguageIfExists
@Deprecated public Language getLanguageIfExists(java.lang.String isoCode)
Deprecated.since ages - Use CommonI18NService.getLanguage(String) instead.
-
createUsersAndGroupsAndRights
public void createUsersAndGroupsAndRights() throws java.lang.Exception
- Throws:
java.lang.Exception
-
createDefaultCatalog
public boolean createDefaultCatalog(JspContext jspc) throws java.lang.Exception
- Throws:
java.lang.Exception
-
configureDefaultSynchronization
public void configureDefaultSynchronization(JspContext jspc)
-
getSyncJobFromSource
public SyncItemJob getSyncJobFromSource(CatalogVersion source)
-
getSyncJob
public SyncItemJob getSyncJob(CatalogVersion source, CatalogVersion target)
-
getSyncJob
public SyncItemJob getSyncJob(CatalogVersion source, CatalogVersion target, java.lang.String qualifier)
-
configureSynchronizationJob
public SyncItemJob configureSynchronizationJob(java.lang.String code, Catalog catalog, java.lang.String sourceVersion, java.lang.String targetVersion, boolean createNewItems, boolean removeMissingItems)
Configures a publication rule (asSyncItemJob
item) between a specified source catalog version and target catalog version with a given catalog.If no such item exists a new one is being created.
- Parameters:
code
- the code of the publication rulecatalog
- the catalog to search source and target version withinsourceVersion
- the source version qualifiertargetVersion
- the target version qualifiercreateNewItems
- whether or not the publication should create items which are missing in target versionremoveMissingItems
- whether or not the publication should remove items which exist in target version only- Returns:
- the publication rule item
-
newDefaultSyncJobInstance
protected SyncItemJob newDefaultSyncJobInstance(java.util.Map attributes)
-
getCreatorParameterDefault
public java.lang.String getCreatorParameterDefault(java.lang.String param)
Description copied from class:Extension
Override this method to provide default value for the given creator parameter.- Overrides:
getCreatorParameterDefault
in classExtension
- Parameters:
param
- the name of the parameter- Returns:
- default value for the given creator parameter; use
null
when the parameter should have no default value
-
getCreatorParameterPossibleValues
public java.util.List<java.lang.String> getCreatorParameterPossibleValues(java.lang.String param)
Description copied from class:Extension
Override this method to provide a list of all possible values for the given creator parameter. If notnull
the list of these values will be shown to the user of system creator and no other values will be possible to set.- Overrides:
getCreatorParameterPossibleValues
in classExtension
- Parameters:
param
- the name of the parameter- Returns:
- list of all possible values for the given creator parameter; use
null
when this parameter should have no restriction of possible values
-
getTypeQualifier
public java.lang.String getTypeQualifier(Address address)
-
getTypeQualifier
public java.lang.String getTypeQualifier(SessionContext ctx, Address address)
-
setApprovalStatus
@Deprecated public void setApprovalStatus(Category cat, EnumerationValue status, boolean recursively, boolean asTransaction)
Deprecated.since agesChanges the approval status of all products within a given category.- Parameters:
cat
- the category which products are changedstatus
- the new approval statusrecursively
- iftrue
products of all subcategories are changed tooasTransaction
- iftrue
the whole operation is wrapped inside a transaction - for large category structures this may exceed the transaction timeout and should be disabled in that case- Since:
- 1.31
-
getLastSyncModifiedTime
public java.util.Date getLastSyncModifiedTime(SyncItemJob job, Item src, Item copy)
-
getSynchronizedCopy
public Item getSynchronizedCopy(Item source, SyncItemJob sij)
-
removeProductReferencesFor
protected void removeProductReferencesFor(SessionContext ctx, Product prod)
-
removeSyncTimestampsFor
protected void removeSyncTimestampsFor(SessionContext ctx, CatalogVersion catver)
-
removeSyncTimestampsFor
protected void removeSyncTimestampsFor(SessionContext ctx, Item forItem)
-
getSyncTimestampMap
public java.util.Map<PK,ItemSyncTimestamp> getSyncTimestampMap(Item source, SyncItemJob sij)
-
createSyncTimestamp
public ItemSyncTimestamp createSyncTimestamp(SyncItemJob job, Item source, Item copy)
-
createSyncTimestamp
public ItemSyncTimestamp createSyncTimestamp(SyncItemJob job, Item source, PK copy)
-
getSynchronizedCopies
public java.util.List<ItemSyncTimestamp> getSynchronizedCopies(SessionContext ctx, Item source)
Implements getting all copies of an extensible item.- Specified by:
getSynchronizedCopies
in classGeneratedCatalogManager
- Returns:
- the synchronizedCopies
-
getSynchronizationSources
public java.util.List<ItemSyncTimestamp> getSynchronizationSources(SessionContext ctx, Item target)
Description copied from class:GeneratedCatalogManager
Generated method - Getter of theItem.synchronizationSources
attribute.- Specified by:
getSynchronizationSources
in classGeneratedCatalogManager
- Returns:
- the synchronizationSources
-
createProductCatalogVersionDifference
public ProductCatalogVersionDifference createProductCatalogVersionDifference(CatalogVersion sourceVersion, CatalogVersion targetVersion, CronJob cronJob, Product srcProduct, Product targetProduct, EnumerationValue mode)
-
createCategoryCatalogVersionDifference
@Deprecated public CategoryCatalogVersionDifference createCategoryCatalogVersionDifference(CatalogVersion sourceVersion, CatalogVersion targetVersion, CronJob cronJob, Category srcCategory, Category targetCategory, EnumerationValue mode)
Deprecated.since ages
-
createDefaultCompareCatalogVersionCronJob
public CompareCatalogVersionsCronJob createDefaultCompareCatalogVersionCronJob(CatalogVersion source, CatalogVersion target, Customer priceCompareCustomer, java.lang.Double tolerance, java.lang.Boolean searchMissingProducts, java.lang.Boolean searchMissingCategories, java.lang.Boolean searchNewProducts, java.lang.Boolean searchNewCategories, java.lang.Boolean searchPriceDiffs, java.lang.Boolean overwriteStatus)
-
getOrCreateDefaultCompareCatalogVersionJob
public CompareCatalogVersionsJob getOrCreateDefaultCompareCatalogVersionJob()
-
getOrCreateDefaultRemoveCatalogVersionJob
public RemoveCatalogVersionJob getOrCreateDefaultRemoveCatalogVersionJob()
-
getAllCatalogItemRootTypes
@Deprecated public java.util.Set<ComposedType> getAllCatalogItemRootTypes()
Deprecated.since ages - Use CatalogVersionService.getAllCatalogVersionAwareTypes(true) instead.Returns all composed types which are marked as holding catalog capable items. If the super-type of a composed type is allready marked as holding catalog capable items then this subtype is not included in the set.- Returns:
- a Set with (Super)ComposedType which are marked as holding catalog capable items
-
getAllCatalogItemTypes
@Deprecated public java.util.Set<ComposedType> getAllCatalogItemTypes()
Deprecated.since ages - Use CatalogTypeService.getAllCatalogVersionAwareTypes(false) instead.Returns all composed types (also the subtypes) which are marked as holding catalog capable items.
-
isCatalogItem
@Deprecated public boolean isCatalogItem(Item item)
Deprecated.since ages - Use CatalogTypeService.isCatalogVersionAwareModel(de.hybris.platform.core.model.ItemModel) instead.Tells whether or not a item is a catalog contained item. This is always true for items of typeProduct
,Category
andMedia
. Optionally any item which jalo class implementsCatalogItem
is considered as catalog item.
-
isCatalogItem
@Deprecated public boolean isCatalogItem(ComposedType comptyp)
Deprecated.since ages - Use CatalogTypeService.isCatalogVersionAwareModel(de.hybris.platform.core.model.ItemModel) instead.Tells whether or not a item is a catalog contained item. This is always true for items of typeProduct
,Category
andMedia
. Optionally any item which jalo class implementsCatalogItem
is considered as catalog item.
-
isCatalogItemType
@Deprecated public java.lang.Boolean isCatalogItemType(SessionContext ctx, ComposedType item)
Deprecated.since ages - UseisCatalogItem(ComposedType)
instead.Overwritten to support inheritance of catalog item type flag. This way not just types with activatedGeneratedCatalogConstants.Attributes.ComposedType.CATALOGITEMTYPE
flag are considered as catalog contained types but also all of their subtypes (unless the flag has been explicitely deactivated).- Overrides:
isCatalogItemType
in classGeneratedCatalogManager
- Returns:
- the catalogItemType
-
isCatalogItem
@Deprecated public boolean isCatalogItem(java.lang.Class itemclass)
Deprecated.since ages - please useisCatalogItem(ComposedType)
insteadTells whether or not a item class belongs to a catalog contained item. This is always true for classes of typeProduct
,Category
andMedia
. Optionally any class which implementsCatalogItem
is considered as catalog item.
-
setCatalogItemType
@Deprecated public void setCatalogItemType(SessionContext ctx, ComposedType item, java.lang.Boolean param)
Deprecated.since ages - Use ComposedTypeModel.setCatalogItemType(Boolean) instead.Description copied from class:GeneratedCatalogManager
Generated method - Setter of theComposedType.catalogItemType
attribute.- Overrides:
setCatalogItemType
in classGeneratedCatalogManager
param
- the catalogItemType
-
checkCatalogItemTypeAttributeDescriptor
protected void checkCatalogItemTypeAttributeDescriptor(ComposedType comptyp, AttributeDescriptor atrdesc, boolean forVersion) throws JaloInvalidParameterException
Checks attribute descriptors.- Parameters:
comptyp
- the composedTypeatrdesc
- the AttributeDescriptorforVersion
- true or false- Throws:
JaloInvalidParameterException
- thrown by errors- See Also:
setCatalogVersionAttribute(SessionContext, ComposedType, AttributeDescriptor)
,setUniqueKeyAttributes(SessionContext, ComposedType, Collection)
-
getCatalogVersion
@Deprecated public CatalogVersion getCatalogVersion(Item item)
Deprecated.since ages - Use CatalogTypeService.getCatalogVersion(de.hybris.platform.core.model.ItemModel) instead.Retrieves the owning catalog version for a catalog item. The default SessionContext us used.- Throws:
JaloInvalidParameterException
- if the item is no catalog item or its type does not provide a catalog version attribute- See Also:
isCatalogItem(Item)
-
getCatalogVersion
@Deprecated public CatalogVersion getCatalogVersion(SessionContext ctx, Item item) throws JaloInvalidParameterException
Deprecated.since ages - Use CatalogTypeService.getCatalogVersion(de.hybris.platform.core.model.ItemModel) instead.Retrieves the owning catalog version for a catalog item.- Throws:
JaloInvalidParameterException
- if the item is no catalog item or its type does not provide a catalog version attribute- See Also:
isCatalogItem(Item)
-
getCounterpartItem
@Deprecated public Item getCounterpartItem(Item sourceItem, CatalogVersion targetVersion) throws JaloInvalidParameterException
Deprecated.since ages - Use CatalogTypeService.getCatalogVersionAwareModel(CatalogVersionModel, String, Map) instead.Locates the counterpart item of a given catalog item with a target catalog version. Here theunique key
attribute is required to find this item.Please note that this method does not check if the source item has been synchronized and a
ItemSyncTimestamp
exists. UsegetSynchronizedCopy(Item, SyncItemJob)
to locate a existing synchronized item.- Parameters:
sourceItem
- the source item to locate the counterparttargetVersion
- the target version to search within- Returns:
- the counterpart item from the target version or
null
if no such item exist - Throws:
JaloInvalidParameterException
- if either no unique key attribute is available, the attribute is not searchable or the source item is no instance of this type
-
getCounterpartItem
@Deprecated public Item getCounterpartItem(SessionContext ctx, Item sourceItem, CatalogVersion targetVersion) throws JaloInvalidParameterException
Deprecated.since ages - Use CatalogTypeService.getCatalogVersionAwareModel(CatalogVersionModel, String, Map) instead.Locates the counterpart item of a given catalog item with a target catalog version. Here theunique key
attribute is required to find this item.Please note that this method does not check if the source item has been synchronized and a
ItemSyncTimestamp
exists. UsegetSynchronizedCopy(Item, SyncItemJob)
to locate a existing synchronized item.- Parameters:
ctx
- the session contextsourceItem
- the source item to locate the counterparttargetVersion
- the target version to search within- Returns:
- the counterpart item from the target version or
null
if no such item exist - Throws:
JaloInvalidParameterException
- if either no unique key attribute is available, the attribute is not searchable or the source item is no instance of this type
-
getCatalogItemID
public java.lang.String getCatalogItemID(Item catalogItem) throws JaloInvalidParameterException
Returns the ID of a catalog item. Currently this method recognizes products, categories, medias, keywords and items implementingCatalogItem
.- Parameters:
catalogItem
-- Throws:
JaloInvalidParameterException
- in case the item is no supported catalog item
-
getCatalogVersionAttribute
public AttributeDescriptor getCatalogVersionAttribute(SessionContext ctx, ComposedType type)
Description copied from class:GeneratedCatalogManager
Generated method - Getter of theComposedType.catalogVersionAttribute
attribute.- Specified by:
getCatalogVersionAttribute
in classGeneratedCatalogManager
- Returns:
- the catalogVersionAttribute
-
setCatalogVersionAttribute
public void setCatalogVersionAttribute(SessionContext ctx, ComposedType item, AttributeDescriptor attrdesc)
Description copied from class:GeneratedCatalogManager
Generated method - Setter of theComposedType.catalogVersionAttribute
attribute.- Specified by:
setCatalogVersionAttribute
in classGeneratedCatalogManager
attrdesc
- the catalogVersionAttribute
-
getUniqueKeyAttributes
public java.util.Collection<AttributeDescriptor> getUniqueKeyAttributes(ComposedType item)
Description copied from class:GeneratedCatalogManager
Generated method - Getter of theComposedType.uniqueKeyAttributes
attribute.- Overrides:
getUniqueKeyAttributes
in classGeneratedCatalogManager
- Returns:
- the uniqueKeyAttributes
-
hasUniqueKeyAttributes
@Deprecated public boolean hasUniqueKeyAttributes(ComposedType comptyp)
Deprecated.since ages - Check ComposedTypeModel.getUniqueKeyAttributes() instead.
-
getUniqueKeyAttributes
@Deprecated public java.util.Collection<AttributeDescriptor> getUniqueKeyAttributes(SessionContext ctx, ComposedType item)
Deprecated.since ages - Check ComposedTypeModel.getUniqueKeyAttributes() instead.Description copied from class:GeneratedCatalogManager
Generated method - Getter of theComposedType.uniqueKeyAttributes
attribute.- Specified by:
getUniqueKeyAttributes
in classGeneratedCatalogManager
- Returns:
- the uniqueKeyAttributes
-
getUniqueKeyAttributeQualifiers
@Deprecated public java.util.Set<java.lang.String> getUniqueKeyAttributeQualifiers(ComposedType comptyp)
Deprecated.since ages - Use CatalogTypeService.getCatalogVersionUniqueKeyAttribute(String typeCode) instead;Returns all configured unique key attribute qualifiers for a given composed type. Please note that this method will noch check if the qualifiers really match existing attribute descriptors!- Parameters:
comptyp
-
-
setUniqueKeyAttributes
public void setUniqueKeyAttributes(SessionContext ctx, ComposedType item, java.util.Collection<AttributeDescriptor> value)
Description copied from class:GeneratedCatalogManager
Generated method - Setter of theComposedType.uniqueKeyAttributes
attribute.- Specified by:
setUniqueKeyAttributes
in classGeneratedCatalogManager
value
- the uniqueKeyAttributes
-
getOldest
public static Item getOldest(java.util.Collection items)
-
getFirstOne
public static final java.lang.Object getFirstOne(java.util.Collection coll)
Tool method which returns just the first element of a collection.- Parameters:
coll
- the collection to get the first element from- Returns:
- the first element of the collection or null if the collection is empty or null
-
findInCatalogVersion
protected Product findInCatalogVersion(CatalogVersion ver, Product original)
-
findInCatalogVersion
@Deprecated protected Category findInCatalogVersion(CatalogVersion ver, Category original)
Deprecated.since ages
-
findInCatalogVersion
protected Media findInCatalogVersion(CatalogVersion ver, Media original)
-
mustSetCatalogVersions
public static boolean mustSetCatalogVersions(JaloSession jaloSession, javax.servlet.http.HttpServletRequest req)
-
filterByURL
protected java.util.Collection filterByURL(javax.servlet.http.HttpServletRequest request, java.util.Collection allActiveVersions)
-
createPreviewTicket
public PreviewTicket createPreviewTicket(CatalogVersion version)
-
createPreviewTicket
public PreviewTicket createPreviewTicket(CatalogVersion version, User createdBy, java.util.Date validTo)
-
collectPreviewTicketVersions
protected java.util.Collection<PreviewTicket> collectPreviewTicketVersions(javax.servlet.http.HttpServletRequest request, JaloSession jaloSession)
-
assignCatalogVersions
protected void assignCatalogVersions(javax.servlet.http.HttpServletRequest request, JaloSession jaloSession, java.util.Collection<CatalogVersion> versions, boolean previewMode)
-
doPreRequest
public void doPreRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
- Specified by:
doPreRequest
in interfaceWebRequestInterceptor
-
doPostRequest
public void doPostRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
- Specified by:
doPostRequest
in interfaceWebRequestInterceptor
-
canSync
public boolean canSync(SessionContext ctx, User sessionUser, SyncItemJob sync)
This method will be called by the SynchronizeCatalogVersionWizard for determining if the current user is allowed to execute a synchronization task. (PLA-7821)
Checks the write permissions of the assigned user Following checks will be executed:
- 1. Checks if the user is a member of the assigned SyncUsers/SyncGroups (see SyncItemJob)
- 1.1.If TRUE, then write permissions will be granted and no further checking will be processed
- 2. Depending on the flag 'syncUsersOnly' (see SyncItemJob), users which are NOT specified as SyncUser but have 'general' write permissions
for this catalog version will get 'Write' permissions, too- Parameters:
ctx
-sessionUser
-sync
-- Returns:
- true if sync. is permitted for the specified user
-
canWrite
public boolean canWrite(SessionContext ctx, User sessionUser, CatalogVersion catalogVersion)
-
canRead
public boolean canRead(SessionContext ctx, User sessionUser, CatalogVersion catalogVersion)
-
getAllWriteableCatalogVersions
@Deprecated public java.util.Collection<CatalogVersion> getAllWriteableCatalogVersions(User user)
Deprecated.since ages - Use CatalogVersionService.getAllWritableCatalogVersions(de.hybris.platform.core.model.security. PrincipalModel ) instead.
-
getAllWriteableCatalogVersions
@Deprecated public java.util.Collection<CatalogVersion> getAllWriteableCatalogVersions(SessionContext ctx, User user)
Deprecated.since ages - Use CatalogVersionService.getAllWritableCatalogVersions(de.hybris.platform.core.model.security. PrincipalModel ) instead.
-
getAllReadableCatalogVersions
@Deprecated public java.util.Collection<CatalogVersion> getAllReadableCatalogVersions(SessionContext ctx, User user)
Deprecated.since ages - Use CatalogVersionService.getAllReadableCatalogVersions(de.hybris.platform.core.model.security. PrincipalModel ) instead.
-
addToCatalogReadersAndWriters
public void addToCatalogReadersAndWriters()
-
getTotalObjectsCount
@Deprecated public int getTotalObjectsCount(Catalog catalog)
Deprecated.since ages - - counts only products, categories, medias and keywords. use XXX instead!
-
getTotalObjectsCount
@Deprecated public int getTotalObjectsCount(CatalogVersion version)
Deprecated.since ages - - counts only products, categories, medias and keywords. use XXX instead!
-
isEditorUser
public boolean isEditorUser(User user)
-
isEditable
public boolean isEditable(Item item, AttributeDescriptor descriptor)
Description copied from interface:Extension.RightsProvider
Checks whether given attribute for given item can be modified. Implement this method at your manager class to deny the modifying access of an attribute for given item instance. It is called before attribute is shown at hmc frontend to decide if the input form is editable.- Specified by:
isEditable
in interfaceExtension.RightsProvider
- Parameters:
item
- the item instance whose attribute will be showndescriptor
- attribute which will be shown- Returns:
- true if the current session user can edit the attribute of this specific item, false otherwise
-
getRestrictedLanguages
@Deprecated public java.util.Set<Language> getRestrictedLanguages(Item item)
Deprecated.since ages - In order to fetch language restrictions follow the following pattern:- fetch catalog version from catalog version aware item: CatalogTypeService.getCatalogVersion(de.hybris.platform.core.model.ItemModel)
- fetch catalog version languages CatalogVersionModel.getLanguages()
If the given item is aProduct
orCategory
then this method will return a set of restricted languages based on the languages in the product's (or category's)CatalogVersion
.- Specified by:
getRestrictedLanguages
in interfaceExtension.RestrictedLanguagesProvider
- Since:
- 3.00 (beta1)
-
createProjectData
public void createProjectData(java.util.Map params, JspContext jspc)
- Overrides:
createProjectData
in classExtension
-
getClassificationIndexString
public java.lang.String getClassificationIndexString(SessionContext ctx, Product prod)
Description copied from class:GeneratedCatalogManager
Generated method - Getter of theProduct.classificationIndexString
attribute.- Specified by:
getClassificationIndexString
in classGeneratedCatalogManager
- Returns:
- the classificationIndexString
-
getAllClassificationIndexString
public java.util.Map<Language,java.lang.String> getAllClassificationIndexString(SessionContext ctx, Product item)
Description copied from class:GeneratedCatalogManager
Generated method - Getter of theProduct.classificationIndexString
attribute.- Specified by:
getAllClassificationIndexString
in classGeneratedCatalogManager
- Returns:
- the localized classificationIndexString
-
getCatalogVersionAttributeQualifier
@Deprecated public java.lang.String getCatalogVersionAttributeQualifier(ComposedType item)
Deprecated.since ages - Use ComposedTypeModel.getCatalogVersionAttribute() instead. Use AttributeDescriptorModel.getQualifier() to fetch qualifier name.made public for use in CatalogHMCExtension
-
setReadableCatalogVersions
@Deprecated public void setReadableCatalogVersions(SessionContext ctx, Principal principal, java.util.List<CatalogVersion> value)
Deprecated.since ages - Use PrincipalModel.setReadableCatalogVersions(List) instead.Description copied from class:GeneratedCatalogManager
Generated method - Setter of thePrincipal.readableCatalogVersions
attribute.- Overrides:
setReadableCatalogVersions
in classGeneratedCatalogManager
value
- the readableCatalogVersions
-
setWritableCatalogVersions
@Deprecated public void setWritableCatalogVersions(SessionContext ctx, Principal principal, java.util.List<CatalogVersion> value)
Deprecated.since ages - UsePrincipalModel.setWritableCatalogVersions(List)
instead.Convenience behavior just likeCatalogVersion.setWritePrincipals(SessionContext, List)
which adds catalog versions to readable versions list as well whenever versions are set as writable versions.- Overrides:
setWritableCatalogVersions
in classGeneratedCatalogManager
value
- the writableCatalogVersions
-
getAllKeywords
@Deprecated public java.util.Map<Language,java.util.List<Keyword>> getAllKeywords(SessionContext ctx, Category item)
Deprecated.since agesGets allKeyword
s linked to given category. The links are managed by the Category2KeywordRelation which is a localized relation, so you get a map holding a list of keywords for each language.- Parameters:
ctx
- session contextitem
- category for which all linked keywords are needed- Returns:
- map of
Language
to list ofKeyword
s holding for each language the list of keywords linked to given category.
-
generateDuplicateQuery
protected java.lang.String generateDuplicateQuery(java.lang.Class jaloClass)
Generated query statement for collecting duplicate versionable items.- Parameters:
jaloClass
- result class- Returns:
- generated query statement
-
getAllowedPrincipals
public java.util.List<Principal> getAllowedPrincipals(SessionContext ctx, Category item)
Generated methods from old GeneratedCatalogManager starts
-
getAllowedPrincipalsCount
public long getAllowedPrincipalsCount(SessionContext ctx, Category item)
-
getAllowedPrincipalsCount
public long getAllowedPrincipalsCount(Category item)
-
setAllowedPrincipalsOnlyForGivenCategory
public void setAllowedPrincipalsOnlyForGivenCategory(SessionContext ctx, Category item, java.util.List<Principal> value)
-
setAllowedPrincipals
public void setAllowedPrincipals(Category item, java.util.List<Principal> value)
-
addToAllowedPrincipals
public void addToAllowedPrincipals(SessionContext ctx, Category item, Principal value)
-
removeFromAllowedPrincipals
public void removeFromAllowedPrincipals(SessionContext ctx, Category item, Principal value)
-
removeFromAllowedPrincipals
public void removeFromAllowedPrincipals(Category item, Principal value)
-
getCatalogVersion
public CatalogVersion getCatalogVersion(SessionContext ctx, Category item)
-
getCatalogVersion
public CatalogVersion getCatalogVersion(Category item)
-
setCatalogVersion
public void setCatalogVersion(Category item, CatalogVersion value)
-
getData_sheet
public java.util.Collection<Media> getData_sheet(SessionContext ctx, Category item)
-
setData_sheet
public void setData_sheet(SessionContext ctx, Category item, java.util.Collection<Media> value)
-
getDescription
public java.lang.String getDescription(SessionContext ctx, Category item)
-
getDescription
public java.lang.String getDescription(Category item)
-
getAllDescription
public java.util.Map<Language,java.lang.String> getAllDescription(SessionContext ctx, Category item)
-
getAllDescription
public java.util.Map<Language,java.lang.String> getAllDescription(Category item)
-
setDescription
public void setDescription(SessionContext ctx, Category item, java.lang.String value)
-
setDescription
public void setDescription(Category item, java.lang.String value)
-
setAllDescription
public void setAllDescription(SessionContext ctx, Category item, java.util.Map<Language,java.lang.String> value)
-
setAllDescription
public void setAllDescription(Category item, java.util.Map<Language,java.lang.String> value)
-
getDetail
public java.util.Collection<Media> getDetail(SessionContext ctx, Category item)
-
setDetail
public void setDetail(SessionContext ctx, Category item, java.util.Collection<Media> value)
-
getKeywords
public java.util.List<Keyword> getKeywords(SessionContext ctx, Category item)
-
getAllKeywords
public java.util.Map<Language,java.util.List<Keyword>> getAllKeywords(Category item)
-
getKeywordsCount
public long getKeywordsCount(SessionContext ctx, Category item, Language lang)
-
getKeywordsCount
public long getKeywordsCount(SessionContext ctx, Category item)
-
getKeywordsCount
public long getKeywordsCount(Category item)
-
setKeywords
public void setKeywords(SessionContext ctx, Category item, java.util.List<Keyword> value)
-
setAllKeywords
public void setAllKeywords(SessionContext ctx, Category item, java.util.Map<Language,java.util.List<Keyword>> value)
-
setAllKeywords
public void setAllKeywords(Category item, java.util.Map<Language,java.util.List<Keyword>> value)
-
addToKeywords
public void addToKeywords(SessionContext ctx, Category item, Language lang, Keyword value)
-
removeFromKeywords
public void removeFromKeywords(SessionContext ctx, Category item, Language lang, Keyword value)
-
getLogo
public java.util.Collection<Media> getLogo(SessionContext ctx, Category item)
-
setLogo
public void setLogo(SessionContext ctx, Category item, java.util.Collection<Media> value)
-
getNormal
public java.util.Collection<Media> getNormal(SessionContext ctx, Category item)
-
setNormal
public void setNormal(SessionContext ctx, Category item, java.util.Collection<Media> value)
-
getOrder
public java.lang.Integer getOrder(SessionContext ctx, Category item)
-
getOrder
public java.lang.Integer getOrder(Category item)
-
getOrderAsPrimitive
public int getOrderAsPrimitive(SessionContext ctx, Category item)
-
getOrderAsPrimitive
public int getOrderAsPrimitive(Category item)
-
setOrder
public void setOrder(SessionContext ctx, Category item, java.lang.Integer value)
-
setOrder
public void setOrder(Category item, java.lang.Integer value)
-
setOrder
public void setOrder(SessionContext ctx, Category item, int value)
-
setOrder
public void setOrder(Category item, int value)
-
getOthers
public java.util.Collection<Media> getOthers(SessionContext ctx, Category item)
-
setOthers
public void setOthers(SessionContext ctx, Category item, java.util.Collection<Media> value)
-
getThumbnails
public java.util.Collection<Media> getThumbnails(SessionContext ctx, Category item)
-
setThumbnails
public void setThumbnails(SessionContext ctx, Category item, java.util.Collection<Media> value)
-
isSyncInProgress
public static java.lang.Boolean isSyncInProgress(SessionContext ctx)
Generated methods from old GeneratedCatalogManager ends
-
isSyncInProgressAsPrimitive
public static boolean isSyncInProgressAsPrimitive(SessionContext ctx)
-
getDefaultRootTypes
public java.util.List<ComposedType> getDefaultRootTypes()
Check all subtypes of Item (recursively) searching for catalog.sync.default.root.type custom-property.
-
createEssentialData
public void createEssentialData(java.util.Map params, JspContext jspc) throws java.lang.Exception
- Overrides:
createEssentialData
in classExtension
- Throws:
java.lang.Exception
-
beforeItemCreation
public void beforeItemCreation(SessionContext ctx, ComposedType type, Item.ItemAttributeMap attributes) throws JaloBusinessException
Description copied from class:Manager
This method will be called before an item is created BUT AFTER the default values of this type are assigned- Overrides:
beforeItemCreation
in classManager
- Parameters:
ctx
- the currency session contexttype
- the type of the item which will be createdattributes
- the attribute values to be used for creation- Throws:
JaloBusinessException
- See Also:
This method does nothing and may be overridden. CAUTION: This method will be called inside a transaction !!!
-
-