public class DynamicsConnection extends Object
Constructor and Description |
---|
DynamicsConnection(String endpoint,
org.apache.olingo.client.api.http.HttpClientFactory httpClientFactory,
Map<String,String> defaultHeaders,
Integer readTimeout) |
Modifier and Type | Method and Description |
---|---|
String |
createEntity(String logicalName,
Map<String,Object> attributes) |
DynamicsBulkResult<Map<String,Object>> |
createMultipleEntities(String logicalName,
List<Map<String,Object>> attributesList,
boolean useSingleTransaction) |
String |
deleteEntity(String logicalName,
String id) |
DynamicsBulkResult<String> |
deleteMultipleEntities(String logicalName,
List<String> ids,
boolean useSingleTransaction) |
void |
disassociateEntities(String logicalName,
Map<String,Object> dissasociateRequest) |
Map<String,Object> |
doAction(String actionName,
String boundedEntityType,
String boundedEntityId,
Map<String,Object> relatedEntities) |
List<Object> |
executeBatchOperations(List<Object> batchRequests) |
String |
getEndpoint() |
Map<String,Object> |
getEntityAttributesByLogicalName(String entityLogicalName) |
Map<String,Object> |
getEntityByLogicalNameAndId(String logicalName,
String entityId) |
String |
getEntitySetNameByLogicalName(String entityLogicalName) |
Map<String,Object> |
getEntityTypes() |
org.apache.olingo.client.api.edm.xml.XMLMetadata |
getFullMetadata()
https://issues.apache.org/jira/browse/OLINGO-1008 Will work with APACHE OLINGO 4.4.0; It works with 4.4.0-SnapShot
|
Map<String,Object> |
invoke(String uri,
InvokeHttpMethod httpMethod,
Map<String,String> headers,
String json) |
org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,Dynamics365Connector> |
retrieveByDataQueryURL(String queryURL,
org.mule.streaming.PagingConfiguration pagingConfiguration) |
org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,Dynamics365Connector> |
retrieveByDatasenseQueryLanguage(String query,
org.mule.streaming.PagingConfiguration pagingConfiguration) |
Map<String,Object> |
retrieveWithPagination(URI uri,
int maxPageSize) |
void |
updateEntity(String logicalName,
Map<String,Object> entityForUpdate) |
DynamicsBulkResult<Map<String,Object>> |
updateMultipleEntities(String logicalName,
List<Map<String,Object>> attributesList,
boolean useSingleTransaction) |
public String createEntity(String logicalName, Map<String,Object> attributes) throws DynamicsException, org.mule.api.ConnectionException
DynamicsException
org.mule.api.ConnectionException
public void updateEntity(String logicalName, Map<String,Object> entityForUpdate) throws DynamicsException, org.mule.api.ConnectionException
DynamicsException
org.mule.api.ConnectionException
public String deleteEntity(String logicalName, String id) throws DynamicsException, org.mule.api.ConnectionException
DynamicsException
org.mule.api.ConnectionException
public DynamicsBulkResult<String> deleteMultipleEntities(String logicalName, List<String> ids, boolean useSingleTransaction) throws DynamicsException, org.mule.api.ConnectionException
DynamicsException
org.mule.api.ConnectionException
public DynamicsBulkResult<Map<String,Object>> createMultipleEntities(String logicalName, List<Map<String,Object>> attributesList, boolean useSingleTransaction) throws DynamicsException, org.mule.api.ConnectionException
DynamicsException
org.mule.api.ConnectionException
public Map<String,Object> getEntityByLogicalNameAndId(String logicalName, String entityId) throws DynamicsException, org.mule.api.ConnectionException
DynamicsException
org.mule.api.ConnectionException
public void disassociateEntities(String logicalName, Map<String,Object> dissasociateRequest) throws DynamicsException, org.mule.api.ConnectionException
DynamicsException
org.mule.api.ConnectionException
public org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,Dynamics365Connector> retrieveByDataQueryURL(String queryURL, org.mule.streaming.PagingConfiguration pagingConfiguration)
public org.mule.streaming.ProviderAwarePagingDelegate<Map<String,Object>,Dynamics365Connector> retrieveByDatasenseQueryLanguage(String query, org.mule.streaming.PagingConfiguration pagingConfiguration) throws DynamicsException
DynamicsException
public DynamicsBulkResult<Map<String,Object>> updateMultipleEntities(String logicalName, List<Map<String,Object>> attributesList, boolean useSingleTransaction) throws DynamicsException, org.mule.api.ConnectionException
DynamicsException
org.mule.api.ConnectionException
public String getEntitySetNameByLogicalName(String entityLogicalName) throws DynamicsException, org.mule.api.ConnectionException
entityLogicalName
- The logical name is always the Schema Name in lowercase.DynamicsException
- when there is an internal errororg.mule.api.ConnectionException
- when there is an authentication exceptionpublic Map<String,Object> getEntityTypes() throws DynamicsException, org.mule.api.ConnectionException
DynamicsException
org.mule.api.ConnectionException
public Map<String,Object> doAction(String actionName, String boundedEntityType, String boundedEntityId, Map<String,Object> relatedEntities) throws DynamicsException, org.mule.api.ConnectionException
DynamicsException
org.mule.api.ConnectionException
public Map<String,Object> getEntityAttributesByLogicalName(String entityLogicalName) throws DynamicsException, org.mule.api.ConnectionException
DynamicsException
org.mule.api.ConnectionException
public Map<String,Object> invoke(String uri, InvokeHttpMethod httpMethod, Map<String,String> headers, String json) throws DynamicsException, org.mule.api.ConnectionException
DynamicsException
org.mule.api.ConnectionException
public List<Object> executeBatchOperations(List<Object> batchRequests) throws DynamicsException, org.mule.api.ConnectionException
DynamicsException
org.mule.api.ConnectionException
public String getEndpoint()
public Map<String,Object> retrieveWithPagination(URI uri, int maxPageSize) throws DynamicsException, org.mule.api.ConnectionException
DynamicsException
org.mule.api.ConnectionException
public org.apache.olingo.client.api.edm.xml.XMLMetadata getFullMetadata() throws DynamicsException, org.mule.api.ConnectionException
DynamicsException
- When there is an internal Errororg.mule.api.ConnectionException
- When there is an authentication ErrorCopyright © 2010–2020. All rights reserved.