public class ExtensibleTypeService extends Object implements TypeService
TypeService that allows one to set an ExtendedTypeLoader to load extended types,
which is usually a spring-configured instance of DefaultExtendedTypeChain.| Modifier and Type | Class and Description |
|---|---|
protected static class |
ExtensibleTypeService.MyInvalidationListener |
protected class |
ExtensibleTypeService.MyItemType |
protected class |
ExtensibleTypeService.MyTypedObject |
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Set<String>> |
usedInSelectionOf |
| Constructor and Description |
|---|
ExtensibleTypeService() |
public boolean checkItemAlive(TypedObject typedItem)
TypeServicecheckItemAlive in interface TypeServicetypedItem - the typed itempublic int countAllInstancesOf(ObjectType type)
TypeServicecountAllInstancesOf in interface TypeServicetype - the typepublic Collection<TypedObject> getAllInstancesOf(ObjectType type)
TypeServiceTypeService.countAllInstancesOf(ObjectType) before calling this methodgetAllInstancesOf in interface TypeServicetype - the typeprotected Collection<TypedObject> getAllInstancesOf(String typecode)
public Collection<TypedObject> getAllInstancesOf(ObjectType type, String sortBy, String sortOrder)
TypeServiceTypeService.countAllInstancesOf(ObjectType) before calling this methodgetAllInstancesOf in interface TypeServicetype - the typesortBy - given sort propertysortOrder - given sort orderpublic void clear()
public Set<ObjectType> getAllSubtypes(ObjectType type)
TypeServicegetAllSubtypes in interface TypeServicetype - the typepublic List<ObjectType> getAllSupertypes(ObjectType type)
TypeServicegetAllSupertypes in interface TypeServicetype - the typepublic List<Object> getAvailableValues(PropertyDescriptor propertyDescriptor)
TypeServicegetAvailableValues in interface TypeServicepropertyDescriptor - the property descriptorpublic List<Object> getAvailableValues(PropertyDescriptor propertyDescriptor, TypedObject object)
TypeServicegetAvailableValues in interface TypeServicepropertyDescriptor - the property descriptorpublic BaseType getBaseType(String code)
TypeServicegetBaseType in interface TypeServicecode - the codepublic ObjectTemplate getBestTemplate(TypedObject object)
TypeServicegetBestTemplate in interface TypeServiceobject - the objectpublic ExtendedType getExtendedType(String code)
TypeServicegetExtendedType in interface TypeServicecode - the codepublic ObjectTemplate getObjectTemplate(String code)
TypeServicegetObjectTemplate in interface TypeServicecode - the codepublic List<ObjectTemplate> getObjectTemplates(BaseType type)
TypeServicegetObjectTemplates in interface TypeServicetype - the typepublic ObjectType getObjectType(String code)
TypeServicegetObjectType in interface TypeServicecode - the codepublic ObjectType getObjectTypeFromPropertyQualifier(String propertyQualifier)
TypeServicegetObjectTypeFromPropertyQualifier in interface TypeServicepropertyQualifier - the property qualifierpublic PropertyDescriptor getPropertyDescriptor(ObjectType type, String qualifier)
TypeServicegetPropertyDescriptor in interface TypeServicetype - the typequalifier - the qualifierpublic PropertyDescriptor getPropertyDescriptor(String propertyQualifier)
TypeServicegetPropertyDescriptor in interface TypeServicepropertyQualifier - the property qualifierpublic String getAttributeCodeFromPropertyQualifier(String propertyQualifier)
TypeServicegetAttributeCodeFromPropertyQualifier in interface TypeServicepropertyQualifier - the property qualifierpublic String getTypeCodeFromPropertyQualifier(String propertyQualifier)
TypeServicegetTypeCodeFromPropertyQualifier in interface TypeServicepropertyQualifier - the property qualifierpublic String getValueTypeCode(PropertyDescriptor propertyDescriptor)
TypeServicegetValueTypeCode in interface TypeServicepropertyDescriptor - the property descriptorpublic void init()
public void setBaseTypeCache(TypeCache typeCache)
public void setBaseTypePropertyCache(PropertyCache propCache)
public void setModelService(ModelService modelService)
public void setObjectTemplateCache(TypeCache typeCache)
public void setTypeService(TypeService typeService)
public TypedObject wrapItem(Object itemObject)
TypeServicewrapItem in interface TypeServiceitemObject - the itempublic List<TypedObject> wrapItems(Collection<? extends Object> itemObjects)
TypeServicewrapItems in interface TypeServiceitemObjects - the itemspublic List<ItemModel> unwrapItems(Collection<TypedObject> typedObjects)
TypeServiceunwrapItems in interface TypeServiceprotected void addToCache(ObjectType type)
protected TypeCache getBaseTypeCache()
protected void addBaseTypePropertyToCache(String qualifier, PropertyDescriptor propDesc)
protected PropertyCache getBaseTypePropertyCache()
protected PropertyDescriptor getBaseTypePropertyCached(String qualifier)
protected ModelService getModelService()
protected TypeCache getObjectTemplateCache()
protected ObjectTemplate getObjectTemplateCached(String code)
protected TypeService getTypeService()
protected TypeModel getValueType(PropertyDescriptor propertyDescriptor)
@Deprecated protected CockpitItemTemplateModel fetchItemTemplate(ComposedTypeModel composedType, String templateCode)
CockpitManager.getCockpitItemTemplate(ComposedType, String)protected ObjectTemplate loadItemTemplate(String code)
protected String getDefaultEditorType(AttributeDescriptorModel attributeDescriptor)
public PropertyDescriptor getSelectionOf(PropertyDescriptor descriptor)
TypeServicegetSelectionOf in interface TypeServicedescriptor - the source property descriptorpublic Collection<PropertyDescriptor> getReverseSelectionOf(PropertyDescriptor descriptor)
TypeServicegetReverseSelectionOf in interface TypeServicedescriptor - the source property descriptorpublic void setPropertyService(PropertyService propertyService)
protected PropertyService getPropertyService()
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
public FlexibleSearchService getFlexibleSearchService()
public void setExtendedTypeChain(ExtendedTypeLoader extendedTypeChain)
protected ExtendedTypeLoader getExtendedTypeChain()
Copyright © 2017 SAP SE. All Rights Reserved.