Class DefaultClassificationSystemService
java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
de.hybris.platform.classification.impl.DefaultClassificationSystemService
- All Implemented Interfaces:
ClassificationSystemService,Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
public class DefaultClassificationSystemService
extends AbstractBusinessService
implements ClassificationSystemService
Default implementation of the
ClassificationSystemService.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO -
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
modelService, sessionService, txManagerFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttributeForCode(ClassificationSystemVersionModel systemVersion, String code) Retrieves theClassificationAttributeModelin the classification system version with the code.getAttributeUnitForCode(ClassificationSystemVersionModel systemVersion, String code) Retrieves theClassificationAttributeUnitModelin the classification system version with the code.Retrieves allClassificationAttributeUnitModels in the classification system version.getAttributeValueForCode(ClassificationSystemVersionModel systemVersion, String code) Retrieves theClassificationAttributeValueModelin the classification system version with the code.getClassForCode(ClassificationSystemVersionModel systemVersion, String code) Retrieves theClassificationClassModelin the classification system version with its unique code.getConvertibleUnits(ClassificationAttributeUnitModel attributeUnit) Retrieves all other unites of the same type in the system version for the specific attribute unit.getRootClassesForSystemVersion(ClassificationSystemVersionModel systemVersion) Retrieves all rootClassificationClassModels in the classification system version.getSystemForId(String id) Retrieves theClassificationSystemModelwith the specifiedid.getSystemVersion(String systemId, String systemVersion) getUnitsOfTypeForSystemVersion(ClassificationSystemVersionModel systemVersion, String type) Retrieves allClassificationAttributeUnitModels in the classification system version with the specific type.getUnitTypesForSystemVersion(ClassificationSystemVersionModel systemVersion) Retrieves all unit types of theClassificationAttributeUnitModels in the classification system version.voidsetCategoryService(CategoryService categoryService) voidsetClassificationSystemDao(ClassificationSystemDao classificationSystemDao) voidsetClassificationSystemVersionDao(ClassificationSystemVersionDao classificationSystemVersionDao) Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
Constructor Details
-
DefaultClassificationSystemService
public DefaultClassificationSystemService()
-
-
Method Details
-
getSystemForId
Description copied from interface:ClassificationSystemServiceRetrieves theClassificationSystemModelwith the specifiedid.- Specified by:
getSystemForIdin interfaceClassificationSystemService- Parameters:
id- the id of the classification system- Returns:
- the found
ClassificationSystemModel.
-
getSystemVersion
Description copied from interface:ClassificationSystemService- Specified by:
getSystemVersionin interfaceClassificationSystemService- Parameters:
systemId- the id of the classification systemsystemVersion- the version of the classification system version- Returns:
- the found
ClassificationSystemVersionModel
-
getClassForCode
public ClassificationClassModel getClassForCode(ClassificationSystemVersionModel systemVersion, String code) Description copied from interface:ClassificationSystemServiceRetrieves theClassificationClassModelin the classification system version with its unique code.- Specified by:
getClassForCodein interfaceClassificationSystemService- Parameters:
systemVersion- the classification system version of the classification classcode- the code of the classification class- Returns:
- the found
ClassificationClassModel
-
getAttributeForCode
public ClassificationAttributeModel getAttributeForCode(ClassificationSystemVersionModel systemVersion, String code) Description copied from interface:ClassificationSystemServiceRetrieves theClassificationAttributeModelin the classification system version with the code.- Specified by:
getAttributeForCodein interfaceClassificationSystemService- Parameters:
systemVersion- the classification system version of the classification attributecode- the code of the classification attribute- Returns:
- the found
ClassificationAttributeModel
-
getAttributeValueForCode
public ClassificationAttributeValueModel getAttributeValueForCode(ClassificationSystemVersionModel systemVersion, String code) Description copied from interface:ClassificationSystemServiceRetrieves theClassificationAttributeValueModelin the classification system version with the code.- Specified by:
getAttributeValueForCodein interfaceClassificationSystemService- Parameters:
systemVersion- the classification system version of the classification attribute valuecode- the code of the classification attribute value- Returns:
- the found
ClassificationAttributeValueModel
-
getConvertibleUnits
public Collection<ClassificationAttributeUnitModel> getConvertibleUnits(ClassificationAttributeUnitModel attributeUnit) Description copied from interface:ClassificationSystemServiceRetrieves all other unites of the same type in the system version for the specific attribute unit.- Specified by:
getConvertibleUnitsin interfaceClassificationSystemService- Parameters:
attributeUnit- the classification attribute unit which has convertible units- Returns:
- all OTHER
ClassificationAttributeUnitModels that have the same type and in the same system version
-
getAttributeUnitForCode
public ClassificationAttributeUnitModel getAttributeUnitForCode(ClassificationSystemVersionModel systemVersion, String code) Description copied from interface:ClassificationSystemServiceRetrieves theClassificationAttributeUnitModelin the classification system version with the code.- Specified by:
getAttributeUnitForCodein interfaceClassificationSystemService- Parameters:
systemVersion- the classification system version of the classification attribute unitcode- the code of the classification attribute unit- Returns:
- the found
ClassificationAttributeUnitModel
-
getAttributeUnitsForSystemVersion
public Collection<ClassificationAttributeUnitModel> getAttributeUnitsForSystemVersion(ClassificationSystemVersionModel systemVersion) Description copied from interface:ClassificationSystemServiceRetrieves allClassificationAttributeUnitModels in the classification system version.- Specified by:
getAttributeUnitsForSystemVersionin interfaceClassificationSystemService- Parameters:
systemVersion- the classification system version that contains the classification attribute units- Returns:
- the collection of all found
ClassificationAttributeUnitModels
-
getUnitsOfTypeForSystemVersion
public Collection<ClassificationAttributeUnitModel> getUnitsOfTypeForSystemVersion(ClassificationSystemVersionModel systemVersion, String type) Description copied from interface:ClassificationSystemServiceRetrieves allClassificationAttributeUnitModels in the classification system version with the specific type.- Specified by:
getUnitsOfTypeForSystemVersionin interfaceClassificationSystemService- Parameters:
systemVersion- the classification system version that contains the classification attribute unitstype- unit type of the classification attribute units- Returns:
- the collection of all found
ClassificationAttributeUnitModels
-
getUnitTypesForSystemVersion
public Collection<String> getUnitTypesForSystemVersion(ClassificationSystemVersionModel systemVersion) Description copied from interface:ClassificationSystemServiceRetrieves all unit types of theClassificationAttributeUnitModels in the classification system version.- Specified by:
getUnitTypesForSystemVersionin interfaceClassificationSystemService- Parameters:
systemVersion- the classification system version that contains the classification attribute units- Returns:
- the collection of all unit types
-
getRootClassesForSystemVersion
public Collection<ClassificationClassModel> getRootClassesForSystemVersion(ClassificationSystemVersionModel systemVersion) Description copied from interface:ClassificationSystemServiceRetrieves all rootClassificationClassModels in the classification system version.- Specified by:
getRootClassesForSystemVersionin interfaceClassificationSystemService- Parameters:
systemVersion- the classification system version that contains the root classification attribute classes- Returns:
- the collection of all found root
ClassificationClassModels
-
setCategoryService
-
setClassificationSystemDao
-
setClassificationSystemVersionDao
public void setClassificationSystemVersionDao(ClassificationSystemVersionDao classificationSystemVersionDao)
-