TODO remove Foo - merge test@Deprecated public class VariantsManager extends Object
| Constructor and Description |
|---|
VariantsManager()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
beforeItemCreation(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap attributes)
Deprecated.
|
Product |
createBaseProduct(String code,
String variantTypeCode)
Deprecated.
please use {see de.hybris.platform.servicelayer.model.ModelService} instead
|
SavedQuery |
createBaseProductsSearch()
Deprecated.
|
void |
createEssentialData(Map params,
JspContext jspc)
Deprecated.
|
VariantAttributeDescriptor |
createVariantAttributeDescriptor(Map attributeValues)
Deprecated.
|
VariantAttributeDescriptor |
createVariantAttributeDescriptor(SessionContext ctx,
Map attributeValues)
Deprecated.
Generated methods from old GeneratedVariantsManager starts
|
VariantType |
createVariantType(Map attributeValues)
Deprecated.
|
VariantType |
createVariantType(SessionContext ctx,
Map attributeValues)
Deprecated.
|
VariantType |
createVariantType(String code)
Deprecated.
please use {see de.hybris.platform.servicelayer.model.ModelService} instead
|
Collection<Product> |
getAllBaseProducts(SessionContext ctx)
Deprecated.
shouldn't be use because of performance problems.
|
Collection |
getAssignedAttributeValues(SessionContext ctx,
VariantType vt,
String qualifier)
Deprecated.
|
Map<String,Collection> |
getAssignedVariantAttributes(Product baseProduct)
Deprecated.
please use {see de.hybris.platform.product.VariantsService.getAssignedVariantAttributes()} instead
|
Class |
getAttributeValueClass(VariantType vt,
String qualifier)
Deprecated.
|
static VariantsManager |
getInstance()
Deprecated.
|
String |
getName()
Deprecated.
|
Map<AttributeDescriptor,Object> |
getProductAttributes(Product product,
Collection ignoreAttributes)
Deprecated.
|
Collection |
getVariantProductByAttributeValues(Map attributeValuesMap)
Deprecated.
please use
getVariantProductByAttributeValues(Product, Map) instead |
Collection<VariantProduct> |
getVariantProductByAttributeValues(Map<AttributeDescriptor,Object> attributeValuesMap,
String variantTypeCode)
Deprecated.
please use {see de.hybris.platform.product.VariantsService.getVariantProductByAttributeValues()}
instead
|
Collection<VariantProduct> |
getVariantProductByAttributeValues(Product base,
Map values)
Deprecated.
please use {see de.hybris.platform.product.VariantsService.getVariantProductByAttributeValues()}
instead
|
Collection<VariantProduct> |
getVariants(Product item)
Deprecated.
|
Collection<VariantProduct> |
getVariants(SessionContext ctx,
Product baseProduct)
Deprecated.
covered by ProductModel
|
VariantType |
getVariantType(Product item)
Deprecated.
|
VariantType |
getVariantType(SessionContext ctx,
Product item)
Deprecated.
|
Collection<VariantType> |
getVariantTypesByAttributes(Map<String,Type> attributeMap,
boolean matchExact)
Deprecated.
|
boolean |
isBaseProduct(Product product)
Deprecated.
covered by ProductModel
|
boolean |
isCreatorDisabled()
Deprecated.
Part of
DataCreator interface. |
void |
removeVariants(Collection<VariantProduct> variants,
Product baseProduct)
Deprecated.
covered by ProductModel
|
void |
removeVariants(SessionContext ctx,
Collection<VariantProduct> variants,
Product baseProduct)
Deprecated.
covered by ProductModel
|
void |
setVariants(Product item,
Collection<VariantProduct> value)
Deprecated.
|
void |
setVariants(SessionContext ctx,
Product baseProduct,
Collection variants)
Deprecated.
|
void |
setVariantType(Product item,
VariantType param)
Deprecated.
covered by ProductModel
|
void |
setVariantType(SessionContext ctx,
Product item,
VariantType param)
Deprecated.
covered by ProductModel
|
@Deprecated public void beforeItemCreation(SessionContext ctx, ComposedType type, Item.ItemAttributeMap attributes) throws JaloBusinessException
JaloBusinessExceptionpublic static VariantsManager getInstance()
@Deprecated public VariantType createVariantType(String code)
code - @Deprecated public Map<AttributeDescriptor,Object> getProductAttributes(Product product, Collection ignoreAttributes)
Collection ignoreAttributes = Arrays.asList(
new String[]
{
Item.TYPE,
Product.NAME,
VariantsConstants.Attributes.Product.VARIANTS,
VariantsConstants.Attributes.Product.VARIANTTYPE,
VariantsConstants.Attributes.VariantProduct.BASEPRODUCT
}
);
VariantsManager vm = (VariantsManager) jaloSession.getExtensionManager( ).getExtension( VariantsConstants.EXTENSIONNAME )
Product product = jaloSession.getProductManager().getProductsByCode("dummy");
Map attributes = vm.getProductAttributes( product, ignoreAttributes);
product - the productignoreAttributes - the attributes to be ignored (optional)@Deprecated public Collection getAssignedAttributeValues(SessionContext ctx, VariantType vt, String qualifier)
ctx - vt - qualifier - @Deprecated public Map<String,Collection> getAssignedVariantAttributes(Product baseProduct) throws JaloInvalidParameterException, JaloSecurityException
@Deprecated public Class getAttributeValueClass(VariantType vt, String qualifier)
vt - qualifier - @Deprecated public Collection<VariantType> getVariantTypesByAttributes(Map<String,Type> attributeMap, boolean matchExact)
Map attributeMap = new HashMap();
attributeMap.put( "color" , jaloSession.getTypeManager().getType( "java.lang.String" ) );
attributeMap.put( "unit" , jaloSession.getTypeManager().getComposedType( Unit.class ) );
<p/>
VariantsManager vm = (VariantsManager)jaloSession.getExtension(VariantsConstants.EXTENSIONNAME);
Collection matchingVariantTypes = vm.getVariantTypesByAttributes( attributeMap );
attributeMap - the requested attributes as Map { String -> TypematchExact - if
true
only types which do not have additional variant attributes are returned, otherwise all types whith the
requested attribute are returned@Deprecated public Collection getVariantProductByAttributeValues(Map attributeValuesMap)
getVariantProductByAttributeValues(Product, Map) instead
Map valuesMap = new HashMap();
valuesMap.put(getSession().getTypeManager().getComposedType("Shoe").getAttributeDescriptor("color")
, "Camel/Rot");
<p/>
VariantsManager vm = (VariantsManager)getSession()..getExtension(VariantsConstants.EXTENSIONNAME);
Collection matchingVariantProducts = vm..getVariantProductByAttributeValues( valuesMap);
attributeValuesMap - the requested values as Map { AttributeDescriptor -> {Object} }@Deprecated public Collection<VariantProduct> getVariantProductByAttributeValues(Map<AttributeDescriptor,Object> attributeValuesMap, String variantTypeCode)
Map valuesMap = new HashMap();
valuesMap.put(getSession().getTypeManager().getComposedType("Trousers").getAttributeDescriptor("
color"), "light broken-in");
<p/>
VariantsManager vm = (VariantsManager)getSession()..getExtension(VariantsConstants.EXTENSIONNAME);
Collection matchingVariantProducts = vm..getVariantProductByAttributeValues( valuesMap, "Trousers");
attributeValuesMap - the requested values as Map { AttributeDescriptor -> {Object} }variantTypeCode - the requested variant typecode@Deprecated public Collection<VariantProduct> getVariantProductByAttributeValues(Product base, Map values)
base - the base product to get variants forvalues - the variant attribute values to matchpublic boolean isCreatorDisabled()
DataCreator interface. Returns false.false@Deprecated public void createEssentialData(Map params, JspContext jspc) throws Exception
Exception@Deprecated public SavedQuery createBaseProductsSearch()
@Deprecated public Product createBaseProduct(String code, String variantTypeCode)
code - the code of the new base productvariantTypeCode - the code of the variants type@Deprecated public void setVariants(SessionContext ctx, Product baseProduct, Collection variants)
@Deprecated public Collection<Product> getAllBaseProducts(SessionContext ctx)
ctx - @Deprecated public boolean isBaseProduct(Product product)
product - @Deprecated public Collection<VariantProduct> getVariants(SessionContext ctx, Product baseProduct)
ctx - baseProduct - @Deprecated public void removeVariants(Collection<VariantProduct> variants, Product baseProduct)
variants - baseProduct - @Deprecated public void removeVariants(SessionContext ctx, Collection<VariantProduct> variants, Product baseProduct)
ctx - variants - baseProduct - @Deprecated public void setVariantType(SessionContext ctx, Product item, VariantType param)
ctx - item - param - @Deprecated public void setVariantType(Product item, VariantType param)
item - param - public VariantAttributeDescriptor createVariantAttributeDescriptor(SessionContext ctx, Map attributeValues)
public VariantAttributeDescriptor createVariantAttributeDescriptor(Map attributeValues)
public VariantType createVariantType(SessionContext ctx, Map attributeValues)
public VariantType createVariantType(Map attributeValues)
public String getName()
public Collection<VariantProduct> getVariants(Product item)
public void setVariants(Product item, Collection<VariantProduct> value)
public VariantType getVariantType(SessionContext ctx, Product item)
public VariantType getVariantType(Product item)
Copyright © 2017 SAP SE. All Rights Reserved.