Package de.hybris.platform.variants.jalo
Class VariantType
- java.lang.Object
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable
@Deprecated public class VariantType extends GeneratedVariantType
Deprecated.since ages - useVariantsService
instead.The MetaType for theVariantProduct
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.type.ComposedType
ComposedType.ComposedTypeImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.type.Type
Type.TypeImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.type.TypeManagerManaged
TypeManagerManaged.TypeManagerManagedImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LocalizableItem.LocalizableItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.ExtensibleItem
ExtensibleItem.ExtensibleItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.Item
Item.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.variants.jalo.GeneratedVariantType
VALIDPRODUCTBASETYPES, VARIANTATTRIBUTES
-
Fields inherited from class de.hybris.platform.jalo.type.ComposedType
ABSTRACT, ALLSUBTYPES, ALLSUPERTYPES, ATTRIBUTEDESCRIPTORS, DECLAREDATTRIBUTEDESCRIPTORS, DUMPPROPERTYTABLE, DYNAMIC, INHERITANCEPATH, INHERITEDATTRIBUTEDESCRIPTORS, JALOCLASS, JALOONLY, JNDINAME, SINGLETON, SUBTYPES, SUPERTYPE, TABLE
-
Fields inherited from class de.hybris.platform.jalo.type.Type
CODE, DEFAULTVALUE, DESCRIPTION, XMLDEFINITION
-
Fields inherited from class de.hybris.platform.jalo.type.TypeManagerManaged
AUTOCREATE, DEPRECATED, EXTENSION_NAME, GENERATE, NAME
-
Fields inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LANGUAGE_FALLBACK_ENABLED
-
Fields inherited from class de.hybris.platform.jalo.Item
_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, HJMPTS, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPE
-
Fields inherited from class de.hybris.platform.util.BridgeAbstraction
impl, tenant
-
-
Constructor Summary
Constructors Constructor Description VariantType()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Item
createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes)
Deprecated.VariantAttributeDescriptor
createVariantAttributeDescriptor(java.lang.String qualifier, Type type, int modifiers)
Deprecated.Creates a newVariantAttributeDescriptor
int
getBaseProductCount()
Deprecated.Returns the amount of products which use this variant typejava.util.Collection<Product>
getBaseProducts()
Deprecated.Returns all base products which use this variant type ordered by the product codejava.util.Collection<Product>
getBaseProducts(int start, int count)
Deprecated.Returns a range of base products which use this variant type ordered by product codejava.util.Set
getDeclaredAttributeDescriptors()
Deprecated.Returns all attributes which are declared by this type.java.util.Collection
getValidProductBaseTypes(SessionContext ctx)
Deprecated.since agesjava.util.List<VariantAttributeDescriptor>
getVariantAttributes(SessionContext ctx)
Deprecated.since ages - useVariantsService.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, java.util.Map<java.lang.String,java.lang.Object> emptyValuesMap)
Deprecated.void
setDeclaredAttributeDescriptors(java.util.Set fds)
Deprecated.since agesvoid
setVariantAttributes(SessionContext ctx, java.util.List<VariantAttributeDescriptor> newOnes)
Deprecated.-
Methods inherited from class de.hybris.platform.variants.jalo.GeneratedVariantType
getValidProductBaseTypes, getVariantAttributes, setVariantAttributes
-
Methods inherited from class de.hybris.platform.jalo.type.ComposedType
_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, hasOwnDeployment, isAssignableFrom, isDynamic, isInstance, isJaloClassAbstract, isJaloOnly, isSameOrSuperTypeOf, isSingleton, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, parseValue, setJaloClass, setJaloOnly, setSingleton, setTypeSearchSessionContex, toString, toString, unsetTypeSearchContext
-
Methods inherited from class de.hybris.platform.jalo.type.Type
compareTo, getAllDescriptions, getAllDescriptions, getCode, getDefaultValue, getDefaultValue, getDescription, getDescription, getTypeImpl, setAllDescriptions, setAllDescriptions, setDefaultValue, setDefaultValue, setDescription, setDescription
-
Methods inherited from class de.hybris.platform.jalo.type.TypeManagerManaged
getAllNames, getAllNames, getExtensionName, getImpl, getName, getName, isAutocreate, isDeprecated, isGenerate, setAllNames, setAllNames, setAutocreate, setExtensionName, setGenerate, setName, setName
-
Methods inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedProperty
-
Methods inherited from class de.hybris.platform.jalo.ExtensibleItem
createNonClassAccessor, getAllProperties, getAllProperties, getImplementation, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setProperty
-
Methods inherited from class de.hybris.platform.jalo.Item
addLinkedItems, 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, getRelatedItems, getRestrictedPrincipals, getSession, getSyncObject, getTenant, getTransientObject, getTransientObjectMap, hashCode, hasRegisteredClassAccessorFor, internal_registerClassAccessorFor, internal_registerNonClassAccessorFor, invalidateLocalCaches, isAlive, isCacheBound, isCurrentlyRemoving, isCurrentlyRemoving, isEmptyRelationValue, isInCreate, isInstanceOf, isItemCheckBeforeRemoveableDisabled, isMarkModifiedDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, notifyManagerAboutItemRemoval, readResolve, 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, setRelatedItems, setTransientObject, setUseTA, useTA, writeReplace
-
Methods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
-
-
-
Method Detail
-
createItem
@Deprecated protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
Deprecated.create the item- Overrides:
createItem
in classComposedType
- Parameters:
ctx
- 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 )- Returns:
- the new item instance
- Throws:
JaloBusinessException
- indicates an error during creation - any changes will be rollbacked
-
remove
public void remove(SessionContext ctx) throws ConsistencyCheckException
Deprecated.Denies removal in case this type either has instances or any base product refers to it.- Overrides:
remove
in classItem
- Parameters:
ctx
- A SessionContext object- Throws:
ConsistencyCheckException
- if this item could not be removed for some reason
-
removePartOfItems
protected void removePartOfItems(SessionContext ctx, java.util.Map<java.lang.String,java.lang.Object> emptyValuesMap) throws ConsistencyCheckException
Deprecated.- Overrides:
removePartOfItems
in classItem
- Throws:
ConsistencyCheckException
-
isAbstract
public boolean isAbstract()
Deprecated.Description copied from class:ComposedType
Tells whether this type may have instances or not.- Overrides:
isAbstract
in classComposedType
- Returns:
- true if the type cannot have instances.
-
getValidProductBaseTypes
@Deprecated public java.util.Collection getValidProductBaseTypes(SessionContext ctx)
Deprecated.since agesReturns the valid base products types for this variant type- Specified by:
getValidProductBaseTypes
in classGeneratedVariantType
- Parameters:
ctx
- the SessionContext- Returns:
- the valid base product types (
ComposedType
)
-
getBaseProducts
public java.util.Collection<Product> getBaseProducts()
Deprecated.Returns all base products which use this variant type ordered by the product code- Returns:
- a collection of the assigned base products
-
getBaseProducts
public java.util.Collection<Product> getBaseProducts(int start, int count)
Deprecated.Returns a range of base products which use this variant type ordered by product code- Parameters:
start
- the start index of the reange to returncount
- the amount of base products to return- Returns:
- a collection of the assigned base products
-
getBaseProductCount
public int getBaseProductCount()
Deprecated.Returns the amount of products which use this variant type- Returns:
- the amount of products which use this variant type
-
createVariantAttributeDescriptor
public VariantAttributeDescriptor createVariantAttributeDescriptor(java.lang.String qualifier, Type type, int modifiers) throws JaloDuplicateQualifierException
Deprecated.Creates a newVariantAttributeDescriptor
- Parameters:
qualifier
- the qualifier of the newAttributeDescriptor
type
- the type of the newAttributeDescriptor
modifiers
- the modifiers of the newAttributeDescriptor
- Returns:
- the created
AttributeDescriptor
- Throws:
JaloDuplicateQualifierException
- will be thrown if anAttributeDescriptor
with this code already exists
-
getVariantAttributes
@Deprecated public java.util.List<VariantAttributeDescriptor> getVariantAttributes(SessionContext ctx)
Deprecated.since ages - useVariantsService.getVariantAttributesForVariantType(de.hybris.platform.variants.model.VariantTypeModel)
instead.Returns the attributes of thisVariantType
- Specified by:
getVariantAttributes
in classGeneratedVariantType
- Parameters:
ctx
- the session context- Returns:
- an attributes collection
-
setVariantAttributes
@Deprecated public void setVariantAttributes(SessionContext ctx, java.util.List<VariantAttributeDescriptor> newOnes)
Deprecated.Removes old attributes if necessary and checks if enclosing type and meta type is set correctly.- Specified by:
setVariantAttributes
in classGeneratedVariantType
- Parameters:
ctx
- the session contextnewOnes
- the attributes which should be assigned
-
getDeclaredAttributeDescriptors
public java.util.Set getDeclaredAttributeDescriptors()
Deprecated.Description copied from class:ComposedType
Returns all attributes which are declared by this type.The type may own additional attribute descriptors which are not declared by itself but one of its supertypes.
- Overrides:
getDeclaredAttributeDescriptors
in classComposedType
- See Also:
ComposedType.getInheritedAttributeDescriptors()
,ComposedType.getAttributeDescriptors()
-
setDeclaredAttributeDescriptors
@Deprecated public void setDeclaredAttributeDescriptors(java.util.Set fds) throws JaloInvalidParameterException
Deprecated.since ages- Overrides:
setDeclaredAttributeDescriptors
in classComposedType
- Throws:
JaloInvalidParameterException
-
-