Class ReadService
- java.lang.Object
-
- de.hybris.platform.integrationbackoffice.services.ReadService
-
public class ReadService extends java.lang.ObjectHandles the read requests from the extension's widgets
-
-
Constructor Summary
Constructors Constructor Description ReadService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<AttributeDescriptorModel>getAttributesForType(ComposedTypeModel type)Get the set of AttributeDescriptionModel for a given ComposedTypeModeljava.util.List<ComposedTypeModel>getAvailableTypes()Get ComposedTypedModels from type systemComposedTypeModelgetComplexTypeForAttributeDescriptor(AttributeDescriptorModel attributeDescriptorModel)Gets a CollectionType's or MapType's element's ComposedTypeModel (if it is a collection of complex types)java.io.InputStreamgetEDMX(IntegrationObjectModel integrationObject)Get an EDMX representation of a given integration objectFlexibleSearchServicegetFlexibleSearchService()java.util.List<IntegrationObjectModel>getIntegrationObjectModels()Retrieves all IntegrationObjectModelsjava.util.List<IntegrationType>getIntegrationTypes()Retrieves all available IntegrationTypesbooleanisAtomicType(java.lang.String attributeType)Checks whether a TypeModel's attribute type is an atomic type or a flexible atomic typebooleanisCollectionType(java.lang.String attributeType)Checks whether a TypeModel's attribute type is a collection type or a flexible collection typebooleanisComplexType(TypeModel typeModel)Checks whether a TypeModel is a ComposedType or an EnumerationMetaTypebooleanisComposedType(java.lang.String attributeType)Checks whether a TypeModel's attribute type is a composed type or a flexible composed typebooleanisEnumerationMetaType(java.lang.String attributeType)Checks whether a TypeModel's attribute type is an enumeration meta type or a flexible enumeration meta typebooleanisMapType(java.lang.String attributeType)Checks whether a TypeModel's attribute type is a map type or a flexible map typevoidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService)voidsetODataDefaultSchemaGenerator(SchemaGenerator oDataDefaultSchemaGenerator)voidsetTypeService(TypeService typeService)
-
-
-
Method Detail
-
setODataDefaultSchemaGenerator
public void setODataDefaultSchemaGenerator(SchemaGenerator oDataDefaultSchemaGenerator)
-
setFlexibleSearchService
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
setTypeService
public void setTypeService(TypeService typeService)
-
getFlexibleSearchService
public FlexibleSearchService getFlexibleSearchService()
-
isCollectionType
public boolean isCollectionType(java.lang.String attributeType)
Checks whether a TypeModel's attribute type is a collection type or a flexible collection type- Parameters:
attributeType- the attribute type to evaluate- Returns:
- if the attribute type is of CollectionType
-
isComposedType
public boolean isComposedType(java.lang.String attributeType)
Checks whether a TypeModel's attribute type is a composed type or a flexible composed type- Parameters:
attributeType- the attribute type to evaluate- Returns:
- if the attribute type is of ComposedType
-
isEnumerationMetaType
public boolean isEnumerationMetaType(java.lang.String attributeType)
Checks whether a TypeModel's attribute type is an enumeration meta type or a flexible enumeration meta type- Parameters:
attributeType- the attribute type to evaluate- Returns:
- if the attribute type is of EnumerationMetaType
-
isAtomicType
public boolean isAtomicType(java.lang.String attributeType)
Checks whether a TypeModel's attribute type is an atomic type or a flexible atomic type- Parameters:
attributeType- the attribute type to evaluate- Returns:
- if the attribute type is of AtomicType
-
isMapType
public boolean isMapType(java.lang.String attributeType)
Checks whether a TypeModel's attribute type is a map type or a flexible map type- Parameters:
attributeType- the attribute type to evaluate- Returns:
- if the attribute type is of MapType
-
isComplexType
public boolean isComplexType(TypeModel typeModel)
Checks whether a TypeModel is a ComposedType or an EnumerationMetaType- Parameters:
typeModel- the type model to evaluate- Returns:
- if the attribute is a complex type
-
getComplexTypeForAttributeDescriptor
public ComposedTypeModel getComplexTypeForAttributeDescriptor(AttributeDescriptorModel attributeDescriptorModel)
Gets a CollectionType's or MapType's element's ComposedTypeModel (if it is a collection of complex types)- Parameters:
attributeDescriptorModel- the attribute descriptor of the collection- Returns:
- the collection's element's ComposedTypeModel
-
getIntegrationObjectModels
public java.util.List<IntegrationObjectModel> getIntegrationObjectModels()
Retrieves all IntegrationObjectModels- Returns:
- list of all IntegrationObjectModels
-
getIntegrationTypes
public java.util.List<IntegrationType> getIntegrationTypes()
Retrieves all available IntegrationTypes- Returns:
- list of IntegrationTypes
-
getAvailableTypes
public java.util.List<ComposedTypeModel> getAvailableTypes()
Get ComposedTypedModels from type system- Returns:
- list of ComposedTypeModels
-
getAttributesForType
public java.util.Set<AttributeDescriptorModel> getAttributesForType(ComposedTypeModel type)
Get the set of AttributeDescriptionModel for a given ComposedTypeModel- Parameters:
type- a ComposedTypeModel object- Returns:
- the set of AttributeDescriptorModel of the ComposedTypeModel's attributes
-
getEDMX
public java.io.InputStream getEDMX(IntegrationObjectModel integrationObject) throws InvalidODataSchemaException
Get an EDMX representation of a given integration object- Parameters:
integrationObject- an integration object to represent- Returns:
- an input stream containing the EDMX representation of the integration object
- Throws:
InvalidODataSchemaException- when schema generator fails
-
-