public class ServiceMetadataProvider extends Object
ServiceMetadataProvider
, the calling class needs to provide an
endpointURL and an optional value of destination Name which is the target
destination configured for forwarding request to the corresponding S/4HANA or
SAP Marketing Cloud System.Modifier and Type | Class and Description |
---|---|
static class |
ServiceMetadataProvider.EntityMetadata
Object Representation of an Odata EntityType, Immutable class
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAllEntitySetNamesInDefaultSchema()
Get Names of all entity sets present in the default schema of the service
|
static CompletableFuture<ServiceMetadataProvider> |
getAsyncInstance(String serviceURI)
Get Asynchronous instance of
ServiceMetadataProvider , use functional
callbacks on the future object to get peocessed data. |
static CompletableFuture<ServiceMetadataProvider> |
getAsyncInstance(String serviceURI,
String destinationName)
Get Asynchronous instance of
ServiceMetadataProvider , use functional
callbacks on the future object to get peocessed data. |
ServiceMetadataProvider.EntityMetadata |
getEntityMetaDataForEntityType(String entitySetName)
Get metadata for an entityset.
|
Map<org.apache.olingo.odata2.api.edm.provider.EntityType,List<org.apache.olingo.odata2.api.edm.provider.Property>> |
getEntityToPropertiesDictionary()
Get a Dictionary of EntityType to All its constituent property, to get list
of all the properties in a EntityType just perform
Map#get(EntityType) operation on the Dictionary obtained via this
method giving key reference of an olingo styled EntityType |
Map<String,org.apache.olingo.odata2.api.edm.provider.EntityType> |
getEntityTypeDictionary()
Get EntitySet String to olingo Styled EntityType Dictionary
|
static ServiceMetadataProvider |
getInstance(String serviceURI)
Get Factory Instance of
ServiceMetadataProvider |
static ServiceMetadataProvider |
getInstance(String serviceURI,
String destinationName)
Get Factory Instance of
ServiceMetadataProvider |
Map<String,List<org.apache.olingo.odata2.api.edm.provider.AnnotationAttribute>> |
getPropertyAnnotationsforEntityProperties(List<org.apache.olingo.odata2.api.edm.provider.Property> propertyList)
A Map of PropertyNames to corresponding Annotation Attributes, to read V2
Annotations of a particular property
|
org.apache.olingo.odata2.api.edm.provider.EdmProvider |
getServiceMetadata()
Get olingo styled instance of metadata object parsed
|
String |
getServiceNameSpace()
Get Service qualifier name i.e.
|
public org.apache.olingo.odata2.api.edm.provider.EdmProvider getServiceMetadata()
EdmProvider
public String getServiceNameSpace()
Exception
public ServiceMetadataProvider.EntityMetadata getEntityMetaDataForEntityType(String entitySetName)
entitySetName
- Name od thepublic Set<String> getAllEntitySetNamesInDefaultSchema()
Exception
public Map<String,org.apache.olingo.odata2.api.edm.provider.EntityType> getEntityTypeDictionary()
Exception
public Map<org.apache.olingo.odata2.api.edm.provider.EntityType,List<org.apache.olingo.odata2.api.edm.provider.Property>> getEntityToPropertiesDictionary()
Map#get(EntityType)
operation on the Dictionary obtained via this
method giving key reference of an olingo styled EntityType
EntityType
to list of all its constituent propertiesException
public Map<String,List<org.apache.olingo.odata2.api.edm.provider.AnnotationAttribute>> getPropertyAnnotationsforEntityProperties(List<org.apache.olingo.odata2.api.edm.provider.Property> propertyList)
propertyList
- List of properties that can be obtained via
getEntityToPropertiesDictionary()
public static ServiceMetadataProvider getInstance(String serviceURI, String destinationName)
ServiceMetadataProvider
serviceURI
- service endpoint URLdestinationName
- optional destinationName for forwarding request to source SystemServiceMetadataProvider
public static ServiceMetadataProvider getInstance(String serviceURI)
ServiceMetadataProvider
serviceURI
- service endpoint URLServiceMetadataProvider
public static CompletableFuture<ServiceMetadataProvider> getAsyncInstance(String serviceURI, String destinationName)
ServiceMetadataProvider
, use functional
callbacks on the future object to get peocessed data.serviceURI
- destinationName
- public static CompletableFuture<ServiceMetadataProvider> getAsyncInstance(String serviceURI)
ServiceMetadataProvider
, use functional
callbacks on the future object to get peocessed data.serviceURI
- Copyright © 2019 SAP SE. All rights reserved.