de.hybris.platform.product.VariantsService instead.@Deprecated public class VariantType extends GeneratedVariantType
VariantProductComposedType.ComposedTypeImplType.TypeImplTypeManagerManaged.TypeManagerManagedImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationExceptionVALIDPRODUCTBASETYPES, VARIANTATTRIBUTESABSTRACT, ALLSUBTYPES, ALLSUPERTYPES, ATTRIBUTEDESCRIPTORS, DECLAREDATTRIBUTEDESCRIPTORS, DUMPPROPERTYTABLE, DYNAMIC, INHERITANCEPATH, INHERITEDATTRIBUTEDESCRIPTORS, JALOCLASS, JALOONLY, JNDINAME, SINGLETON, SUBTYPES, SUPERTYPE, TABLECODE, DEFAULTVALUE, DESCRIPTION, XMLDEFINITIONAUTOCREATE, DEPRECATED, EXTENSION_NAME, GENERATE, NAMELANGUAGE_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 |
|---|
VariantType()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Deprecated.
de.hybris.platform.product.interceptors.VariantTypePrepareInterceptor will be used instead. |
VariantAttributeDescriptor |
createVariantAttributeDescriptor(String qualifier,
Type type,
int modifiers)
Deprecated.
Creates a new
VariantAttributeDescriptor |
int |
getBaseProductCount()
Deprecated.
Returns the amount of products which use this variant type
|
Collection<Product> |
getBaseProducts()
Deprecated.
Returns all base products which use this variant type ordered by the product code
|
Collection<Product> |
getBaseProducts(int start,
int count)
Deprecated.
Returns a range of base products which use this variant type ordered by product code
|
Set |
getDeclaredAttributeDescriptors()
Deprecated.
Returns all attributes which are declared by this type.
|
Collection |
getValidProductBaseTypes(SessionContext ctx)
Deprecated.
|
List<VariantAttributeDescriptor> |
getVariantAttributes(SessionContext ctx)
Deprecated.
use
de.hybris.platform.product.VariantsService#getVariantAttributesForVariantType(de.hybris.platform.variants.model.VariantTypeModel)
instead. |
boolean |
isAbstract()
Deprecated.
Tells whether this type may have instances or not.
|
void |
remove(SessionContext ctx)
Deprecated.
Denies removal in case this type either has instances or any base product refers to it.
|
protected void |
removePartOfItems(SessionContext ctx,
Map<String,Object> emptyValuesMap)
Deprecated.
|
void |
setDeclaredAttributeDescriptors(Set fds)
Deprecated.
|
void |
setVariantAttributes(SessionContext ctx,
List<VariantAttributeDescriptor> newOnes)
Deprecated.
use
de.hybris.platform.product.VariantsService#setVariantAttributesForVariantType(de.hybris.platform.variants.model.VariantTypeModel, List)
instead. |
getValidProductBaseTypes, getVariantAttributes, setVariantAttributes_sortAttributesByQualifier, checkItemPermission, checkTypePermission, checkTypePermission, createAttributeDescriptor, createAttributeDescriptor, createJaloOnlyInstance, exportXMLDefinition, exportXMLDefinition, getAllConcreteItemTypeCodes, getAllDefaultValues, getAllDefaultValues, getAllInstances, getAllInstances, getAllInstancesCount, getAllSubTypes, getAllSuperTypes, getAttributeDescriptor, getAttributeDescriptorIncludingPrivate, getAttributeDescriptors, getAttributeDescriptorsIncludingPrivate, getAttributeDescriptorsIncludingPrivate, getComposedTypeImpl, getCreatorInstance, getDeclaredAttributeDescriptor, getDeclaredJaloClass, getDefaultValues, getDefaultValues, getDumpPropertyTable, getEveryAttributeDescriptor, getInheritancePathString, getInheritedAttributeDescriptors, getInitialAttributeDescriptors, getItemTypeCode, getJaloClass, getJNDIName, getNonInitialAttributes, getPartOfAutoRemovalAttributeDescriptors, getRelations, getSingletonInstance, getSubTypes, getSuperType, getTable, getXMLCustomProperties, getXMLDefinition, getXMLDefinition, hasAttribute, isAssignableFrom, isDynamic, isInstance, isJaloClassAbstract, isJaloOnly, isSameOrSuperTypeOf, isSingleton, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, parseValue, setJaloClass, setJaloOnly, setSingleton, setTypeSearchSessionContex, toString, toString, unsetTypeSearchContextcompareTo, getAllDescriptions, getAllDescriptions, getCode, getDefaultValue, getDefaultValue, getDescription, getDescription, getTypeImpl, setAllDescriptions, setAllDescriptions, setDefaultValue, setDefaultValue, setDescription, setDescriptiongetAllNames, getAllNames, getExtensionName, getImpl, getName, getName, isAutocreate, isDeprecated, isGenerate, setAllNames, setAllNames, setAutocreate, setExtensionName, setGenerate, setName, setNamegetAllLocalizedProperties, 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, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, checkRemovable, clearPermission, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getDefaultAttributeModes, 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, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinks, 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, setTenant@Deprecated protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
de.hybris.platform.product.interceptors.VariantTypePrepareInterceptor will be used instead.createItem in class ComposedTypectx - 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 void remove(SessionContext ctx) throws ConsistencyCheckException
remove in class Itemctx - A SessionContext objectConsistencyCheckException - if this item could not be removed for some reasonprotected void removePartOfItems(SessionContext ctx, Map<String,Object> emptyValuesMap) throws ConsistencyCheckException
removePartOfItems in class ItemConsistencyCheckExceptionpublic boolean isAbstract()
ComposedTypeisAbstract in class ComposedType@Deprecated public Collection getValidProductBaseTypes(SessionContext ctx)
getValidProductBaseTypes in class GeneratedVariantTypectx - the SessionContextComposedType)public Collection<Product> getBaseProducts()
public Collection<Product> getBaseProducts(int start, int count)
start - the start index of the reange to returncount - the amount of base products to returnpublic int getBaseProductCount()
public VariantAttributeDescriptor createVariantAttributeDescriptor(String qualifier, Type type, int modifiers) throws JaloDuplicateQualifierException
VariantAttributeDescriptorqualifier - the qualifier of the new AttributeDescriptortype - the type of the new AttributeDescriptormodifiers - the modifiers of the new AttributeDescriptorAttributeDescriptorJaloDuplicateQualifierException - will be thrown if an AttributeDescriptor with this code already exists@Deprecated public List<VariantAttributeDescriptor> getVariantAttributes(SessionContext ctx)
de.hybris.platform.product.VariantsService#getVariantAttributesForVariantType(de.hybris.platform.variants.model.VariantTypeModel)
instead.VariantTypegetVariantAttributes in class GeneratedVariantTypectx - the session context@Deprecated public void setVariantAttributes(SessionContext ctx, List<VariantAttributeDescriptor> newOnes)
de.hybris.platform.product.VariantsService#setVariantAttributesForVariantType(de.hybris.platform.variants.model.VariantTypeModel, List)
instead.setVariantAttributes in class GeneratedVariantTypectx - the session contextnewOnes - the attributes which should be assignedpublic Set getDeclaredAttributeDescriptors()
ComposedTypeThe type may own additional attribute descriptors which are not declared by itself but one of its supertypes.
getDeclaredAttributeDescriptors in class ComposedTypeComposedType.getInheritedAttributeDescriptors(),
ComposedType.getAttributeDescriptors()@Deprecated public void setDeclaredAttributeDescriptors(Set fds) throws JaloInvalidParameterException
setDeclaredAttributeDescriptors in class ComposedTypeJaloInvalidParameterExceptionCopyright © 2017 SAP SE. All Rights Reserved.