Class CatalogManager
- All Implemented Interfaces:
Extension.RestrictedLanguagesProvider,Extension.RightsProvider,ItemLifecycleListener,WebRequestInterceptor,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.jalo.extension.Extension
Extension.RestrictedLanguagesProvider, Extension.RightsProviderNested classes/interfaces inherited from class de.hybris.platform.jalo.Manager
Manager.GenericManagerSingletonCreator, Manager.ManagerSingletonCreator -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToAllowedPrincipals(Category item, Principal value) voidaddToAllowedPrincipals(SessionContext ctx, Category item, Principal value) voidvoidaddToKeywords(Category item, Language lang, Keyword value) voidaddToKeywords(SessionContext ctx, Category item, Language lang, Keyword value) protected voidassignCatalogVersions(javax.servlet.http.HttpServletRequest request, JaloSession jaloSession, 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 Collection<PreviewTicket>collectPreviewTicketVersions(javax.servlet.http.HttpServletRequest request, JaloSession jaloSession) voidconfigureSynchronizationJob(String code, Catalog catalog, String sourceVersion, 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.createAgreement(CatalogVersion catalogVersion, String id, Date startDate, Date endDate) Deprecated.since ages - Use ModelService to create new AgreementModels.createAgreement(String id, Date startDate, Date endDate) Deprecated.since ages - Use ModelService to create new AgreementModels.protected ImpExMediacreateBatchMedia(String fileName, String mime, InputStream istr) createCatalog(String id) Deprecated.since ages - Use modelService to create new catalog.createCatalog(String id, String name, Company supplier) Deprecated.since ages - Use modelService to create new catalog.createCatalogCategory(CatalogVersion catalogVersion, String code, String name, String description, Integer order, Collection keywords, Category parent) Deprecated.since ages - Use ModelService to create new CategoryModel.voidcreateCatalogVersion(Catalog catalog, String version, Language importLanguage) Deprecated.since ages - Use modelService to create new catalogVersion.createCategoryCatalogVersionDifference(CatalogVersion sourceVersion, CatalogVersion targetVersion, CronJob cronJob, Category srcCategory, Category targetCategory, EnumerationValue mode) Deprecated.since agesCreates a new ClassificationSystem with the given id.createClassificationSystemVersion(ClassificationSystem system, String version, Language importLanguage) createClassificationSystemVersion(ClassificationSystem system, String version, Collection<Language> languages) createCompany(String uid) Deprecated.since ages - Use ModelService to create new CompanyModel.booleancreateDefaultCompareCatalogVersionCronJob(CatalogVersion source, CatalogVersion target, Customer priceCompareCustomer, Double tolerance, Boolean searchMissingProducts, Boolean searchMissingCategories, Boolean searchNewProducts, Boolean searchNewCategories, Boolean searchPriceDiffs, Boolean overwriteStatus) voidcreateEssentialData(Map params, JspContext jspc) createKeyword(CatalogVersion catalogVersion, String keyword, Language lang) Creates an newKeywordfor the givenCatalogVersionand keyword value.createPreviewTicket(CatalogVersion version) createPreviewTicket(CatalogVersion version, User createdBy, Date validTo) createProductCatalogVersionDifference(CatalogVersion sourceVersion, CatalogVersion targetVersion, CronJob cronJob, Product srcProduct, Product targetProduct, EnumerationValue mode) createProductReference(String qualifier, Product source, Product target, Integer quantity) Deprecated.since ages - Use ModelService to create new ProductReferences.voidcreateProjectData(Map params, JspContext jspc) voidcreateSavedQueries(JspContext jspc) createSyncTimestamp(SyncItemJob job, Item source, PK copy) createSyncTimestamp(SyncItemJob job, Item source, Item copy) voidvoiddoPostRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) voiddoPreRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected CollectionfilterByURL(javax.servlet.http.HttpServletRequest request, Collection allActiveVersions) protected CategoryfindInCatalogVersion(CatalogVersion ver, Category original) Deprecated.since agesprotected MediafindInCatalogVersion(CatalogVersion ver, Media original) protected ProductfindInCatalogVersion(CatalogVersion ver, Product original) protected StringgenerateDuplicateQuery(Class jaloClass) Generated query statement for collecting duplicate versionable items.getAllCatalogCategories(CatalogVersion catalogVersion) Deprecated.since ages - useCategoryServiceinstead.Deprecated.since ages - Use CatalogVersionService.getAllCatalogVersionAwareTypes(true) instead.Deprecated.since ages - Use CatalogTypeService.getAllCatalogVersionAwareTypes(false) instead.Deprecated.since ages - Use CatalogService.getAllCatalogs() instead.Deprecated.since ages - Use CatalogVersionService.getAllCatalogVersions() instead.getAllClassificationIndexString(SessionContext ctx, Product item) Generated method - Getter of theProduct.classificationIndexStringattribute.Returns all classification systems within the system.Deprecated.since ages - Use ClassificationSystemVersionDao.findAllClassificationSystemVersions() instead.getAllDescription(Category item) getAllDescription(SessionContext ctx, Category item) getAllKeywords(Category item) getAllKeywords(SessionContext ctx, Category item) Deprecated.since agesgetAllowedPrincipals(Category item) getAllowedPrincipals(SessionContext ctx, Category item) Generated methods from old GeneratedCatalogManager startslonglonggetAllowedPrincipalsCount(SessionContext ctx, Category item) getAllReadableCatalogVersions(SessionContext ctx, User user) Deprecated.since ages - Use CatalogVersionService.getAllReadableCatalogVersions(de.hybris.platform.core.model.security.getAllWriteableCatalogVersions(SessionContext ctx, User user) Deprecated.since ages - Use CatalogVersionService.getAllWritableCatalogVersions(de.hybris.platform.core.model.security.Deprecated.since ages - Use CatalogVersionService.getAllWritableCatalogVersions(de.hybris.platform.core.model.security.getAvailableCatalogVersions(JaloSession jalosession) Deprecated.since ages - Use CatalogVersionService.getAllReadableCatalogVersions(PrincipalModel currentUser) instead.protected ImpExMediagetBatchMedia(String fileName, String fileExt) getCatalog(Company supplier, String catalogID) Deprecated.since ages - catalogId is unique, so it is sufficient to search over catalogId only.getCatalog(String catalogID) Deprecated.since ages - Use CatalogService.getCatalogForId(String) instead.getCatalog(String supplierUID, String catalogID) Deprecated.since ages - catalogId is unique, so it is sufficient to search over catalogId only.getCatalogCategory(CatalogVersion catalogVersion, String code) Deprecated.since ages - useCategoryService.getCategoryForCode(de.hybris.platform.catalog.model.CatalogVersionModel, String)instead.getCatalogItemID(Item catalogItem) Returns the ID of a catalog item.getCatalogVersion(Category item) getCatalogVersion(Item item) Deprecated.since ages - Use CatalogTypeService.getCatalogVersion(de.hybris.platform.core.model.ItemModel) instead.getCatalogVersion(SessionContext ctx, Category item) getCatalogVersion(SessionContext ctx, Item item) Deprecated.since ages - Use CatalogTypeService.getCatalogVersion(de.hybris.platform.core.model.ItemModel) instead.getCatalogVersionAttribute(SessionContext ctx, ComposedType type) Generated method - Getter of theComposedType.catalogVersionAttributeattribute.Deprecated.since ages - Use ComposedTypeModel.getCatalogVersionAttribute() instead.getCategoriesByProduct(CatalogVersion catver, Product product) getCategoriesByProduct(CatalogVersion catver, Product product, SessionContext ctx) Deprecated.since ages - Internal legacy migration method forCategoryManager.getInstance()onlygetCategoryProductLinks(CatalogVersion catalogVersion, Category category, Product product) Deprecated.since agesgetCategoryProductsByState(SessionContext ctx, Category category, boolean offline) Deprecated.since ages - useProductService.getOfflineProductsForCategory(de.hybris.platform.category.model.CategoryModel)and)instead.getClassificationAttribute(String code, ClassificationSystemVersion version) Deprecated.since ages - please useItem.getAttribute(String)insteadgetClassificationAttributeValue(String code, ClassificationSystemVersion version) Deprecated.since ages - please useClassificationSystemVersion.getClassificationAttributeValue(String)insteadgetClassificationClass(String systemName, String versionName, String classID) Finds a classification class directly by specifying its classificaiton system name, system version and class code.getClassificationClasses(ClassificationSystemVersion systemVersion, Category src) getClassificationClasses(ClassificationSystemVersion systemVersion, Product product) getClassificationClasses(Product product) getClassificationClasses(SessionContext ctx, Product product) getClassificationClasses(Collection<ClassificationSystemVersion> systemVersions, Category src) getClassificationClasses(Collection<ClassificationSystemVersion> systemVersions, Product product) getClassificationIndexString(SessionContext ctx, Product prod) Generated method - Getter of theProduct.classificationIndexStringattribute.getClassificationSystem(String classificationSystemId) Returns the matchingClassificationSystemfor the specified id.getCompanyByUID(String uid) Deprecated.since ages - Use UserService.getUserGroupForUID(uid, CompanyModel.class) instead.getCounterpartItem(Item sourceItem, CatalogVersion targetVersion) Deprecated.since ages - Use CatalogTypeService.getCatalogVersionAwareModel(CatalogVersionModel, String, Map) instead.getCounterpartItem(SessionContext ctx, Item sourceItem, CatalogVersion targetVersion) Deprecated.since ages - Use CatalogTypeService.getCatalogVersionAwareModel(CatalogVersionModel, String, Map) instead.getCreatorParameterDefault(String param) Override this method to provide default value for the given creator parameter.Override this method to provide a list of all possible values for the given creator parameter.getData_sheet(Category item) getData_sheet(SessionContext ctx, Category item) Deprecated.since ages - Use CatalogService.getDefaultCatalog() instead.Check all subtypes of Item (recursively) searching for catalog.sync.default.root.type custom-property.getDescription(Category item) getDescription(SessionContext ctx, Category item) getDetail(SessionContext ctx, Category item) static final ObjectgetFirstOne(Collection coll) Tool method which returns just the first element of a collection.static CatalogManagergetKeyword(CatalogVersion catalogVersion, String keywordValue) Returns the Keyword for the specified keyword value andCatalogVersion.getKeyword(String typeCode, CatalogVersion catalogVersion, String keywordValue) Returns the Keyword for the specified keyword value andCatalogVersion.getKeywords(Category item) 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) getLanguageIfExists(String isoCode) Deprecated.since ages - Use CommonI18NService.getLanguage(String) instead.getLastSyncModifiedTime(SyncItemJob job, Item src, Item copy) getLogo(SessionContext ctx, Category item) getMediaCode(String catalogID, String catalogVersion, String mediaCode) getNormal(SessionContext ctx, Category item) static ItemgetOldest(Collection items) getOrder(SessionContext ctx, Category item) intgetOrderAsPrimitive(Category item) intgetOrderAsPrimitive(SessionContext ctx, Category item) getOthers(SessionContext ctx, Category item) getProductByCatalogVersion(CatalogVersion catalogVersion, String productCode) getProductReferences(String qualifier, Product source, Product target) Deprecated.since ages - Use one of the ProductReferenceService methods to fetch product referencesgetProductReferences(String qualifier, Product source, Product target, Integer quantity, boolean forceQuantitySearch) Deprecated.since ages - Use one of the ProductReferenceService methods to fetch product referencesgetRestrictedLanguages(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()getSessionCatalogVersions(JaloSession jalosession) Deprecated.since ages - Use CatalogVersionService.getSessionCatalogVersions() instead.Deprecated.since ages - Use CatalogVersionService.getSessionCatalogVersions() instead.getSynchronizationSources(SessionContext ctx, Item target) Generated method - Getter of theItem.synchronizationSourcesattribute.getSynchronizedCopies(SessionContext ctx, Item source) Implements getting all copies of an extensible item.getSynchronizedCopy(Item source, SyncItemJob sij) getSyncJob(CatalogVersion source, CatalogVersion target) getSyncJob(CatalogVersion source, CatalogVersion target, String qualifier) getSyncJobFromSource(CatalogVersion source) getSyncTimestampMap(Item source, SyncItemJob sij) getThumbnails(Category item) 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.getTypeQualifier(SessionContext ctx, Address address) getTypeQualifier(Address address) Deprecated.since ages - Use CatalogTypeService.getCatalogVersionUniqueKeyAttribute(String typeCode) instead;getUniqueKeyAttributes(SessionContext ctx, ComposedType item) Deprecated.since ages - Check ComposedTypeModel.getUniqueKeyAttributes() instead.Generated method - Getter of theComposedType.uniqueKeyAttributesattribute.getUntypedFeatures(Product item) Deprecated.since ages - useFeatureContainer.loadUntyped(Product)insteadgetUntypedFeatures(SessionContext ctx, Product prod) Deprecated.since ages - useFeatureContainer.loadUntyped(Product)insteadgetVariants(SessionContext ctx, Product baseProduct, CatalogVersion catalogVersion) Deprecated.since ages - Internal legacy migration method forVariantsManager.getInstance()onlyprotected InputStreamgetZipEntryInputStream(ZipFile zipfile, 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.booleanDeprecated.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(Class itemclass) Deprecated.since ages - please useisCatalogItem(ComposedType)insteadisCatalogItemType(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 BooleanGenerated methods from old GeneratedCatalogManager endsstatic booleanstatic booleanmustSetCatalogVersions(JaloSession jaloSession, javax.servlet.http.HttpServletRequest req) protected SyncItemJobnewDefaultSyncJobInstance(Map attributes) voidnotifyInitializationEnd(Map<String, 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, Map<Language, String> value) voidsetAllDescription(SessionContext ctx, Category item, Map<Language, String> value) voidvoidsetAllKeywords(SessionContext ctx, Category item, Map<Language, List<Keyword>> value) voidsetAllowedPrincipals(Category item, List<Principal> value) voidsetAllowedPrincipals(SessionContext ctx, Category cat, List<Principal> newOnes) Deprecated.since ages - useCategoryService.setAllowedPrincipalsForCategory(de.hybris.platform.category.model.CategoryModel, List)instead.voidsetAllowedPrincipalsOnlyForGivenCategory(SessionContext ctx, Category item, List<Principal> value) voidsetApprovalStatus(Category cat, EnumerationValue status, boolean recursively, boolean asTransaction) Deprecated.since agesvoidsetCatalogItemType(SessionContext ctx, ComposedType item, 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, Collection<Media> value) voidsetData_sheet(SessionContext ctx, Category item, Collection<Media> value) voidsetDescription(Category item, String value) voidsetDescription(SessionContext ctx, Category item, String value) voidsetDetail(Category item, Collection<Media> value) voidsetDetail(SessionContext ctx, Category item, Collection<Media> value) voidsetKeywords(Category item, List<Keyword> value) voidsetKeywords(SessionContext ctx, Category item, List<Keyword> value) voidsetLogo(Category item, Collection<Media> value) voidsetLogo(SessionContext ctx, Category item, Collection<Media> value) voidsetNormal(Category item, Collection<Media> value) voidsetNormal(SessionContext ctx, Category item, Collection<Media> value) voidvoidvoidsetOrder(SessionContext ctx, Category item, int value) voidsetOrder(SessionContext ctx, Category item, Integer value) voidsetOthers(Category item, Collection<Media> value) voidsetOthers(SessionContext ctx, Category item, Collection<Media> value) voidsetReadableCatalogVersions(SessionContext ctx, Principal principal, List<CatalogVersion> value) Deprecated.since ages - Use PrincipalModel.setReadableCatalogVersions(List) instead.voidsetSessionCatalogVersions(SessionContext ctx, Collection<CatalogVersion> versions) Deprecated.since ages - Use CatalogVersionService.setSessionCatalogVersions(Set) instead.voidsetSessionCatalogVersions(Collection<CatalogVersion> versions) Deprecated.since ages - Use CatalogVersionService.setSessionCatalogVersions(Set) instead.voidsetThumbnails(Category item, Collection<Media> value) voidsetThumbnails(SessionContext ctx, Category item, Collection<Media> value) voidsetUniqueKeyAttributes(SessionContext ctx, ComposedType item, Collection<AttributeDescriptor> value) Generated method - Setter of theComposedType.uniqueKeyAttributesattribute.voidsetUntypedFeatures(SessionContext ctx, Product product, List<ProductFeature> features) voidsetWritableCatalogVersions(SessionContext ctx, Principal principal, List<CatalogVersion> value) Deprecated.since ages - UsePrincipalModel.setWritableCatalogVersions(List)instead.protected booleanprotected booleanprotected booleansyncTimestampsAlreadyRemovedFor(SessionContext ctx, Item item) 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, setXmlcontentMethods inherited from class de.hybris.platform.jalo.extension.Extension
checkBeforeInitialization, createSampleData, getCreatorDescription, getCreatorName, getCreatorParameterNames, getRemote, isCreatorDisabled, notifyInitializationStart, onFirstSessionCreation, writeReplaceMethods 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 Details
-
MEDIA_CODE_DELIMITER
- See Also:
-
DEFAULT_CATALOG_ID
- See Also:
-
DEFAULT_CATALOG_NAME
- See Also:
-
OFFLINE_VERSION
- See Also:
-
ONLINE_VERSION
- See Also:
-
DEFAULT_COMPANY_ID
- See Also:
-
DEFAULT_COMPANY_NAME
- See Also:
-
-
Constructor Details
-
CatalogManager
public CatalogManager()
-
-
Method Details
-
getCategoryManager
Deprecated.since ages - Internal legacy migration method forCategoryManager.getInstance()only -
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
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
-
shouldApplyQueryRemovalOptimisation
-
shouldRemoveSyncItemsForType
-
syncTimestampsAlreadyRemovedFor
-
getInstance
- Returns:
- instance of this manager
-
setAllowedPrincipals
@Deprecated(since="ages", forRemoval=false) public void setAllowedPrincipals(SessionContext ctx, Category cat, 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:
-
getMediaCode
-
createKeyword
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.since ages - Use CatalogService.getDefaultCatalog() instead. -
getKeyword
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
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.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
Creates a new ClassificationSystem with the given id.- Parameters:
id- The id of the newClassificationSystem.- Returns:
- The new
ClassificationSystem. - Throws:
ConsistencyCheckException
-
createCatalog
@Deprecated(since="ages", forRemoval=false) public Catalog createCatalog(String id, 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(since="ages", forRemoval=false) public CatalogVersion createCatalogVersion(Catalog catalog, 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, String version, Language importLanguage) throws ConsistencyCheckException - Throws:
ConsistencyCheckException
-
createClassificationSystemVersion
public ClassificationSystemVersion createClassificationSystemVersion(ClassificationSystem system, String version, Collection<Language> languages) throws ConsistencyCheckException - Throws:
ConsistencyCheckException
-
createAgreement
@Deprecated(since="ages", forRemoval=false) public Agreement createAgreement(String id, Date startDate, 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(since="ages", forRemoval=false) public Agreement createAgreement(CatalogVersion catalogVersion, String id, Date startDate, 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(since="ages", forRemoval=false) public ProductReference createProductReference(String qualifier, Product source, Product target, 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(since="ages", forRemoval=false) public Collection<ProductReference> getProductReferences(String qualifier, Product source, Product target, 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(since="ages", forRemoval=false) public Collection<ProductReference> getProductReferences(String qualifier, Product source, Product target) Deprecated.since ages - Use one of the ProductReferenceService methods to fetch product references -
getCatalog
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
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(String systemName, String versionName, String classID) Finds a classification class directly by specifying its classificaiton system name, system version and class code.- Parameters:
systemName-versionName-classID-
-
getClassificationClasses
-
getClassificationClasses
-
getClassificationClasses
public List<ClassificationClass> getClassificationClasses(ClassificationSystemVersion systemVersion, Product product) -
getClassificationClasses
public List<ClassificationClass> getClassificationClasses(Collection<ClassificationSystemVersion> systemVersions, Product product) -
getClassificationClasses
-
getClassificationClasses
public List<ClassificationClass> getClassificationClasses(ClassificationSystemVersion systemVersion, Category src) -
getClassificationClasses
public List<ClassificationClass> getClassificationClasses(Collection<ClassificationSystemVersion> systemVersions, Category src) -
getCatalog
@Deprecated(since="ages", forRemoval=false) public Catalog getCatalog(String supplierUID, 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(since="ages", forRemoval=false) public Catalog getCatalog(Company supplier, 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(since="ages", forRemoval=false) public Category getCatalogCategory(CatalogVersion catalogVersion, 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(since="ages", forRemoval=false) public 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.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.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(since="ages", forRemoval=false) public Category createCatalogCategory(CatalogVersion catalogVersion, String code, String name, String description, Integer order, 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(since="ages", forRemoval=false) 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(since="ages", forRemoval=false) 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(since="ages", forRemoval=false) 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(since="ages", forRemoval=false) public void setSessionCatalogVersions(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(since="ages", forRemoval=false) public void setSessionCatalogVersions(SessionContext ctx, 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(since="ages", forRemoval=false) 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(since="ages", forRemoval=false) 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(since="ages", forRemoval=false) public 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(since="ages", forRemoval=false) public 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(since="ages", forRemoval=false) public 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
-
notifyInitializationEnd
- Overrides:
notifyInitializationEndin classExtension- Throws:
Exception
-
createSavedQueries
-
getZipEntryInputStream
- Throws:
IOException
-
getBatchMedia
protected ImpExMedia getBatchMedia(String fileName, String fileExt) throws IOException, JaloBusinessException - Throws:
IOExceptionJaloBusinessException
-
createBatchMedia
-
getClassificationAttribute
@Deprecated(since="ages", forRemoval=false) public ClassificationAttribute getClassificationAttribute(String code, ClassificationSystemVersion version) throws JaloItemNotFoundException Deprecated.since ages - please useItem.getAttribute(String)instead- Throws:
JaloItemNotFoundException
-
getClassificationAttributeValue
@Deprecated(since="ages", forRemoval=false) public ClassificationAttributeValue getClassificationAttributeValue(String code, ClassificationSystemVersion version) Deprecated.since ages - please useClassificationSystemVersion.getClassificationAttributeValue(String)instead -
getCategoriesByProduct
public Collection<Category> getCategoriesByProduct(CatalogVersion catver, Product product, SessionContext ctx) -
getCategoriesByProduct
- Returns:
- all categories the given product is in
-
getCategoryProductLinks
@Deprecated(since="ages", forRemoval=false) public Collection<Link> getCategoryProductLinks(CatalogVersion catalogVersion, Category category, Product product) Deprecated.since ages -
getProductByCatalogVersion
-
getVariants
public Collection<VariantProduct> getVariants(SessionContext ctx, Product baseProduct, CatalogVersion catalogVersion) -
getCategoryProductsByState
@Deprecated(since="ages", forRemoval=false) public Collection<Product> getCategoryProductsByState(SessionContext ctx, Category category, boolean offline) Deprecated.since ages - useProductService.getOfflineProductsForCategory(de.hybris.platform.category.model.CategoryModel)and)instead. -
getUntypedFeatures
@Deprecated(since="ages", forRemoval=false) public List<ProductFeature> getUntypedFeatures(Product item) Deprecated.since ages - useFeatureContainer.loadUntyped(Product)instead -
getUntypedFeatures
@Deprecated(since="ages", forRemoval=false) public 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
-
getAllCatalogs
Deprecated.since ages - Use CatalogService.getAllCatalogs() instead.Returns all catalogs within the system. -
getAllCatalogVersions
Deprecated.since ages - Use CatalogVersionService.getAllCatalogVersions() instead.Returns all catalog versions within the system.- Returns:
- all catalog versions
-
getAllClassificationSystems
Returns all classification systems within the system. -
getAllClassificationSystemVersions
@Deprecated(since="ages", forRemoval=false) public 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.since ages - Use CommonI18NService.getLanguage(String) instead. -
createUsersAndGroupsAndRights
- Throws:
Exception
-
createDefaultCatalog
- Throws:
Exception
-
configureDefaultSynchronization
-
getSyncJobFromSource
-
getSyncJob
-
getSyncJob
-
configureSynchronizationJob
public SyncItemJob configureSynchronizationJob(String code, Catalog catalog, String sourceVersion, 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
-
getCreatorParameterDefault
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
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
-
getTypeQualifier
-
setApprovalStatus
@Deprecated(since="ages", forRemoval=false) 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
-
getSynchronizedCopy
-
removeProductReferencesFor
-
removeSyncTimestampsFor
-
removeSyncTimestampsFor
-
getSyncTimestampMap
-
createSyncTimestamp
-
createSyncTimestamp
-
getSynchronizedCopies
Implements getting all copies of an extensible item.- Specified by:
getSynchronizedCopiesin classGeneratedCatalogManager- Returns:
- the synchronizedCopies
-
getSynchronizationSources
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(since="ages", forRemoval=false) 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, Double tolerance, Boolean searchMissingProducts, Boolean searchMissingCategories, Boolean searchNewProducts, Boolean searchNewCategories, Boolean searchPriceDiffs, Boolean overwriteStatus) -
getOrCreateDefaultCompareCatalogVersionJob
-
getOrCreateDefaultRemoveCatalogVersionJob
-
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.since ages - Use CatalogTypeService.getAllCatalogVersionAwareTypes(false) instead.Returns all composed types (also the subtypes) which are marked as holding catalog capable items. -
isCatalogItem
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.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(since="ages", forRemoval=false) public 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.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(since="ages", forRemoval=false) public void setCatalogItemType(SessionContext ctx, ComposedType item, 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:
-
getCatalogVersion
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:
-
getCatalogVersion
@Deprecated(since="ages", forRemoval=false) 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:
-
getCounterpartItem
@Deprecated(since="ages", forRemoval=false) 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(since="ages", forRemoval=false) 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
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
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
Description copied from class:GeneratedCatalogManagerGenerated method - Getter of theComposedType.uniqueKeyAttributesattribute.- Overrides:
getUniqueKeyAttributesin classGeneratedCatalogManager- Returns:
- the uniqueKeyAttributes
-
hasUniqueKeyAttributes
@Deprecated(since="ages", forRemoval=false) public boolean hasUniqueKeyAttributes(ComposedType comptyp) Deprecated.since ages - Check ComposedTypeModel.getUniqueKeyAttributes() instead. -
getUniqueKeyAttributes
@Deprecated(since="ages", forRemoval=false) public 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(since="ages", forRemoval=false) public Set<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, Collection<AttributeDescriptor> value) Description copied from class:GeneratedCatalogManagerGenerated method - Setter of theComposedType.uniqueKeyAttributesattribute.- Specified by:
setUniqueKeyAttributesin classGeneratedCatalogManagervalue- the uniqueKeyAttributes
-
getOldest
-
getFirstOne
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
-
findInCatalogVersion
@Deprecated(since="ages", forRemoval=false) protected Category findInCatalogVersion(CatalogVersion ver, Category original) Deprecated.since ages -
findInCatalogVersion
-
mustSetCatalogVersions
public static boolean mustSetCatalogVersions(JaloSession jaloSession, javax.servlet.http.HttpServletRequest req) -
filterByURL
protected Collection filterByURL(javax.servlet.http.HttpServletRequest request, Collection allActiveVersions) -
createPreviewTicket
-
createPreviewTicket
-
collectPreviewTicketVersions
protected Collection<PreviewTicket> collectPreviewTicketVersions(javax.servlet.http.HttpServletRequest request, JaloSession jaloSession) -
assignCatalogVersions
protected void assignCatalogVersions(javax.servlet.http.HttpServletRequest request, JaloSession jaloSession, 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
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
-
canRead
-
getAllWriteableCatalogVersions
@Deprecated(since="ages", forRemoval=false) public Collection<CatalogVersion> getAllWriteableCatalogVersions(User user) Deprecated.since ages - Use CatalogVersionService.getAllWritableCatalogVersions(de.hybris.platform.core.model.security. PrincipalModel ) instead. -
getAllWriteableCatalogVersions
@Deprecated(since="ages", forRemoval=false) public Collection<CatalogVersion> getAllWriteableCatalogVersions(SessionContext ctx, User user) Deprecated.since ages - Use CatalogVersionService.getAllWritableCatalogVersions(de.hybris.platform.core.model.security. PrincipalModel ) instead. -
getAllReadableCatalogVersions
@Deprecated(since="ages", forRemoval=false) public 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.since ages - - counts only products, categories, medias and keywords. use XXX instead! -
getTotalObjectsCount
Deprecated.since ages - - counts only products, categories, medias and keywords. use XXX instead! -
isEditorUser
-
isEditable
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.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
- Overrides:
createProjectDatain classExtension
-
getClassificationIndexString
Description copied from class:GeneratedCatalogManagerGenerated method - Getter of theProduct.classificationIndexStringattribute.- Specified by:
getClassificationIndexStringin classGeneratedCatalogManager- Returns:
- the classificationIndexString
-
getAllClassificationIndexString
Description copied from class:GeneratedCatalogManagerGenerated method - Getter of theProduct.classificationIndexStringattribute.- Specified by:
getAllClassificationIndexStringin classGeneratedCatalogManager- Returns:
- the localized classificationIndexString
-
getCatalogVersionAttributeQualifier
@Deprecated(since="ages", forRemoval=false) public 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(since="ages", forRemoval=false) public void setReadableCatalogVersions(SessionContext ctx, Principal principal, 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(since="ages", forRemoval=false) public void setWritableCatalogVersions(SessionContext ctx, Principal principal, 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(since="ages", forRemoval=false) public Map<Language,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
Generated query statement for collecting duplicate versionable items.- Parameters:
jaloClass- result class- Returns:
- generated query statement
-
getAllowedPrincipals
Generated methods from old GeneratedCatalogManager starts -
getAllowedPrincipals
-
getAllowedPrincipalsCount
-
getAllowedPrincipalsCount
-
setAllowedPrincipalsOnlyForGivenCategory
public void setAllowedPrincipalsOnlyForGivenCategory(SessionContext ctx, Category item, List<Principal> value) -
setAllowedPrincipals
-
addToAllowedPrincipals
-
addToAllowedPrincipals
-
removeFromAllowedPrincipals
-
removeFromAllowedPrincipals
-
getCatalogVersion
-
getCatalogVersion
-
setCatalogVersion
-
getData_sheet
-
getData_sheet
-
setData_sheet
-
setData_sheet
-
getDescription
-
getDescription
-
getAllDescription
-
getAllDescription
-
setDescription
-
setDescription
-
setAllDescription
-
setAllDescription
-
getDetail
-
getDetail
-
setDetail
-
setDetail
-
getKeywords
-
getKeywords
-
getAllKeywords
-
getKeywordsCount
-
getKeywordsCount
-
getKeywordsCount
-
getKeywordsCount
-
setKeywords
-
setKeywords
-
setAllKeywords
-
setAllKeywords
-
addToKeywords
-
addToKeywords
-
removeFromKeywords
-
removeFromKeywords
-
getLogo
-
getLogo
-
setLogo
-
setLogo
-
getNormal
-
getNormal
-
setNormal
-
setNormal
-
getOrder
-
getOrder
-
getOrderAsPrimitive
-
getOrderAsPrimitive
-
setOrder
-
setOrder
-
setOrder
-
setOrder
-
getOthers
-
getOthers
-
setOthers
-
setOthers
-
getThumbnails
-
getThumbnails
-
setThumbnails
-
setThumbnails
-
isSyncInProgress
Generated methods from old GeneratedCatalogManager ends -
isSyncInProgressAsPrimitive
-
getDefaultRootTypes
Check all subtypes of Item (recursively) searching for catalog.sync.default.root.type custom-property. -
createEssentialData
- Overrides:
createEssentialDatain classExtension- Throws:
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:
-