Class ClassificationTypeLoader
java.lang.Object
de.hybris.platform.cockpit.services.meta.impl.AbstractTypeLoader
de.hybris.platform.cockpit.services.meta.impl.ClassificationTypeLoader
- All Implemented Interfaces:
CachingTypeLoader,ExtendedTypeLoader
Type loader for classification types. Valid for typecode scheme '[Classification System ID]/[Version]/[Classification
Class Code]' and property qualifier scheme '[Classification System ID]/[Version]/[Classification Class
Code].[Classification Attribute Qualifier]'.
Example: SampleClassification/1.0/cpu.fsbSpeed
Example: SampleClassification/1.0/cpu.fsbSpeed
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttributeCodeFromPropertyQualifier(String propertyQualifier) Splits up a property qualifier and returns the attribute part of it.getAvailableValues(TypeModel type, PropertyDescriptor propertyDescriptor, TypeService typeService) Returns all possible values for the given property, e.g.protected ClassificationServiceprotected Stringprotected StringgetDefaultEditorType(AttributeDescriptorModel attributeDescriptor) protected TypeCacheprotected ExtendedTypegetExtendedTypeCached(String code) Returns the type codes of all extended types for the given item.getExtendedTypesForTemplate(ItemType type, String templateCode, TypeService typeService) Returns the extended types for a given template.protected PropertyDescriptorCodeResolverprotected SearchRestrictionServiceprotected SessionServicegetTypeCodeFromPropertyQualifier(String propertyQualifier) Splits up a property qualifier and returns the type part of it.getValueType(ObjectType enclosingType, PropertyDescriptor propertyDescriptor, TypeService typeService) Returns the value type for the given property descriptor.protected ExtendedTypeloadClassificationType(String code) loadType(String code, TypeService typeService) Returns an extended type for the given code.voidvoidremoveCachedType(String code) voidvoidsetClassificationService(ClassificationService classificationService) voidsetExtendedTypeCache(TypeCache typeCache) voidsetPropertyDescriptorCodeResolver(PropertyDescriptorCodeResolver propertyDescriptorCodeResolver) voidsetSearchRestrictionService(SearchRestrictionService searchRestrictionService) voidsetSessionService(SessionService sessionService) Methods inherited from class de.hybris.platform.cockpit.services.meta.impl.AbstractTypeLoader
getModelService, getPropertyService, getTypeService, setCockpitPropertyService, setModelService, setTypeService
-
Constructor Details
-
ClassificationTypeLoader
public ClassificationTypeLoader()
-
-
Method Details
-
loadType
Description copied from interface:ExtendedTypeLoaderReturns an extended type for the given code.- Specified by:
loadTypein interfaceExtendedTypeLoader- Parameters:
code- The code of the desired typetypeService- The cockpit type service- Returns:
- The extended type or null if none exists for the given code.
-
getValueType
public TypeModel getValueType(ObjectType enclosingType, PropertyDescriptor propertyDescriptor, TypeService typeService) Description copied from interface:ExtendedTypeLoaderReturns the value type for the given property descriptor.- Specified by:
getValueTypein interfaceExtendedTypeLoader- Overrides:
getValueTypein classAbstractTypeLoader- Parameters:
enclosingType- The type that owns the property- Returns:
- The value type or null if not handled by this type loader.
-
getAvailableValues
public List<Object> getAvailableValues(TypeModel type, PropertyDescriptor propertyDescriptor, TypeService typeService) Description copied from interface:ExtendedTypeLoaderReturns all possible values for the given property, e.g. all enumeration values if it's an enum.- Specified by:
getAvailableValuesin interfaceExtendedTypeLoader- Overrides:
getAvailableValuesin classAbstractTypeLoader- Parameters:
type- The value type of the propertypropertyDescriptor- The property.- Returns:
- The list of available values or null if not handled by this type loader.
-
getExtendedTypeCodes
Description copied from interface:ExtendedTypeLoaderReturns the type codes of all extended types for the given item.- Specified by:
getExtendedTypeCodesin interfaceExtendedTypeLoader- Returns:
- The type codes or null if not handled by this type loader.
-
getAttributeCodeFromPropertyQualifier
Description copied from interface:ExtendedTypeLoaderSplits up a property qualifier and returns the attribute part of it.- Specified by:
getAttributeCodeFromPropertyQualifierin interfaceExtendedTypeLoader- Overrides:
getAttributeCodeFromPropertyQualifierin classAbstractTypeLoader- Returns:
- the attribute code or null if not handled by this type loader.
-
getTypeCodeFromPropertyQualifier
Description copied from interface:ExtendedTypeLoaderSplits up a property qualifier and returns the type part of it.- Specified by:
getTypeCodeFromPropertyQualifierin interfaceExtendedTypeLoader- Overrides:
getTypeCodeFromPropertyQualifierin classAbstractTypeLoader- Returns:
- the type code or null if not handled by this type loader.
-
getDefaultEditorType
-
getDefaultEditorType
-
loadClassificationType
-
getExtendedTypesForTemplate
public Collection<ExtendedType> getExtendedTypesForTemplate(ItemType type, String templateCode, TypeService typeService) Description copied from interface:ExtendedTypeLoaderReturns the extended types for a given template.- Specified by:
getExtendedTypesForTemplatein interfaceExtendedTypeLoader- Overrides:
getExtendedTypesForTemplatein classAbstractTypeLoader- Parameters:
type- The item type of the template.templateCode- The template code (without the type part, e.g. CPU for Product.CPU).- Returns:
- The extended types or null if not handled by this type loader.
-
setClassificationService
-
getClassificationService
-
setExtendedTypeCache
-
getExtendedTypeCache
-
getExtendedTypeCached
-
removeCachedType
- Specified by:
removeCachedTypein interfaceCachingTypeLoader
-
removeDefaultCachedTypes
public void removeDefaultCachedTypes()- Specified by:
removeDefaultCachedTypesin interfaceCachingTypeLoader
-
removeAllCachedTypes
public void removeAllCachedTypes()- Specified by:
removeAllCachedTypesin interfaceCachingTypeLoader
-
setSessionService
-
getSessionService
-
setSearchRestrictionService
-
getSearchRestrictionService
-
getPropertyDescriptorCodeResolver
- Returns:
- the propertyDescriptorCodeResolver
-
setPropertyDescriptorCodeResolver
public void setPropertyDescriptorCodeResolver(PropertyDescriptorCodeResolver propertyDescriptorCodeResolver)
-