Class ClassificationHelper
- java.lang.Object
-
- de.hybris.platform.catalog.jalo.classification.ClassificationHelper
-
public class ClassificationHelper extends java.lang.ObjectProvides some static helper for classification import.
-
-
Constructor Summary
Constructors Constructor Description ClassificationHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetLayer(java.lang.String classificationNumber)Return the number of an eclass layer for the given classification number.static java.lang.StringgetSuperCategoryCode(java.lang.String classificationNumber, int layer)Return the code of the super category for the given eclass- or unspsc classification Number and the layer.
-
-
-
Method Detail
-
getLayer
public static int getLayer(java.lang.String classificationNumber)
Return the number of an eclass layer for the given classification number.- Parameters:
classificationNumber- the classification number- Returns:
- the number of the eclass layer
-
getSuperCategoryCode
public static java.lang.String getSuperCategoryCode(java.lang.String classificationNumber, int layer)Return the code of the super category for the given eclass- or unspsc classification Number and the layer.- Parameters:
classificationNumber- the classification numberlayer- the layer- Returns:
- code of the super category
-
-