Class AbstractTypeLoader
java.lang.Object
de.hybris.platform.cockpit.services.meta.impl.AbstractTypeLoader
- All Implemented Interfaces:
ExtendedTypeLoader
- Direct Known Subclasses:
ClassificationTypeLoader,WidgetTypeLoader
Holds common services for type loaders.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttributeCodeFromPropertyQualifier(String propertyQualifier) Splits up a property qualifier and returns the attribute part of it.getAvailableValues(TypeModel valueType, PropertyDescriptor propertyDescriptor, TypeService typeService) Returns all possible values for the given property, e.g.getExtendedTypesForTemplate(ItemType type, String templateCode, TypeService typeService) Returns the extended types for a given template.protected ModelServiceprotected PropertyServicegetTypeCodeFromPropertyQualifier(String propertyQualifier) Splits up a property qualifier and returns the type part of it.protected TypeServicegetValueType(ObjectType enclosingType, PropertyDescriptor propertyDescriptor, TypeService typeService) Returns the value type for the given property descriptor.voidsetCockpitPropertyService(PropertyService propertyService) voidsetModelService(ModelService modelService) voidsetTypeService(TypeService typeService) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.cockpit.services.meta.ExtendedTypeLoader
getExtendedTypeCodes, loadType
-
Constructor Details
-
AbstractTypeLoader
public AbstractTypeLoader()
-
-
Method Details
-
setTypeService
-
setModelService
-
setCockpitPropertyService
-
getTypeService
-
getModelService
-
getPropertyService
-
getAvailableValues
public List<Object> getAvailableValues(TypeModel valueType, 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- Parameters:
valueType- The value type of the propertypropertyDescriptor- The property.- Returns:
- The list of available values or null if not handled by this type loader.
-
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- 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.
-
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- Parameters:
enclosingType- The type that owns the property- Returns:
- The value type 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- 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- Returns:
- the type code or null if not handled by this type loader.
-