public class Category extends GeneratedCategory
GenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException| Modifier and Type | Field and Description |
|---|---|
static String |
DISABLE_CYCLIC_CHECKS
Deprecated.
please use Constants.DISABLED_CYCLIC_CHECKS instead
|
static String |
DISABLE_SETALLOWEDPRINCIPAL_RECURSIVELY
SessionContext attribute flag for set allowed principals.
|
static String |
DISABLE_SUBCATEGORY_REMOVALCHECK
SessionContext attribute flag for disabling the subcategory check when removing category
|
ALLOWEDPRINCIPALS, CATALOG, CATALOGVERSION, CATEGORIES, CATEGORY2KEYWORDRELATION_MARKMODIFIED, CATEGORY2KEYWORDRELATION_SRC_ORDERED, CATEGORY2KEYWORDRELATION_TGT_ORDERED, CATEGORY2PRINCIPALRELATION_MARKMODIFIED, CATEGORY2PRINCIPALRELATION_SRC_ORDERED, CATEGORY2PRINCIPALRELATION_TGT_ORDERED, CATEGORYCATEGORYRELATION_MARKMODIFIED, CATEGORYCATEGORYRELATION_SRC_ORDERED, CATEGORYCATEGORYRELATION_TGT_ORDERED, CATEGORYMEDIARELATION_MARKMODIFIED, CATEGORYMEDIARELATION_SRC_ORDERED, CATEGORYMEDIARELATION_TGT_ORDERED, CATEGORYPRODUCTRELATION_MARKMODIFIED, CATEGORYPRODUCTRELATION_SRC_ORDERED, CATEGORYPRODUCTRELATION_TGT_ORDERED, CODE, DATA_SHEET, DEFAULT_INITIAL_ATTRIBUTES, DESCRIPTION, DETAIL, KEYWORDS, LOGO, MEDIAS, NAME, NORMAL, ORDER, OTHERS, PICTURE, PRODUCTS, SUPERCATEGORIES, THUMBNAIL, THUMBNAILSLANGUAGE_FALLBACK_ENABLED_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEimpl, tenant| Constructor and Description |
|---|
Category() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProduct(Product product)
Deprecated.
|
void |
addProduct(Product product,
int position,
boolean shift)
Deprecated.
|
void |
addProduct(SessionContext ctx,
Product product)
Deprecated.
|
void |
addProduct(SessionContext ctx,
Product product,
int position,
boolean shift)
Deprecated.
|
void |
addProducts(Collection<Product> products)
Deprecated.
|
void |
addProducts(SessionContext ctx,
Collection<Product> products)
Deprecated.
|
void |
addSubcategories(Collection<Category> categories)
Deprecated.
|
void |
addSubcategories(SessionContext ctx,
Collection<Category> categories)
Deprecated.
|
void |
addSubcategory(Category category)
Deprecated.
|
void |
addSubcategory(SessionContext ctx,
Category category)
Deprecated.
|
void |
addSupercategories(Collection<Category> categories)
Deprecated.
|
void |
addSupercategories(SessionContext ctx,
Collection<Category> categories)
Deprecated.
|
void |
addSupercategory(Category category)
Deprecated.
|
void |
addSupercategory(SessionContext ctx,
Category category)
Deprecated.
|
void |
addToCategories(SessionContext ctx,
Category cat)
Deprecated.
|
void |
addToSupercategories(SessionContext ctx,
Category cat)
Deprecated.
|
protected void |
assertNoCycle(SessionContext ctx,
Collection<Category> toAddTo,
Collection<Category> toCheck,
boolean sub)
Deprecated.
|
protected void |
checkRemovable(SessionContext ctx)
Deprecated.
covered by
de.hybris.platform.category.interceptors.CategoryRemovalValidator. |
boolean |
containsProducts()
Deprecated.
use
de.hybris.platform.product.ProductService#containsProductsForCategory(de.hybris.platform.category.model.CategoryModel)
instead. |
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Deprecated.
|
protected boolean |
disableChecks(SessionContext ctx)
Deprecated.
|
int |
getAllProductsCount()
Deprecated.
use
de.hybris.platform.product.ProductService#getAllProductsCountForCategory(de.hybris.platform.category.model.CategoryModel)
instead. |
Collection<Category> |
getAllSubcategories()
Deprecated.
use
CategoryModel.getAllSubcategories() instead. |
Collection<Category> |
getAllSubcategories(SessionContext ctx)
Deprecated.
use
CategoryModel.getAllSubcategories() instead. |
int |
getAllSubcategoriesCount()
Deprecated.
use
CategoryModel.getAllSubcategories() and method
size() on result instead. |
Collection<Category> |
getAllSupercategories()
Deprecated.
use
CategoryModel.getAllSupercategories() instead. |
Collection<Category> |
getAllSupercategories(SessionContext ctx)
Deprecated.
use
CategoryModel.getAllSubcategories() instead. |
String |
getCode()
Deprecated.
|
List<Category> |
getPath()
Deprecated.
use
de.hybris.platform.category.CategoryService#getPathForCategory(de.hybris.platform.category.model.CategoryModel)
instead. |
Collection<List<Category>> |
getPaths()
Deprecated.
use
de.hybris.platform.category.CategoryService#getPathsForCategory(de.hybris.platform.category.model.CategoryModel)
instead. |
long |
getProductsCount()
Deprecated.
use
de.hybris.platform.product.ProductService#getProductsCountForCategory(de.hybris.platform.category.model.CategoryModel)
instead. |
Collection<Category> |
getSubcategories()
Deprecated.
|
List<Category> |
getSubcategories(SessionContext ctx)
Deprecated.
|
long |
getSubcategoryCount()
Deprecated.
|
Category |
getSupercategory()
Deprecated.
|
Category |
getSupercategory(SessionContext ctx)
Deprecated.
|
long |
getSupercategoryCount()
Deprecated.
|
boolean |
isEmpty()
Deprecated.
use
de.hybris.platform.category.CategoryService#isEmpty(de.hybris.platform.category.model.CategoryModel)
instead. |
Boolean |
isRoot()
Deprecated.
use
de.hybris.platform.category.CategoryService#isRoot(de.hybris.platform.category.model.CategoryModel)
instead. |
Boolean |
isRoot(SessionContext ctx)
Deprecated.
use
de.hybris.platform.category.CategoryService#isRoot(de.hybris.platform.category.model.CategoryModel)
instead. |
boolean |
isRootAsPrimitive() |
boolean |
isRootAsPrimitive(SessionContext ctx) |
protected boolean |
isSetAllowedPrincipalsRecursivelyDisabled(SessionContext ctx)
Deprecated.
covered by
de.hybris.platform.category.strategies.CategoryPrincipalStrategy. |
protected boolean |
isSubcategoryRemovalCheckDisabled(SessionContext ctx)
Deprecated.
covered by
de.hybris.platform.category.interceptors.CategoryRemovalValidator. |
protected void |
pullUpAllowedPrincipalInternals(SessionContext ctx,
Category superCat,
List<Principal> newOnes)
Deprecated.
covered by
de.hybris.platform.category.strategies.CategoryPrincipalStrategy. |
void |
removeProduct(Product product)
Deprecated.
|
void |
removeProduct(SessionContext ctx,
Product product)
Deprecated.
|
void |
removeProducts(Collection<Product> products)
Deprecated.
|
void |
removeProducts(SessionContext ctx,
Collection<Product> products)
Deprecated.
|
void |
removeSubcategories(Collection<Category> categories)
Deprecated.
|
void |
removeSubcategories(SessionContext ctx,
Collection<Category> categories)
Deprecated.
|
void |
removeSubcategory(Category category)
Deprecated.
|
void |
removeSubcategory(SessionContext ctx,
Category category)
Deprecated.
|
void |
removeSupercategories(Collection<Category> categories)
Deprecated.
|
void |
removeSupercategories(SessionContext ctx,
Collection<Category> categories)
Deprecated.
|
void |
removeSupercategory(Category category)
Deprecated.
|
void |
removeSupercategory(SessionContext ctx,
Category category)
Deprecated.
|
void |
setAllowedPrincipals(SessionContext ctx,
List<Principal> newOnes)
Deprecated.
use
de.hybris.platform.category.CategoryService#setAllowedPrincipalsForCategory(de.hybris.platform.category.model.CategoryModel, List)
instead. |
void |
setAllowedPrincipalsOnlyForPassedCategory(SessionContext ctx,
List<Principal> value) |
void |
setCategories(Category... categories)
Deprecated.
|
void |
setCategories(SessionContext ctx,
Category... categories)
Deprecated.
|
void |
setCategories(SessionContext ctx,
List<Category> categories)
Deprecated.
|
void |
setSubcategories(List<Category> subcategories)
Deprecated.
|
void |
setSubcategories(SessionContext ctx,
List<Category> subcategories)
Deprecated.
|
void |
setSupercategories(Category... superCategories)
Deprecated.
|
void |
setSupercategories(SessionContext ctx,
Category... superCategories)
Deprecated.
|
void |
setSupercategories(SessionContext ctx,
List<Category> categories)
Deprecated.
|
String |
toString()
Returns the
String representation of this item. |
addToAllowedPrincipals, addToAllowedPrincipals, addToCategories, addToKeywords, addToKeywords, addToMedias, addToMedias, addToProducts, addToProducts, addToSupercategories, getAllDescription, getAllDescription, getAllKeywords, getAllKeywords, getAllName, getAllName, getAllowedPrincipals, getAllowedPrincipals, getAllowedPrincipalsCount, getAllowedPrincipalsCount, getCatalogVersion, getCatalogVersion, getCategories, getCategories, getCategoriesCount, getCategoriesCount, getCode, getData_sheet, getData_sheet, getDefaultAttributeModes, getDescription, getDescription, getDetail, getDetail, getKeywords, getKeywords, getKeywordsCount, getKeywordsCount, getKeywordsCount, getKeywordsCount, getLogo, getLogo, getMedias, getMedias, getMediasCount, getMediasCount, getName, getName, getNormal, getNormal, getOrder, getOrder, getOrderAsPrimitive, getOrderAsPrimitive, getOthers, getOthers, getPicture, getPicture, getProducts, getProducts, getProductsCount, getSupercategories, getSupercategories, getSupercategoriesCount, getSupercategoriesCount, getThumbnail, getThumbnail, getThumbnails, getThumbnails, removeFromAllowedPrincipals, removeFromAllowedPrincipals, removeFromCategories, removeFromCategories, removeFromKeywords, removeFromKeywords, removeFromMedias, removeFromMedias, removeFromProducts, removeFromProducts, removeFromSupercategories, removeFromSupercategories, setAllDescription, setAllDescription, setAllKeywords, setAllKeywords, setAllName, setAllName, setAllowedPrincipals, setCatalogVersion, setCatalogVersion, setCategories, setCode, setCode, setData_sheet, setData_sheet, setDescription, setDescription, setDetail, setDetail, setKeywords, setKeywords, setLogo, setLogo, setMedias, setMedias, setName, setName, setNormal, setNormal, setOrder, setOrder, setOrder, setOrder, setOthers, setOthers, setPicture, setPicture, setProducts, setProducts, setSupercategories, setThumbnail, setThumbnail, setThumbnails, setThumbnailsgetInitialProperties, getNonInitialAttributesgetAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertycreateNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyaddLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, clearPermission, compareTo, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getOwner, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRestrictedPrincipals, getSession, getSyncObject, getTenant, getTransientObject, getTransientObjectMap, hashCode, hasRegisteredClassAccessorFor, internal_registerClassAccessorFor, internal_registerNonClassAccessorFor, invalidateLocalCaches, isAlive, isCacheBound, isCurrentlyRemoving, isCurrentlyRemoving, isEmptyRelationValue, isInCreate, isInstanceOf, isItemCheckBeforeRemoveableDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, readResolve, refreshRemote, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, remove, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinks, removePartOfItems, removePartOfItems, setAllAttributes, setAllAttributes, setAllAttributesInternal, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAttribute, setAttribute, setAttributeFromString, setAttributeFromString, setCacheBound, setComposedType, setCreationTime, setImplementation, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setModificationTime, setNonInitialAttributes, setOwner, setPermissionsByMap, setTransientObject, setUseTA, useTA, writeReplacegetImplementation, setTenantpublic static final String DISABLE_SUBCATEGORY_REMOVALCHECK
public static final String DISABLE_SETALLOWEDPRINCIPAL_RECURSIVELY
@Deprecated public static final String DISABLE_CYCLIC_CHECKS
SessionContext myCtx = jaloSesson.createSessionContext(); myCtx.setAttribute(Constants.DISABLE_CYCLIC_CHECKS, Boolean.TRUE); // now this will not raise an error : category.addToSubcategory(category.getSuperCategory());
@Deprecated protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
createItem in class GenericItemctx - the current session context which this item is created withintype - the actual item type ( since subtypes may not provide a own jalo class this may be different from the
type which this method was implemented for )JaloBusinessException - indicates an error during creation - any changes will be rollbackedpublic String toString()
ItemString representation of this item. This is by default the representation of the primary
key of this item.@Deprecated public String getCode()
GeneratedCategoryCategory.code attribute.getCode in class GeneratedCategory@Deprecated public Collection<Category> getSubcategories()
@Deprecated public List<Category> getSubcategories(SessionContext ctx)
ctx - session context@Deprecated public long getSubcategoryCount()
getSubcategories().size() since it does not actually load the subcategories.@Deprecated public Collection<Category> getAllSubcategories()
CategoryModel.getAllSubcategories() instead.@Deprecated public Collection<Category> getAllSubcategories(SessionContext ctx)
CategoryModel.getAllSubcategories() instead.ctx - session context@Deprecated public int getAllSubcategoriesCount()
CategoryModel.getAllSubcategories() and method
size() on result instead.@Deprecated public int getAllProductsCount()
de.hybris.platform.product.ProductService#getAllProductsCountForCategory(de.hybris.platform.category.model.CategoryModel)
instead.@Deprecated public void setCategories(SessionContext ctx, List<Category> categories) throws JaloInvalidParameterException
Checking may be disabled using session context attribute Constants.DISABLE_CYCLIC_CHECKS.
setCategories in class GeneratedCategorycategories - the categories - Sub CategoriesJaloInvalidParameterException - if any of these categories is already super category of this categroy@Deprecated public void setCategories(Category... categories)
@Deprecated public void setCategories(SessionContext ctx, Category... categories)
@Deprecated public void addToCategories(SessionContext ctx, Category cat) throws JaloInvalidParameterException
Checking may be disabled using session context attribute Constants.DISABLE_CYCLIC_CHECKS.
addToCategories in class GeneratedCategorycat - the item to add to categories - Sub CategoriesJaloInvalidParameterException - if the new category is already super category of this category@Deprecated public void setSupercategories(SessionContext ctx, List<Category> categories) throws JaloInvalidParameterException
Checking may be disabled using session context attribute Constants.DISABLE_CYCLIC_CHECKS.
setSupercategories in class GeneratedCategorycategories - the supercategories - Super CategoriesJaloInvalidParameterException - if any of these categories is already subcategory of this category@Deprecated public void setSupercategories(Category... superCategories)
@Deprecated public void setSupercategories(SessionContext ctx, Category... superCategories)
@Deprecated public void addToSupercategories(SessionContext ctx, Category cat) throws JaloInvalidParameterException
Checking may be disabled using session context attribute Constants.DISABLE_CYCLIC_CHECKS.
addToSupercategories in class GeneratedCategorycat - the item to add to supercategories - Super CategoriesJaloInvalidParameterException - if the new category is already subcategory of this category@Deprecated protected boolean disableChecks(SessionContext ctx)
@Deprecated protected void assertNoCycle(SessionContext ctx, Collection<Category> toAddTo, Collection<Category> toCheck, boolean sub) throws JaloInvalidParameterException
JaloInvalidParameterException@Deprecated public void setSubcategories(List<Category> subcategories)
subcategories - subcategories to set@Deprecated public void setSubcategories(SessionContext ctx, List<Category> subcategories)
ctx - session contextsubcategories - subcategories to set@Deprecated public void addSubcategory(Category category)
category - the category to be added@Deprecated public void addSubcategory(SessionContext ctx, Category category)
ctx - session contextcategory - the category to be added@Deprecated public void addSubcategories(Collection<Category> categories)
categories - Categories to be added@Deprecated public void addSubcategories(SessionContext ctx, Collection<Category> categories)
ctx - session contextcategories - Categories to be added@Deprecated public void removeSubcategory(Category category)
category - the category to be removed from subcategories@Deprecated public void removeSubcategory(SessionContext ctx, Category category)
ctx - session contextcategory - the category to be removed from subcategories@Deprecated public void removeSubcategories(Collection<Category> categories)
categories - Categories to be removed from subcategories@Deprecated public void removeSubcategories(SessionContext ctx, Collection<Category> categories)
ctx - session contextcategories - Categories to be removed from subcategories@Deprecated public Category getSupercategory()
GeneratedCategory.getSupercategories().null if this category has no supercategories@Deprecated public Category getSupercategory(SessionContext ctx)
GeneratedCategory.getSupercategories().ctx - the session contextnull if this category has no supercategories@Deprecated public long getSupercategoryCount()
getSupercategories().size() since it does not actually load the subcategories.@Deprecated public long getProductsCount()
de.hybris.platform.product.ProductService#getProductsCountForCategory(de.hybris.platform.category.model.CategoryModel)
instead. getProducts().size() since it does not actually load the products.getProductsCount in class GeneratedCategory@Deprecated public boolean isEmpty()
de.hybris.platform.category.CategoryService#isEmpty(de.hybris.platform.category.model.CategoryModel)
instead. true if neither products nor subcategories belong to this category. This method should be
preferred over getProducts().size().isEmpty() && getSubcategories().isEmpty() since it does not
actually load the products and categories.@Deprecated public boolean containsProducts()
de.hybris.platform.product.ProductService#containsProductsForCategory(de.hybris.platform.category.model.CategoryModel)
instead.isEmpty() this method tells whether or not this category or any of its subcategories contains
a product.@Deprecated public Collection<Category> getAllSupercategories()
CategoryModel.getAllSupercategories() instead.@Deprecated public Collection<Category> getAllSupercategories(SessionContext ctx)
CategoryModel.getAllSubcategories() instead.ctx - session context@Deprecated public void addSupercategory(Category category)
category - the category to be added@Deprecated public void addSupercategory(SessionContext ctx, Category category)
ctx - session contextcategory - the category to be added@Deprecated public void addSupercategories(Collection<Category> categories)
categories - Categories to be added@Deprecated public void addSupercategories(SessionContext ctx, Collection<Category> categories)
ctx - session contextcategories - Categories to be added@Deprecated public void removeSupercategory(Category category)
category - the category to be removed from supercategories@Deprecated public void removeSupercategory(SessionContext ctx, Category category)
ctx - session contextcategory - the category to be removed from supercategories@Deprecated public void removeSupercategories(Collection<Category> categories)
categories - Categories to be removed from supercategories@Deprecated public void removeSupercategories(SessionContext ctx, Collection<Category> categories)
ctx - session contextcategories - Categories to be removed from supercategories@Deprecated public void addProduct(Product product)
product - product to be added@Deprecated public void addProduct(SessionContext ctx, Product product)
ctx - session contextproduct - to be added@Deprecated public void addProduct(Product product, int position, boolean shift)
product - product to be addedposition - which will be set and used for sorting productsshift - whether succeeding products should shift their positions according to new product position or not@Deprecated public void addProduct(SessionContext ctx, Product product, int position, boolean shift)
ctx - session contextproduct - to be addedposition - which will be set and used for sorting productsshift - whether succeeding products should shift their positions according to new product position or not@Deprecated public void addProducts(Collection<Product> products)
products - to be added@Deprecated public void addProducts(SessionContext ctx, Collection<Product> products)
ctx - session contextproducts - to be added@Deprecated public void removeProduct(Product product)
product - to be removed from this category@Deprecated public void removeProduct(SessionContext ctx, Product product)
ctx - session contextproduct - to be removed from this category@Deprecated public void removeProducts(Collection<Product> products)
products - to be removed from this category@Deprecated public void removeProducts(SessionContext ctx, Collection<Product> products)
ctx - session contextproducts - to be removed from this category@Deprecated public List<Category> getPath()
de.hybris.platform.category.CategoryService#getPathForCategory(de.hybris.platform.category.model.CategoryModel)
instead.GeneratedCategory.getSupercategories().null if this category has no supercategories@Deprecated public Collection<List<Category>> getPaths()
de.hybris.platform.category.CategoryService#getPathsForCategory(de.hybris.platform.category.model.CategoryModel)
instead.@Deprecated protected void checkRemovable(SessionContext ctx) throws ConsistencyCheckException
de.hybris.platform.category.interceptors.CategoryRemovalValidator.DISABLE_SUBCATEGORY_REMOVALCHECK in the Sessioncontext to Boolean.TRUEcheckRemovable in class ItemConsistencyCheckException - to indicate that the item cannot be removed@Deprecated public Boolean isRoot(SessionContext ctx)
de.hybris.platform.category.CategoryService#isRoot(de.hybris.platform.category.model.CategoryModel)
instead.@Deprecated public Boolean isRoot()
de.hybris.platform.category.CategoryService#isRoot(de.hybris.platform.category.model.CategoryModel)
instead.public boolean isRootAsPrimitive(SessionContext ctx)
public boolean isRootAsPrimitive()
@Deprecated public void setAllowedPrincipals(SessionContext ctx, List<Principal> newOnes)
de.hybris.platform.category.CategoryService#setAllowedPrincipalsForCategory(de.hybris.platform.category.model.CategoryModel, List)
instead.DISABLE_SETALLOWEDPRINCIPAL_RECURSIVELY is set to true
the given principal list is only set to the given category.setAllowedPrincipals in class GeneratedCategoryctx - the SessionContextnewOnes - the list with the new allowed principals of this categorysetAllowedPrincipals(de.hybris.platform.jalo.SessionContext,
java.util.List)public void setAllowedPrincipalsOnlyForPassedCategory(SessionContext ctx, List<Principal> value)
@Deprecated protected boolean isSetAllowedPrincipalsRecursivelyDisabled(SessionContext ctx)
de.hybris.platform.category.strategies.CategoryPrincipalStrategy.setAllowedPrincipals(SessionContext, List) will only set the given
list of principals to the given category only.ctx - SessionContextDISABLE_SETALLOWEDPRINCIPAL_RECURSIVELY
exists and is set to true. false otherwise.@Deprecated protected void pullUpAllowedPrincipalInternals(SessionContext ctx, Category superCat, List<Principal> newOnes)
de.hybris.platform.category.strategies.CategoryPrincipalStrategy.ctx - newOnes - the principal set to pull up@Deprecated protected boolean isSubcategoryRemovalCheckDisabled(SessionContext ctx)
de.hybris.platform.category.interceptors.CategoryRemovalValidator.ctx - the session contextDISABLE_SUBCATEGORY_REMOVALCHECK exists AND the
value of this attribute is trueCopyright © 2017 SAP SE. All Rights Reserved.