public class ListsProcessor extends ODataSingleProcessor
| Constructor and Description |
|---|
ListsProcessor(ScenarioDataSource dataSource) |
ListsProcessor(ScenarioDataSource dataSource,
BeanPropertyAccess valueAccess) |
| Modifier and Type | Method and Description |
|---|---|
ODataResponse |
countEntityLinks(GetEntitySetLinksCountUriInfo uriInfo,
String contentType)
Counts the number of target entities of a navigation property.
|
ODataResponse |
countEntitySet(GetEntitySetCountUriInfo uriInfo,
String contentType)
Counts the number of requested entities.
|
ODataResponse |
createEntity(PostUriInfo uriInfo,
InputStream content,
String requestContentType,
String contentType)
Creates an entity.
|
ODataResponse |
createEntityLink(PostUriInfo uriInfo,
InputStream content,
String requestContentType,
String contentType)
Creates a new link to a target entity of a navigation property.
|
ODataResponse |
deleteEntity(DeleteUriInfo uriInfo,
String contentType)
Deletes an entity.
|
ODataResponse |
deleteEntityLink(DeleteUriInfo uriInfo,
String contentType)
Deletes the link to the target entity of a navigation property.
|
ODataResponse |
deleteEntityMedia(DeleteUriInfo uriInfo,
String contentType)
Deletes the media resource of an entity.
|
ODataResponse |
deleteEntitySimplePropertyValue(DeleteUriInfo uriInfo,
String contentType)
Deletes the value of a simple property of an entity.
|
ODataResponse |
executeBatch(BatchHandler handler,
String contentType,
InputStream content)
Executes a OData batch request and provide Batch Response as
ODataResponse |
BatchResponsePart |
executeChangeSet(BatchHandler handler,
List<ODataRequest> requests)
Executes a Change Set and provide BatchResponsePart as
BatchResponsePart that contains the responses to
change requests. |
ODataResponse |
executeFunctionImport(GetFunctionImportUriInfo uriInfo,
String contentType)
Executes a function import and returns the result.
|
ODataResponse |
executeFunctionImportValue(GetFunctionImportUriInfo uriInfo,
String contentType)
Returns the unformatted value of a function import.
|
ODataResponse |
existsEntity(GetEntityCountUriInfo uriInfo,
String contentType)
Checks whether an entity exists.
|
ODataResponse |
existsEntityLink(GetEntityLinkCountUriInfo uriInfo,
String contentType)
Returns whether the target entity of a navigation property exists.
|
ODataResponse |
readEntity(GetEntityUriInfo uriInfo,
String contentType)
Reads an entity.
|
ODataResponse |
readEntityComplexProperty(GetComplexPropertyUriInfo uriInfo,
String contentType)
Reads a complex property of an entity.
|
ODataResponse |
readEntityLink(GetEntityLinkUriInfo uriInfo,
String contentType)
Reads the URI of the target entity of a navigation property.
|
ODataResponse |
readEntityLinks(GetEntitySetLinksUriInfo uriInfo,
String contentType)
Reads the URIs of the target entities of a navigation property.
|
ODataResponse |
readEntityMedia(GetMediaResourceUriInfo uriInfo,
String contentType)
Reads the media resource of an entity.
|
ODataResponse |
readEntitySet(GetEntitySetUriInfo uriInfo,
String contentType)
Reads entities.
|
ODataResponse |
readEntitySimpleProperty(GetSimplePropertyUriInfo uriInfo,
String contentType)
Reads a simple property of an entity.
|
ODataResponse |
readEntitySimplePropertyValue(GetSimplePropertyUriInfo uriInfo,
String contentType)
Reads the unformatted value of a simple property of an entity.
|
ODataResponse |
updateEntity(PutMergePatchUriInfo uriInfo,
InputStream content,
String requestContentType,
boolean merge,
String contentType)
Updates an entity.
|
ODataResponse |
updateEntityComplexProperty(PutMergePatchUriInfo uriInfo,
InputStream content,
String requestContentType,
boolean merge,
String contentType)
Updates a complex property of an entity.
|
ODataResponse |
updateEntityLink(PutMergePatchUriInfo uriInfo,
InputStream content,
String requestContentType,
String contentType)
Updates the link to the target entity of a navigation property.
|
ODataResponse |
updateEntityMedia(PutMergePatchUriInfo uriInfo,
InputStream content,
String requestContentType,
String contentType)
Updates the media resource of an entity.
|
ODataResponse |
updateEntitySimpleProperty(PutMergePatchUriInfo uriInfo,
InputStream content,
String requestContentType,
String contentType)
Updates a simple property of an entity.
|
ODataResponse |
updateEntitySimplePropertyValue(PutMergePatchUriInfo uriInfo,
InputStream content,
String requestContentType,
String contentType)
Updates a simple property of an entity with an unformatted value.
|
getContext, getCustomContentTypes, readMetadata, readServiceDocument, setContextpublic ListsProcessor(ScenarioDataSource dataSource)
public ListsProcessor(ScenarioDataSource dataSource, BeanPropertyAccess valueAccess)
public ODataResponse readEntitySet(GetEntitySetUriInfo uriInfo, String contentType) throws ODataException
EntitySetProcessorreadEntitySet in interface EntitySetProcessorreadEntitySet in class ODataSingleProcessoruriInfo - information about the request URIcontentType - the content type of the responseODataResponse objectODataExceptionEntitySetProcessorpublic ODataResponse countEntitySet(GetEntitySetCountUriInfo uriInfo, String contentType) throws ODataException
EntitySetProcessorcountEntitySet in interface EntitySetProcessorcountEntitySet in class ODataSingleProcessoruriInfo - information about the request URIcontentType - the content type of the responseODataResponse objectODataExceptionEntitySetProcessorpublic ODataResponse readEntityLinks(GetEntitySetLinksUriInfo uriInfo, String contentType) throws ODataException
EntityLinksProcessorreadEntityLinks in interface EntityLinksProcessorreadEntityLinks in class ODataSingleProcessoruriInfo - information about the request URIcontentType - the content type of the responseODataExceptionEntityLinksProcessorpublic ODataResponse countEntityLinks(GetEntitySetLinksCountUriInfo uriInfo, String contentType) throws ODataException
EntityLinksProcessorcountEntityLinks in interface EntityLinksProcessorcountEntityLinks in class ODataSingleProcessoruriInfo - information about the request URIcontentType - the content type of the responseODataExceptionEntityLinksProcessorpublic ODataResponse readEntity(GetEntityUriInfo uriInfo, String contentType) throws ODataException
EntityProcessorreadEntity in interface EntityProcessorreadEntity in class ODataSingleProcessorcontentType - the content type of the responseODataResponse objectODataExceptionEntityProcessorpublic ODataResponse existsEntity(GetEntityCountUriInfo uriInfo, String contentType) throws ODataException
EntityProcessorexistsEntity in interface EntityProcessorexistsEntity in class ODataSingleProcessorcontentType - the content type of the responseODataResponse objectODataExceptionEntityProcessorpublic ODataResponse deleteEntity(DeleteUriInfo uriInfo, String contentType) throws ODataException
EntityProcessordeleteEntity in interface EntityProcessordeleteEntity in class ODataSingleProcessoruriInfo - a DeleteUriInfo object with information from the URI parsercontentType - the content type of the responseODataResponse objectODataExceptionEntityProcessorpublic ODataResponse createEntity(PostUriInfo uriInfo, InputStream content, String requestContentType, String contentType) throws ODataException
EntitySetProcessorcreateEntity in interface EntitySetProcessorcreateEntity in class ODataSingleProcessoruriInfo - information about the request URIcontent - the content of the request, containing the data of the new entityrequestContentType - the content type of the request bodycontentType - the content type of the responseODataResponse objectODataExceptionEntitySetProcessorpublic ODataResponse updateEntity(PutMergePatchUriInfo uriInfo, InputStream content, String requestContentType, boolean merge, String contentType) throws ODataException
EntityProcessorupdateEntity in interface EntityProcessorupdateEntity in class ODataSingleProcessoruriInfo - information about the request URIcontent - the content of the request, containing the updated entity datarequestContentType - the content type of the request bodymerge - if true, properties not present in the data are left unchanged;
if false, they are resetcontentType - the content type of the responseODataResponse objectODataExceptionEntityProcessorpublic ODataResponse readEntityLink(GetEntityLinkUriInfo uriInfo, String contentType) throws ODataException
EntityLinkProcessorreadEntityLink in interface EntityLinkProcessorreadEntityLink in class ODataSingleProcessoruriInfo - information about the request URIcontentType - the content type of the responseODataResponse objectODataExceptionEntityLinkProcessorpublic ODataResponse existsEntityLink(GetEntityLinkCountUriInfo uriInfo, String contentType) throws ODataException
EntityLinkProcessorexistsEntityLink in interface EntityLinkProcessorexistsEntityLink in class ODataSingleProcessoruriInfo - information about the request URIcontentType - the content type of the responseODataResponse objectODataExceptionEntityLinkProcessorpublic ODataResponse deleteEntityLink(DeleteUriInfo uriInfo, String contentType) throws ODataException
EntityLinkProcessordeleteEntityLink in interface EntityLinkProcessordeleteEntityLink in class ODataSingleProcessoruriInfo - information about the request URIcontentType - the content type of the responseODataResponse objectODataExceptionEntityLinkProcessorpublic ODataResponse createEntityLink(PostUriInfo uriInfo, InputStream content, String requestContentType, String contentType) throws ODataException
EntityLinksProcessorcreateEntityLink in interface EntityLinksProcessorcreateEntityLink in class ODataSingleProcessoruriInfo - information about the request URIcontent - the content of the request, containing the link datarequestContentType - the content type of the request bodycontentType - the content type of the responseODataExceptionEntityLinkProcessorpublic ODataResponse updateEntityLink(PutMergePatchUriInfo uriInfo, InputStream content, String requestContentType, String contentType) throws ODataException
EntityLinkProcessorupdateEntityLink in interface EntityLinkProcessorupdateEntityLink in class ODataSingleProcessoruriInfo - information about the request URIcontent - the content of the request, containing the new URIrequestContentType - the content type of the request bodycontentType - the content type of the responseODataResponse objectODataExceptionEntityLinkProcessorpublic ODataResponse readEntityComplexProperty(GetComplexPropertyUriInfo uriInfo, String contentType) throws ODataException
EntityComplexPropertyProcessorreadEntityComplexProperty in interface EntityComplexPropertyProcessorreadEntityComplexProperty in class ODataSingleProcessoruriInfo - information about the request URIcontentType - the content type of the responseODataResponse objectODataExceptionEntityComplexPropertyProcessorpublic ODataResponse readEntitySimpleProperty(GetSimplePropertyUriInfo uriInfo, String contentType) throws ODataException
EntitySimplePropertyProcessorreadEntitySimpleProperty in interface EntitySimplePropertyProcessorreadEntitySimpleProperty in class ODataSingleProcessorcontentType - the content type of the responseODataResponse objectODataExceptionEntitySimplePropertyProcessorpublic ODataResponse readEntitySimplePropertyValue(GetSimplePropertyUriInfo uriInfo, String contentType) throws ODataException
EntitySimplePropertyValueProcessorreadEntitySimplePropertyValue in interface EntitySimplePropertyValueProcessorreadEntitySimplePropertyValue in class ODataSingleProcessoruriInfo - information about the request URIcontentType - the content type of the responseODataResponse objectODataExceptionEntitySimplePropertyValueProcessorpublic ODataResponse deleteEntitySimplePropertyValue(DeleteUriInfo uriInfo, String contentType) throws ODataException
EntitySimplePropertyValueProcessordeleteEntitySimplePropertyValue in interface EntitySimplePropertyValueProcessordeleteEntitySimplePropertyValue in class ODataSingleProcessoruriInfo - information about the request URIcontentType - the content type of the responseODataResponse objectODataExceptionEntitySimplePropertyValueProcessorpublic ODataResponse updateEntityComplexProperty(PutMergePatchUriInfo uriInfo, InputStream content, String requestContentType, boolean merge, String contentType) throws ODataException
EntityComplexPropertyProcessorupdateEntityComplexProperty in interface EntityComplexPropertyProcessorupdateEntityComplexProperty in class ODataSingleProcessoruriInfo - information about the request URIcontent - the content of the request, containing the updated property datarequestContentType - the content type of the request bodymerge - if true, properties not present in the data are left unchanged;
if false, they are resetcontentType - the content type of the responseODataResponse objectODataExceptionEntityComplexPropertyProcessorpublic ODataResponse updateEntitySimpleProperty(PutMergePatchUriInfo uriInfo, InputStream content, String requestContentType, String contentType) throws ODataException
EntitySimplePropertyProcessorupdateEntitySimpleProperty in interface EntitySimplePropertyProcessorupdateEntitySimpleProperty in class ODataSingleProcessoruriInfo - information about the request URIcontent - the content of the request, containing the updated property datarequestContentType - the content type of the request bodycontentType - the content type of the responseODataResponse objectODataExceptionEntitySimplePropertyProcessorpublic ODataResponse updateEntitySimplePropertyValue(PutMergePatchUriInfo uriInfo, InputStream content, String requestContentType, String contentType) throws ODataException
EntitySimplePropertyValueProcessorupdateEntitySimplePropertyValue in interface EntitySimplePropertyValueProcessorupdateEntitySimplePropertyValue in class ODataSingleProcessoruriInfo - information about the request URIcontent - the content of the request, containing the new valuerequestContentType - the content type of the request body
(important for a binary property)contentType - the content type of the responseODataResponse objectODataExceptionEntitySimplePropertyValueProcessorpublic ODataResponse readEntityMedia(GetMediaResourceUriInfo uriInfo, String contentType) throws ODataException
EntityMediaProcessorreadEntityMedia in interface EntityMediaProcessorreadEntityMedia in class ODataSingleProcessoruriInfo - information about the request URIcontentType - the content type of the responseODataResponse objectODataExceptionEntityMediaProcessorpublic ODataResponse deleteEntityMedia(DeleteUriInfo uriInfo, String contentType) throws ODataException
EntityMediaProcessordeleteEntityMedia in interface EntityMediaProcessordeleteEntityMedia in class ODataSingleProcessoruriInfo - information about the request URIcontentType - the content type of the responseODataResponse objectODataExceptionEntityMediaProcessorpublic ODataResponse updateEntityMedia(PutMergePatchUriInfo uriInfo, InputStream content, String requestContentType, String contentType) throws ODataException
EntityMediaProcessorupdateEntityMedia in interface EntityMediaProcessorupdateEntityMedia in class ODataSingleProcessoruriInfo - information about the request URIcontent - the content of the requestrequestContentType - the content type of the request bodycontentType - the content type of the responseODataResponse objectODataExceptionEntityMediaProcessorpublic ODataResponse executeFunctionImport(GetFunctionImportUriInfo uriInfo, String contentType) throws ODataException
FunctionImportProcessorexecuteFunctionImport in interface FunctionImportProcessorexecuteFunctionImport in class ODataSingleProcessoruriInfo - information about the request URIcontentType - the content type of the responseODataResponse objectODataExceptionFunctionImportProcessorpublic ODataResponse executeFunctionImportValue(GetFunctionImportUriInfo uriInfo, String contentType) throws ODataException
FunctionImportValueProcessorexecuteFunctionImportValue in interface FunctionImportValueProcessorexecuteFunctionImportValue in class ODataSingleProcessoruriInfo - information about the request URIcontentType - the content type of the responseODataResponse objectODataExceptionFunctionImportValueProcessorpublic ODataResponse executeBatch(BatchHandler handler, String contentType, InputStream content) throws ODataException
BatchProcessorODataResponseexecuteBatch in interface BatchProcessorexecuteBatch in class ODataSingleProcessorhandler - batch handlercontentType - the content type of the requestcontent - Batch Request bodyODataResponse objectODataExceptionBatchProcessorpublic BatchResponsePart executeChangeSet(BatchHandler handler, List<ODataRequest> requests) throws ODataException
BatchProcessorBatchResponsePart that contains the responses to
change requests.
The method has to define a rollback semantic that may be applied when a request within a Change Set fails
(all-or-nothing requirement).
If a request within a Change Set fails, instead of Change Set Response should be returned the error responseexecuteChangeSet in interface BatchProcessorexecuteChangeSet in class ODataSingleProcessorhandler - batch handlerrequests - list of single change requestsBatchResponsePart objectODataExceptionBatchProcessorCopyright © 2013-2023 The Apache Software Foundation. All Rights Reserved.