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.StringDEFAULT_CATALOG_IDstatic java.lang.StringDEFAULT_CATALOG_NAMEstatic java.lang.StringDEFAULT_COMPANY_IDstatic java.lang.StringDEFAULT_COMPANY_NAMEstatic java.lang.StringMEDIA_CODE_DELIMITERstatic java.lang.StringOFFLINE_VERSIONstatic java.lang.StringONLINE_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 voidaddToAllowedPrincipals(Category item, Principal value)voidaddToAllowedPrincipals(SessionContext ctx, Category item, Principal value)voidaddToCatalogReadersAndWriters()voidaddToKeywords(Category item, Language lang, Keyword value)voidaddToKeywords(SessionContext ctx, Category item, Language lang, Keyword value)protected voidassignCatalogVersions(javax.servlet.http.HttpServletRequest request, JaloSession jaloSession, java.util.Collection<CatalogVersion> versions, boolean previewMode)voidbeforeItemCreation(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 assignedbooleancanRead(SessionContext ctx, User sessionUser, CatalogVersion catalogVersion)booleancanSync(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.booleancanWrite(SessionContext ctx, User sessionUser, CatalogVersion catalogVersion)protected voidcheckBeforeItemRemoval(SessionContext ctx, Item item)Superclass method overridden to avoid calls to ejb layer.protected voidcheckCatalogItemTypeAttributeDescriptor(ComposedType comptyp, AttributeDescriptor atrdesc, boolean forVersion)Checks attribute descriptors.protected java.util.Collection<PreviewTicket>collectPreviewTicketVersions(javax.servlet.http.HttpServletRequest request, JaloSession jaloSession)voidconfigureDefaultSynchronization(JspContext jspc)SyncItemJobconfigureSynchronizationJob(java.lang.String code, Catalog catalog, java.lang.String sourceVersion, java.lang.String targetVersion, boolean createNewItems, boolean removeMissingItems)Configures a publication rule (asSyncItemJobitem) between a specified source catalog version and target catalog version with a given catalog.AgreementcreateAgreement(CatalogVersion catalogVersion, java.lang.String id, java.util.Date startDate, java.util.Date endDate)Deprecated.since ages - Use ModelService to create new AgreementModels.AgreementcreateAgreement(java.lang.String id, java.util.Date startDate, java.util.Date endDate)Deprecated.since ages - Use ModelService to create new AgreementModels.protected ImpExMediacreateBatchMedia(java.lang.String fileName, java.lang.String mime, java.io.InputStream istr)CatalogcreateCatalog(java.lang.String id)Deprecated.since ages - Use modelService to create new catalog.CatalogcreateCatalog(java.lang.String id, java.lang.String name, Company supplier)Deprecated.since ages - Use modelService to create new catalog.CategorycreateCatalogCategory(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.voidcreateCatalogSyncMediaFolder()CatalogVersioncreateCatalogVersion(Catalog catalog, java.lang.String version, Language importLanguage)Deprecated.since ages - Use modelService to create new catalogVersion.CategoryCatalogVersionDifferencecreateCategoryCatalogVersionDifference(CatalogVersion sourceVersion, CatalogVersion targetVersion, CronJob cronJob, Category srcCategory, Category targetCategory, EnumerationValue mode)Deprecated.since agesClassificationSystemcreateClassificationSystem(java.lang.String id)Creates a new ClassificationSystem with the given id.ClassificationSystemVersioncreateClassificationSystemVersion(ClassificationSystem system, java.lang.String version, Language importLanguage)ClassificationSystemVersioncreateClassificationSystemVersion(ClassificationSystem system, java.lang.String version, java.util.Collection<Language> languages)CompanycreateCompany(java.lang.String uid)Deprecated.since ages - Use ModelService to create new CompanyModel.booleancreateDefaultCatalog(JspContext jspc)CompareCatalogVersionsCronJobcreateDefaultCompareCatalogVersionCronJob(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)voidcreateEssentialData(java.util.Map params, JspContext jspc)KeywordcreateKeyword(CatalogVersion catalogVersion, java.lang.String keyword, Language lang)Creates an newKeywordfor the givenCatalogVersionand keyword value.PreviewTicketcreatePreviewTicket(CatalogVersion version)PreviewTicketcreatePreviewTicket(CatalogVersion version, User createdBy, java.util.Date validTo)ProductCatalogVersionDifferencecreateProductCatalogVersionDifference(CatalogVersion sourceVersion, CatalogVersion targetVersion, CronJob cronJob, Product srcProduct, Product targetProduct, EnumerationValue mode)ProductReferencecreateProductReference(java.lang.String qualifier, Product source, Product target, java.lang.Integer quantity)Deprecated.since ages - Use ModelService to create new ProductReferences.voidcreateProjectData(java.util.Map params, JspContext jspc)voidcreateSavedQueries(JspContext jspc)ItemSyncTimestampcreateSyncTimestamp(SyncItemJob job, Item source, PK copy)ItemSyncTimestampcreateSyncTimestamp(SyncItemJob job, Item source, Item copy)voidcreateUsersAndGroupsAndRights()voiddoPostRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)voiddoPreRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)protected java.util.CollectionfilterByURL(javax.servlet.http.HttpServletRequest request, java.util.Collection allActiveVersions)protected CategoryfindInCatalogVersion(CatalogVersion ver, Category original)Deprecated.since agesprotected MediafindInCatalogVersion(CatalogVersion ver, Media original)protected ProductfindInCatalogVersion(CatalogVersion ver, Product original)protected java.lang.StringgenerateDuplicateQuery(java.lang.Class jaloClass)Generated query statement for collecting duplicate versionable items.java.util.Collection<Category>getAllCatalogCategories(CatalogVersion catalogVersion)Deprecated.since ages - useCategoryServiceinstead.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.classificationIndexStringattribute.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 startslonggetAllowedPrincipalsCount(Category item)longgetAllowedPrincipalsCount(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 ImpExMediagetBatchMedia(java.lang.String fileName, java.lang.String fileExt)CataloggetCatalog(Company supplier, java.lang.String catalogID)Deprecated.since ages - catalogId is unique, so it is sufficient to search over catalogId only.CataloggetCatalog(java.lang.String catalogID)Deprecated.since ages - Use CatalogService.getCatalogForId(String) instead.CataloggetCatalog(java.lang.String supplierUID, java.lang.String catalogID)Deprecated.since ages - catalogId is unique, so it is sufficient to search over catalogId only.CategorygetCatalogCategory(CatalogVersion catalogVersion, java.lang.String code)Deprecated.since ages - useCategoryService.getCategoryForCode(de.hybris.platform.catalog.model.CatalogVersionModel, String)instead.java.lang.StringgetCatalogItemID(Item catalogItem)Returns the ID of a catalog item.MediaFoldergetCatalogSyncMediaFolder()CatalogVersiongetCatalogVersion(Category item)CatalogVersiongetCatalogVersion(Item item)Deprecated.since ages - Use CatalogTypeService.getCatalogVersion(de.hybris.platform.core.model.ItemModel) instead.CatalogVersiongetCatalogVersion(SessionContext ctx, Category item)CatalogVersiongetCatalogVersion(SessionContext ctx, Item item)Deprecated.since ages - Use CatalogTypeService.getCatalogVersion(de.hybris.platform.core.model.ItemModel) instead.AttributeDescriptorgetCatalogVersionAttribute(SessionContext ctx, ComposedType type)Generated method - Getter of theComposedType.catalogVersionAttributeattribute.java.lang.StringgetCatalogVersionAttributeQualifier(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)CategoryManagergetCategoryManager()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.ClassificationAttributegetClassificationAttribute(java.lang.String code, ClassificationSystemVersion version)Deprecated.since ages - please useItem.getAttribute(String)insteadClassificationAttributeValuegetClassificationAttributeValue(java.lang.String code, ClassificationSystemVersion version)Deprecated.since ages - please useClassificationSystemVersion.getClassificationAttributeValue(String)insteadClassificationClassgetClassificationClass(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.StringgetClassificationIndexString(SessionContext ctx, Product prod)Generated method - Getter of theProduct.classificationIndexStringattribute.ClassificationSystemgetClassificationSystem(java.lang.String classificationSystemId)Returns the matchingClassificationSystemfor the specified id.CompanygetCompanyByUID(java.lang.String uid)Deprecated.since ages - Use UserService.getUserGroupForUID(uid, CompanyModel.class) instead.ItemgetCounterpartItem(Item sourceItem, CatalogVersion targetVersion)Deprecated.since ages - Use CatalogTypeService.getCatalogVersionAwareModel(CatalogVersionModel, String, Map) instead.ItemgetCounterpartItem(SessionContext ctx, Item sourceItem, CatalogVersion targetVersion)Deprecated.since ages - Use CatalogTypeService.getCatalogVersionAwareModel(CatalogVersionModel, String, Map) instead.java.lang.StringgetCreatorParameterDefault(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)CataloggetDefaultCatalog()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.StringgetDescription(Category item)java.lang.StringgetDescription(SessionContext ctx, Category item)java.util.Collection<Media>getDetail(Category item)java.util.Collection<Media>getDetail(SessionContext ctx, Category item)static java.lang.ObjectgetFirstOne(java.util.Collection coll)Tool method which returns just the first element of a collection.static CatalogManagergetInstance()KeywordgetKeyword(CatalogVersion catalogVersion, java.lang.String keywordValue)Returns the Keyword for the specified keyword value andCatalogVersion.KeywordgetKeyword(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)longgetKeywordsCount(Category item)longgetKeywordsCount(Category item, Language lang)longgetKeywordsCount(SessionContext ctx, Category item)longgetKeywordsCount(SessionContext ctx, Category item, Language lang)LanguagegetLanguageIfExists(java.lang.String isoCode)Deprecated.since ages - Use CommonI18NService.getLanguage(String) instead.java.util.DategetLastSyncModifiedTime(SyncItemJob job, Item src, Item copy)java.util.Collection<Media>getLogo(Category item)java.util.Collection<Media>getLogo(SessionContext ctx, Category item)java.lang.StringgetMediaCode(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 ItemgetOldest(java.util.Collection items)CompareCatalogVersionsJobgetOrCreateDefaultCompareCatalogVersionJob()RemoveCatalogVersionJobgetOrCreateDefaultRemoveCatalogVersionJob()java.lang.IntegergetOrder(Category item)java.lang.IntegergetOrder(SessionContext ctx, Category item)intgetOrderAsPrimitive(Category item)intgetOrderAsPrimitive(SessionContext ctx, Category item)java.util.Collection<Media>getOthers(Category item)java.util.Collection<Media>getOthers(SessionContext ctx, Category item)ProductgetProductByCatalogVersion(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.synchronizationSourcesattribute.java.util.List<ItemSyncTimestamp>getSynchronizedCopies(SessionContext ctx, Item source)Implements getting all copies of an extensible item.ItemgetSynchronizedCopy(Item source, SyncItemJob sij)SyncItemJobgetSyncJob(CatalogVersion source, CatalogVersion target)SyncItemJobgetSyncJob(CatalogVersion source, CatalogVersion target, java.lang.String qualifier)SyncItemJobgetSyncJobFromSource(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)intgetTotalObjectsCount(Catalog catalog)Deprecated.since ages - - counts only products, categories, medias and keywords.intgetTotalObjectsCount(CatalogVersion version)Deprecated.since ages - - counts only products, categories, medias and keywords.java.lang.StringgetTypeQualifier(SessionContext ctx, Address address)java.lang.StringgetTypeQualifier(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.uniqueKeyAttributesattribute.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)VariantsManagergetVariantsManager()Deprecated.since ages - Internal legacy migration method forVariantsManager.getInstance()onlyprotected java.io.InputStreamgetZipEntryInputStream(java.util.zip.ZipFile zipfile, java.lang.String entryName)booleanhasUniqueKeyAttributes(ComposedType comptyp)Deprecated.since ages - Check ComposedTypeModel.getUniqueKeyAttributes() instead.booleanisActivatingPreviewMode(JaloSession jalosession)Deprecated.since ages - Use SessionService.getAttribute(CatalogConstants.PREVIEW_MODE_ACTIVATION) in order to read the 'preview mode' flag value.booleanisActivatingPreviewMode(SessionContext ctx)Deprecated.since ages - Use SessionService.getAttribute(CatalogConstants.PREVIEW_MODE_ACTIVATION) in order to read the 'preview mode' flag value.booleanisCatalogItem(Item item)Deprecated.since ages - Use CatalogTypeService.isCatalogVersionAwareModel(de.hybris.platform.core.model.ItemModel) instead.booleanisCatalogItem(ComposedType comptyp)Deprecated.since ages - Use CatalogTypeService.isCatalogVersionAwareModel(de.hybris.platform.core.model.ItemModel) instead.booleanisCatalogItem(java.lang.Class itemclass)Deprecated.since ages - please useisCatalogItem(ComposedType)insteadjava.lang.BooleanisCatalogItemType(SessionContext ctx, ComposedType item)Deprecated.since ages - UseisCatalogItem(ComposedType)instead.booleanisEditable(Item item, AttributeDescriptor descriptor)Checks whether given attribute for given item can be modified.booleanisEditorUser(User user)static java.lang.BooleanisSyncInProgress(SessionContext ctx)Generated methods from old GeneratedCatalogManager endsstatic booleanisSyncInProgressAsPrimitive(SessionContext ctx)static booleanmustSetCatalogVersions(JaloSession jaloSession, javax.servlet.http.HttpServletRequest req)protected SyncItemJobnewDefaultSyncJobInstance(java.util.Map attributes)voidnotifyInitializationEnd(java.util.Map<java.lang.String,java.lang.String> params, JspContext ctx)protected voidnotifyItemRemoval(SessionContext ctx, Item item)Superclass method overridden to avoid calls to ejb layer except forProductandProductFeatureinstances.voidremoveFromAllowedPrincipals(Category item, Principal value)voidremoveFromAllowedPrincipals(SessionContext ctx, Category item, Principal value)voidremoveFromKeywords(Category item, Language lang, Keyword value)voidremoveFromKeywords(SessionContext ctx, Category item, Language lang, Keyword value)protected voidremoveProductReferencesFor(SessionContext ctx, Product prod)protected voidremoveSyncTimestampsFor(SessionContext ctx, CatalogVersion catver)protected voidremoveSyncTimestampsFor(SessionContext ctx, Item forItem)voidsetAllDescription(Category item, java.util.Map<Language,java.lang.String> value)voidsetAllDescription(SessionContext ctx, Category item, java.util.Map<Language,java.lang.String> value)voidsetAllKeywords(Category item, java.util.Map<Language,java.util.List<Keyword>> value)voidsetAllKeywords(SessionContext ctx, Category item, java.util.Map<Language,java.util.List<Keyword>> value)voidsetAllowedPrincipals(Category item, java.util.List<Principal> value)voidsetAllowedPrincipals(SessionContext ctx, Category cat, java.util.List<Principal> newOnes)Deprecated.since ages - useCategoryService.setAllowedPrincipalsForCategory(de.hybris.platform.category.model.CategoryModel, List)instead.voidsetAllowedPrincipalsOnlyForGivenCategory(SessionContext ctx, Category item, java.util.List<Principal> value)voidsetApprovalStatus(Category cat, EnumerationValue status, boolean recursively, boolean asTransaction)Deprecated.since agesvoidsetCatalogItemType(SessionContext ctx, ComposedType item, java.lang.Boolean param)Deprecated.since ages - Use ComposedTypeModel.setCatalogItemType(Boolean) instead.voidsetCatalogVersion(Category item, CatalogVersion value)voidsetCatalogVersion(SessionContext ctx, Category cat, CatalogVersion catver)Deprecated.since ages - Use CategoryModel.setCatalogVersion(de.hybris.platform.catalog.model.CatalogVersionModel) instead.voidsetCatalogVersion(SessionContext ctx, Media media, CatalogVersion version)Deprecated.since ages - Use MediaModel.setCatalogVersion(de.hybris.platform.catalog.model.CatalogVersionModel) instead.voidsetCatalogVersion(SessionContext ctx, Product product, CatalogVersion version)Deprecated.since ages - Use ProductModel.setCatalogVersion(de.hybris.platform.catalog.model.CatalogVersionModel) instead.voidsetCatalogVersionAttribute(SessionContext ctx, ComposedType item, AttributeDescriptor attrdesc)Generated method - Setter of theComposedType.catalogVersionAttributeattribute.voidsetData_sheet(Category item, java.util.Collection<Media> value)voidsetData_sheet(SessionContext ctx, Category item, java.util.Collection<Media> value)voidsetDescription(Category item, java.lang.String value)voidsetDescription(SessionContext ctx, Category item, java.lang.String value)voidsetDetail(Category item, java.util.Collection<Media> value)voidsetDetail(SessionContext ctx, Category item, java.util.Collection<Media> value)voidsetKeywords(Category item, java.util.List<Keyword> value)voidsetKeywords(SessionContext ctx, Category item, java.util.List<Keyword> value)voidsetLogo(Category item, java.util.Collection<Media> value)voidsetLogo(SessionContext ctx, Category item, java.util.Collection<Media> value)voidsetNormal(Category item, java.util.Collection<Media> value)voidsetNormal(SessionContext ctx, Category item, java.util.Collection<Media> value)voidsetOrder(Category item, int value)voidsetOrder(Category item, java.lang.Integer value)voidsetOrder(SessionContext ctx, Category item, int value)voidsetOrder(SessionContext ctx, Category item, java.lang.Integer value)voidsetOthers(Category item, java.util.Collection<Media> value)voidsetOthers(SessionContext ctx, Category item, java.util.Collection<Media> value)voidsetReadableCatalogVersions(SessionContext ctx, Principal principal, java.util.List<CatalogVersion> value)Deprecated.since ages - Use PrincipalModel.setReadableCatalogVersions(List) instead.voidsetSessionCatalogVersions(SessionContext ctx, java.util.Collection<CatalogVersion> versions)Deprecated.since ages - Use CatalogVersionService.setSessionCatalogVersions(Set) instead.voidsetSessionCatalogVersions(java.util.Collection<CatalogVersion> versions)Deprecated.since ages - Use CatalogVersionService.setSessionCatalogVersions(Set) instead.voidsetThumbnails(Category item, java.util.Collection<Media> value)voidsetThumbnails(SessionContext ctx, Category item, java.util.Collection<Media> value)voidsetUniqueKeyAttributes(SessionContext ctx, ComposedType item, java.util.Collection<AttributeDescriptor> value)Generated method - Setter of theComposedType.uniqueKeyAttributesattribute.voidsetUntypedFeatures(SessionContext ctx, Product product, java.util.List<ProductFeature> features)voidsetWritableCatalogVersions(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:
checkBeforeItemRemovalin 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 forProductandProductFeatureinstances.- Overrides:
notifyItemRemovalin 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_RECURSIVELYis set to true the given principal list is only set to the given category.- Parameters:
ctx- theSessionContextcat- 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 newKeywordfor the givenCatalogVersionand keyword value.- Parameters:
catalogVersion- TheCatalogVersion, the keyword will belong to.keyword- The keyword value.- Returns:
- The new
Keywordfor 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- TheCatalogVersiontheKeywordbelongs to.keywordValue- The value of the searchedKeyword.- Returns:
- The matching
Keywordornullif 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- TheCatalogVersiontheKeywordbelongs to.keywordValue- The value of the searchedKeyword.- Returns:
- The matching
Keywordornullif 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 newCatalogVersionwith the given version string and import language for the specifiedCatalog.- Parameters:
catalog- TheCatalogfor which the new version is created. This value must not benull.version- The version string. This value can not benull.importLanguage- The initalLanguageof 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 newAgreementwith 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 newAgreementfor the specifiedCatalogVersionwith the given id, start- and enddate.- Parameters:
catalogVersion- TheCatalogVersionthis 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 newProductReferencefor 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 matchingCatalogfor the specified supplier and ID.- Parameters:
catalogID- The id of the searchedCatalog.- Returns:
- The matching
Catalogornullif there is no matchingCatalog.
-
getClassificationSystem
public ClassificationSystem getClassificationSystem(java.lang.String classificationSystemId)
Returns the matchingClassificationSystemfor the specified id.- Parameters:
classificationSystemId- The id of the searchedClassificationSystem.- Returns:
- The matching
ClassificationSystemornullif 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 theCatalogwith the provided id of Supplier specified by his UID. If either the is noCompanywith the provided UID or noCatalogfor the combination of catalog id and suppliernullis returned.- Parameters:
supplierUID- The UID of the supplier.catalogID- The ID of the searchedCatalog.- Returns:
- The found
Catalogornullif noCatalogmatches 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 matchingCatalogfor the specified supplier and catalogID.- Parameters:
supplier- The supplier of the searched catalog.catalogID- The id of the searchedCatalog.- Returns:
- The matching
Catalogornullif 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 matchingCatalogCategoryfor the specifiedCatalogVersionand catalog code.- Parameters:
catalogVersion- TheCatalogVersiontheCatalogCategoryshould belong to.code- The code of the searched category.- Returns:
- The matching
CatalogCategoryor null, if no matchingCatalogCategoryexists.
-
getAllCatalogCategories
@Deprecated public java.util.Collection<Category> getAllCatalogCategories(CatalogVersion catalogVersion)
Deprecated.since ages - useCategoryServiceinstead.Returns a collection of all CatalogCategories for the specifiedCatalogVersion- Parameters:
catalogVersion- TheCatalogVersiontheCatalogCategoryshould 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 theCompanywith the specified UID. If noCompanycan be found with the specified UID,nullis returned.- Parameters:
uid- The UID of the searchedCompany.- Returns:
- The
Companywith the specified UID ornullif there exists noCompanywith 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 newCompanywith 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.nullis not a valid value.code- The unique code of this category. (Unique within thisCatalogVersion).nullis not a valid value.name- The localized name of this category. TheLanguageof the current session is used to set this localized value.description- The localized description of this category. TheLanguageof 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 allKeywords which are associated with theCatalogCategory.parent- The parentCatalogCategoryinstance 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:
setCatalogVersionin classGeneratedCatalogManagerversion- 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:
setCatalogVersionin classGeneratedCatalogManagerversion- 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:
notifyInitializationEndin 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.IOExceptionJaloBusinessException
-
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 (asSyncItemJobitem) 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:ExtensionOverride this method to provide default value for the given creator parameter.- Overrides:
getCreatorParameterDefaultin classExtension- Parameters:
param- the name of the parameter- Returns:
- default value for the given creator parameter; use
nullwhen the parameter should have no default value
-
getCreatorParameterPossibleValues
public java.util.List<java.lang.String> getCreatorParameterPossibleValues(java.lang.String param)
Description copied from class:ExtensionOverride this method to provide a list of all possible values for the given creator parameter. If notnullthe list of these values will be shown to the user of system creator and no other values will be possible to set.- Overrides:
getCreatorParameterPossibleValuesin classExtension- Parameters:
param- the name of the parameter- Returns:
- list of all possible values for the given creator parameter; use
nullwhen 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- iftrueproducts of all subcategories are changed tooasTransaction- iftruethe 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:
getSynchronizedCopiesin classGeneratedCatalogManager- Returns:
- the synchronizedCopies
-
getSynchronizationSources
public java.util.List<ItemSyncTimestamp> getSynchronizationSources(SessionContext ctx, Item target)
Description copied from class:GeneratedCatalogManagerGenerated method - Getter of theItem.synchronizationSourcesattribute.- Specified by:
getSynchronizationSourcesin 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,CategoryandMedia. Optionally any item which jalo class implementsCatalogItemis 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,CategoryandMedia. Optionally any item which jalo class implementsCatalogItemis 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.CATALOGITEMTYPEflag are considered as catalog contained types but also all of their subtypes (unless the flag has been explicitely deactivated).- Overrides:
isCatalogItemTypein 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,CategoryandMedia. Optionally any class which implementsCatalogItemis 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:GeneratedCatalogManagerGenerated method - Setter of theComposedType.catalogItemTypeattribute.- Overrides:
setCatalogItemTypein classGeneratedCatalogManagerparam- 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 keyattribute is required to find this item.Please note that this method does not check if the source item has been synchronized and a
ItemSyncTimestampexists. 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
nullif 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 keyattribute is required to find this item.Please note that this method does not check if the source item has been synchronized and a
ItemSyncTimestampexists. 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
nullif 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:GeneratedCatalogManagerGenerated method - Getter of theComposedType.catalogVersionAttributeattribute.- Specified by:
getCatalogVersionAttributein classGeneratedCatalogManager- Returns:
- the catalogVersionAttribute
-
setCatalogVersionAttribute
public void setCatalogVersionAttribute(SessionContext ctx, ComposedType item, AttributeDescriptor attrdesc)
Description copied from class:GeneratedCatalogManagerGenerated method - Setter of theComposedType.catalogVersionAttributeattribute.- Specified by:
setCatalogVersionAttributein classGeneratedCatalogManagerattrdesc- the catalogVersionAttribute
-
getUniqueKeyAttributes
public java.util.Collection<AttributeDescriptor> getUniqueKeyAttributes(ComposedType item)
Description copied from class:GeneratedCatalogManagerGenerated method - Getter of theComposedType.uniqueKeyAttributesattribute.- Overrides:
getUniqueKeyAttributesin 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:GeneratedCatalogManagerGenerated method - Getter of theComposedType.uniqueKeyAttributesattribute.- Specified by:
getUniqueKeyAttributesin 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:GeneratedCatalogManagerGenerated method - Setter of theComposedType.uniqueKeyAttributesattribute.- Specified by:
setUniqueKeyAttributesin classGeneratedCatalogManagervalue- 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:
doPreRequestin interfaceWebRequestInterceptor
-
doPostRequest
public void doPostRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)- Specified by:
doPostRequestin 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.RightsProviderChecks 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:
isEditablein 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 aProductorCategorythen this method will return a set of restricted languages based on the languages in the product's (or category's)CatalogVersion.- Specified by:
getRestrictedLanguagesin interfaceExtension.RestrictedLanguagesProvider- Since:
- 3.00 (beta1)
-
createProjectData
public void createProjectData(java.util.Map params, JspContext jspc)- Overrides:
createProjectDatain classExtension
-
getClassificationIndexString
public java.lang.String getClassificationIndexString(SessionContext ctx, Product prod)
Description copied from class:GeneratedCatalogManagerGenerated method - Getter of theProduct.classificationIndexStringattribute.- Specified by:
getClassificationIndexStringin classGeneratedCatalogManager- Returns:
- the classificationIndexString
-
getAllClassificationIndexString
public java.util.Map<Language,java.lang.String> getAllClassificationIndexString(SessionContext ctx, Product item)
Description copied from class:GeneratedCatalogManagerGenerated method - Getter of theProduct.classificationIndexStringattribute.- Specified by:
getAllClassificationIndexStringin 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:GeneratedCatalogManagerGenerated method - Setter of thePrincipal.readableCatalogVersionsattribute.- Overrides:
setReadableCatalogVersionsin classGeneratedCatalogManagervalue- 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:
setWritableCatalogVersionsin classGeneratedCatalogManagervalue- the writableCatalogVersions
-
getAllKeywords
@Deprecated public java.util.Map<Language,java.util.List<Keyword>> getAllKeywords(SessionContext ctx, Category item)
Deprecated.since agesGets allKeywords 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
Languageto list ofKeywords 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:
createEssentialDatain classExtension- Throws:
java.lang.Exception
-
beforeItemCreation
public void beforeItemCreation(SessionContext ctx, ComposedType type, Item.ItemAttributeMap attributes) throws JaloBusinessException
Description copied from class:ManagerThis method will be called before an item is created BUT AFTER the default values of this type are assigned- Overrides:
beforeItemCreationin 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 !!!
-
-