public class DefaultTypeService extends Object implements TypeService
| Modifier and Type | Class and Description |
|---|---|
protected class |
DefaultTypeService.MyClassificationType |
protected class |
DefaultTypeService.MyInvalidationListener |
protected class |
DefaultTypeService.MyItemType |
protected class |
DefaultTypeService.MyTypedObject |
protected class |
DefaultTypeService.MyWidgetType |
| Constructor and Description |
|---|
DefaultTypeService() |
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 typepublic 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 String getAttributeCodeFromPropertyQualifier(String propertyQualifier)
TypeServicegetAttributeCodeFromPropertyQualifier in interface TypeServicepropertyQualifier - the property qualifierpublic 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 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 setExtendedTypeCache(TypeCache typeCache)
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 String getDefaultEditorType(AttributeDescriptorModel attributeDescriptorModel)
protected String getDefaultEditorType(ClassAttributeAssignment caa)
protected TypeCache getExtendedTypeCache()
protected ExtendedType getExtendedTypeCached(String code)
protected InvalidationListener getItemInvalidationListener()
protected ModelService getModelService()
protected TypeCache getObjectTemplateCache()
protected ObjectTemplate getObjectTemplateCached(String code)
protected TypeService getTypeService()
protected TypeModel getValueType(PropertyDescriptor propertyDescriptor)
protected ClassificationType loadClassificationType(String code)
protected String resolveClassificationPropertyPath(String code, String classificationAttributeCode)
protected WidgetType loadWidgetType(String code)
protected ObjectTemplate loadItemTemplate(String code)
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 descriptorprotected PropertyDescriptorCodeResolver getPropertyDescriptorCodeResolver()
Copyright © 2017 SAP SE. All Rights Reserved.