public class ClassificationTypeLoader extends AbstractTypeLoader implements CachingTypeLoader
| Modifier and Type | Class and Description |
|---|---|
protected class |
ClassificationTypeLoader.MyClassificationType |
| Constructor and Description |
|---|
ClassificationTypeLoader() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttributeCodeFromPropertyQualifier(String propertyQualifier)
Splits up a property qualifier and returns the attribute part of it.
|
List<Object> |
getAvailableValues(TypeModel type,
PropertyDescriptor propertyDescriptor,
TypeService typeService)
Returns all possible values for the given property, e.g.
|
protected ClassificationService |
getClassificationService() |
protected String |
getDefaultEditorType(AttributeDescriptorModel attributeDescriptor) |
protected String |
getDefaultEditorType(ClassAttributeAssignment caa) |
protected TypeCache |
getExtendedTypeCache() |
protected ExtendedType |
getExtendedTypeCached(String code) |
Set<String> |
getExtendedTypeCodes(TypedObject item)
Returns the type codes of all extended types for the given item.
|
Collection<ExtendedType> |
getExtendedTypesForTemplate(ItemType type,
String templateCode,
TypeService typeService)
Returns the extended types for a given template.
|
protected PropertyDescriptorCodeResolver |
getPropertyDescriptorCodeResolver() |
protected SearchRestrictionService |
getSearchRestrictionService() |
protected SessionService |
getSessionService() |
String |
getTypeCodeFromPropertyQualifier(String propertyQualifier)
Splits up a property qualifier and returns the type part of it.
|
TypeModel |
getValueType(ObjectType enclosingType,
PropertyDescriptor propertyDescriptor,
TypeService typeService)
Returns the value type for the given property descriptor.
|
protected ExtendedType |
loadClassificationType(String code) |
ExtendedType |
loadType(String code,
TypeService typeService)
Returns an extended type for the given code.
|
void |
removeAllCachedTypes() |
void |
removeCachedType(String code) |
void |
removeDefaultCachedTypes() |
void |
setClassificationService(ClassificationService classificationService) |
void |
setExtendedTypeCache(TypeCache typeCache) |
void |
setPropertyDescriptorCodeResolver(PropertyDescriptorCodeResolver propertyDescriptorCodeResolver) |
void |
setSearchRestrictionService(SearchRestrictionService searchRestrictionService) |
void |
setSessionService(SessionService sessionService) |
getModelService, getPropertyService, getTypeService, setCockpitPropertyService, setModelService, setTypeServicepublic ExtendedType loadType(String code, TypeService typeService)
ExtendedTypeLoaderloadType in interface ExtendedTypeLoadercode - The code of the desired typetypeService - The cockpit type servicepublic TypeModel getValueType(ObjectType enclosingType, PropertyDescriptor propertyDescriptor, TypeService typeService)
ExtendedTypeLoadergetValueType in interface ExtendedTypeLoadergetValueType in class AbstractTypeLoaderenclosingType - The type that owns the propertypublic List<Object> getAvailableValues(TypeModel type, PropertyDescriptor propertyDescriptor, TypeService typeService)
ExtendedTypeLoadergetAvailableValues in interface ExtendedTypeLoadergetAvailableValues in class AbstractTypeLoadertype - The value type of the propertypropertyDescriptor - The property.public Set<String> getExtendedTypeCodes(TypedObject item)
ExtendedTypeLoadergetExtendedTypeCodes in interface ExtendedTypeLoaderpublic String getAttributeCodeFromPropertyQualifier(String propertyQualifier)
ExtendedTypeLoadergetAttributeCodeFromPropertyQualifier in interface ExtendedTypeLoadergetAttributeCodeFromPropertyQualifier in class AbstractTypeLoaderpublic String getTypeCodeFromPropertyQualifier(String propertyQualifier)
ExtendedTypeLoadergetTypeCodeFromPropertyQualifier in interface ExtendedTypeLoadergetTypeCodeFromPropertyQualifier in class AbstractTypeLoaderprotected String getDefaultEditorType(AttributeDescriptorModel attributeDescriptor)
protected String getDefaultEditorType(ClassAttributeAssignment caa)
protected ExtendedType loadClassificationType(String code)
public Collection<ExtendedType> getExtendedTypesForTemplate(ItemType type, String templateCode, TypeService typeService)
ExtendedTypeLoadergetExtendedTypesForTemplate in interface ExtendedTypeLoadergetExtendedTypesForTemplate in class AbstractTypeLoadertype - The item type of the template.templateCode - The template code (without the type part, e.g. CPU for Product.CPU).public void setClassificationService(ClassificationService classificationService)
protected ClassificationService getClassificationService()
public void setExtendedTypeCache(TypeCache typeCache)
protected TypeCache getExtendedTypeCache()
protected ExtendedType getExtendedTypeCached(String code)
public void removeCachedType(String code)
removeCachedType in interface CachingTypeLoaderpublic void removeDefaultCachedTypes()
removeDefaultCachedTypes in interface CachingTypeLoaderpublic void removeAllCachedTypes()
removeAllCachedTypes in interface CachingTypeLoaderpublic void setSessionService(SessionService sessionService)
protected SessionService getSessionService()
public void setSearchRestrictionService(SearchRestrictionService searchRestrictionService)
protected SearchRestrictionService getSearchRestrictionService()
protected PropertyDescriptorCodeResolver getPropertyDescriptorCodeResolver()
public void setPropertyDescriptorCodeResolver(PropertyDescriptorCodeResolver propertyDescriptorCodeResolver)
Copyright © 2017 SAP SE. All Rights Reserved.