Package de.hybris.platform.variants.jalo
Class VariantType
java.lang.Object
- All Implemented Interfaces:
Serializable,Comparable
Deprecated.
The MetaType for the
VariantProduct- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.jalo.type.ComposedType
ComposedType.ComposedTypeImplNested classes/interfaces inherited from class de.hybris.platform.jalo.type.Type
Type.TypeImplNested classes/interfaces inherited from class de.hybris.platform.jalo.type.TypeManagerManaged
TypeManagerManaged.TypeManagerManagedImplNested classes/interfaces inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LocalizableItem.LocalizableItemImplNested classes/interfaces inherited from class de.hybris.platform.jalo.ExtensibleItem
ExtensibleItem.ExtensibleItemImplNested 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, VARIANTATTRIBUTESFields inherited from class de.hybris.platform.jalo.type.ComposedType
ABSTRACT, ALLSUBTYPES, ALLSUPERTYPES, ATTRIBUTEDESCRIPTORS, DECLAREDATTRIBUTEDESCRIPTORS, DUMPPROPERTYTABLE, DYNAMIC, INHERITANCEPATH, INHERITEDATTRIBUTEDESCRIPTORS, JALOCLASS, JALOONLY, JNDINAME, SINGLETON, SUBTYPES, SUPERTYPE, TABLEFields inherited from class de.hybris.platform.jalo.type.Type
CODE, DEFAULTVALUE, DESCRIPTION, XMLDEFINITIONFields inherited from class de.hybris.platform.jalo.type.TypeManagerManaged
AUTOCREATE, DEPRECATED, EXTENSION_NAME, GENERATE, NAMEFields inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LANGUAGE_FALLBACK_ENABLEDFields 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, TYPEFields inherited from class de.hybris.platform.util.BridgeAbstraction
impl, tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ItemcreateItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) Deprecated.createVariantAttributeDescriptor(String qualifier, Type type, int modifiers) Deprecated.Creates a newVariantAttributeDescriptorintDeprecated.Returns the amount of products which use this variant typeDeprecated.Returns all base products which use this variant type ordered by the product codegetBaseProducts(int start, int count) Deprecated.Returns a range of base products which use this variant type ordered by product codeDeprecated.Returns all attributes which are declared by this type.Deprecated.since agesDeprecated.since ages - useVariantsService.getVariantAttributesForVariantType(de.hybris.platform.variants.model.VariantTypeModel)instead.booleanDeprecated.Tells whether this type may have instances or not.voidremove(SessionContext ctx) Deprecated.Denies removal in case this type either has instances or any base product refers to it.protected voidremovePartOfItems(SessionContext ctx, Map<String, Object> emptyValuesMap) Deprecated.voidDeprecated.since agesvoidsetVariantAttributes(SessionContext ctx, List<VariantAttributeDescriptor> newOnes) Deprecated.Methods inherited from class de.hybris.platform.variants.jalo.GeneratedVariantType
getValidProductBaseTypes, getVariantAttributes, setVariantAttributesMethods 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, unsetTypeSearchContextMethods inherited from class de.hybris.platform.jalo.type.Type
compareTo, getAllDescriptions, getAllDescriptions, getCode, getDefaultValue, getDefaultValue, getDescription, getDescription, getTypeImpl, setAllDescriptions, setAllDescriptions, setDefaultValue, setDefaultValue, setDescription, setDescriptionMethods inherited from class de.hybris.platform.jalo.type.TypeManagerManaged
getAllNames, getAllNames, getExtensionName, getImpl, getName, getName, isAutocreate, isDeprecated, isGenerate, setAllNames, setAllNames, setAutocreate, setExtensionName, setGenerate, setName, setNameMethods 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, setLocalizedPropertyMethods inherited from class de.hybris.platform.jalo.ExtensibleItem
createNonClassAccessor, getAllProperties, getAllProperties, getImplementation, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyMethods 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, getPartOfRemovedSessionMarker, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRelatedItems, 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, suppressRelation, useTA, writeReplaceMethods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
Constructor Details
-
VariantType
public VariantType()Deprecated.
-
-
Method Details
-
createItem
@Deprecated(since="ages", forRemoval=false) protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException Deprecated.create the item- Overrides:
createItemin 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
Deprecated.Denies removal in case this type either has instances or any base product refers to it.- Overrides:
removein classItem- Parameters:
ctx- A SessionContext object- Throws:
ConsistencyCheckException- if this item could not be removed for some reason
-
removePartOfItems
protected void removePartOfItems(SessionContext ctx, Map<String, Object> emptyValuesMap) throws ConsistencyCheckExceptionDeprecated.- Overrides:
removePartOfItemsin classItem- Throws:
ConsistencyCheckException
-
isAbstract
public boolean isAbstract()Deprecated.Description copied from class:ComposedTypeTells whether this type may have instances or not.- Overrides:
isAbstractin classComposedType- Returns:
- true if the type cannot have instances.
-
getValidProductBaseTypes
@Deprecated(since="ages", forRemoval=false) public Collection getValidProductBaseTypes(SessionContext ctx) Deprecated.since agesReturns the valid base products types for this variant type- Specified by:
getValidProductBaseTypesin classGeneratedVariantType- Parameters:
ctx- the SessionContext- Returns:
- the valid base product types (
ComposedType)
-
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
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(String qualifier, Type type, int modifiers) throws JaloDuplicateQualifierException Deprecated.Creates a newVariantAttributeDescriptor- Parameters:
qualifier- the qualifier of the newAttributeDescriptortype- the type of the newAttributeDescriptormodifiers- the modifiers of the newAttributeDescriptor- Returns:
- the created
AttributeDescriptor - Throws:
JaloDuplicateQualifierException- will be thrown if anAttributeDescriptorwith this code already exists
-
getVariantAttributes
@Deprecated(since="ages", forRemoval=false) public List<VariantAttributeDescriptor> getVariantAttributes(SessionContext ctx) Deprecated.since ages - useVariantsService.getVariantAttributesForVariantType(de.hybris.platform.variants.model.VariantTypeModel)instead.Returns the attributes of thisVariantType- Specified by:
getVariantAttributesin classGeneratedVariantType- Parameters:
ctx- the session context- Returns:
- an attributes collection
-
setVariantAttributes
@Deprecated(since="ages", forRemoval=false) public void setVariantAttributes(SessionContext ctx, List<VariantAttributeDescriptor> newOnes) Deprecated.Removes old attributes if necessary and checks if enclosing type and meta type is set correctly.- Specified by:
setVariantAttributesin classGeneratedVariantType- Parameters:
ctx- the session contextnewOnes- the attributes which should be assigned
-
getDeclaredAttributeDescriptors
Deprecated.Description copied from class:ComposedTypeReturns 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:
getDeclaredAttributeDescriptorsin classComposedType- See Also:
-
setDeclaredAttributeDescriptors
@Deprecated(since="ages", forRemoval=false) public void setDeclaredAttributeDescriptors(Set fds) throws JaloInvalidParameterException Deprecated.since ages- Overrides:
setDeclaredAttributeDescriptorsin classComposedType- Throws:
JaloInvalidParameterException
-
VariantsServiceinstead.