public class DefaultModelEntityService extends java.lang.Object implements ModelEntityService
ModelEntityService| Constructor and Description |
|---|
DefaultModelEntityService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addIntegrationKeyToODataEntry(EdmEntitySet entitySet,
ODataEntry oDataEntry)
Adds the alias value for an item's integrationKey to the oDataEntry
|
protected ItemModel |
createItem(StorageRequest request,
CreateItemStrategy createItemStrategy) |
ItemModel |
createOrUpdateItem(StorageRequest request,
CreateItemStrategy createItemStrategy)
create or update platform items based on an ODataEntry
|
protected java.util.List<CreateItemValidator> |
getCreateItemValidators() |
protected EntityModelPopulator |
getEntityModelPopulator() |
protected ODataEntryIntegrationKeyConverter |
getIntegrationKeyConverter() |
protected ItemLookupStrategy |
getItemLookupStrategy() |
ODataEntry |
getODataEntry(RetrievalRequest request)
Converts an itemModel into a ODataEntry
|
ItemModel |
lookup(StorageRequest storageRequest)
gets an itemModel based on the given information.
|
protected void |
populateItem(StorageRequest request,
ItemModel item) |
void |
setCreateItemValidators(java.util.List<CreateItemValidator> createItemValidators) |
void |
setEntityModelPopulator(EntityModelPopulator entityModelPopulator) |
void |
setIntegrationKeyConverter(ODataEntryIntegrationKeyConverter integrationKeyConverter) |
void |
setItemLookupStrategy(ItemLookupStrategy itemLookupStrategy) |
public ItemModel createOrUpdateItem(StorageRequest request, CreateItemStrategy createItemStrategy) throws EdmException
ModelEntityServicecreateOrUpdateItem in interface ModelEntityServicerequest - Parameter object that holds values for creating or updating an item.createItemStrategy - strategy used to create non-existing itemsEdmException - in case there is an OData related issuepublic ODataEntry getODataEntry(RetrievalRequest request) throws EdmException
ModelEntityServicegetODataEntry in interface ModelEntityServicerequest - Parameter object that holds values for getting an ODataEntryEdmException - in case there is an OData related issuepublic void addIntegrationKeyToODataEntry(EdmEntitySet entitySet,
ODataEntry oDataEntry)
throws EdmException
ModelEntityServiceaddIntegrationKeyToODataEntry in interface ModelEntityServiceentitySet - Edmx representation of the itemoDataEntry - request body represented as xml or jsonEdmException - in case there is an OData related issuepublic ItemModel lookup(StorageRequest storageRequest) throws EdmException
ModelEntityServicelookup in interface ModelEntityServicestorageRequest - Parameter object that holds values for getting an itemModelEdmException - in case there is an OData related issueprotected void populateItem(StorageRequest request, ItemModel item) throws EdmException
EdmExceptionprotected ItemModel createItem(StorageRequest request, CreateItemStrategy createItemStrategy) throws EdmException
EdmExceptionprotected ItemLookupStrategy getItemLookupStrategy()
public void setItemLookupStrategy(ItemLookupStrategy itemLookupStrategy)
protected EntityModelPopulator getEntityModelPopulator()
public void setEntityModelPopulator(EntityModelPopulator entityModelPopulator)
protected java.util.List<CreateItemValidator> getCreateItemValidators()
public void setCreateItemValidators(java.util.List<CreateItemValidator> createItemValidators)
protected ODataEntryIntegrationKeyConverter getIntegrationKeyConverter()
public void setIntegrationKeyConverter(ODataEntryIntegrationKeyConverter integrationKeyConverter)
Copyright © 2018 SAP SE. All Rights Reserved.