public interface ServiceHandler
extends org.apache.olingo.server.api.processor.Processor
| Modifier and Type | Method and Description |
|---|---|
void |
addReference(DataRequest request,
String entityETag,
URI referenceId,
NoContentResponse response)
Add references (relationships) to Entity.
|
void |
anyUnsupported(org.apache.olingo.server.api.ODataRequest request,
org.apache.olingo.server.api.ODataResponse response)
Any Unsupported one will be directed here.
|
void |
commit(String txnId)
When a batch operation is complete and all the intermediate service requests are successful, then
commit is called with transaction id returned in the startTransaction method.
|
void |
createEntity(DataRequest request,
org.apache.olingo.commons.api.data.Entity entity,
EntityResponse response)
Create new entity in the service based on the entity object provided
|
void |
crossJoin(DataRequest dataRequest,
List<String> entitySetNames,
org.apache.olingo.server.api.ODataResponse response)
This is not complete, more URL parsing changes required.
|
void |
deleteEntity(DataRequest request,
String entityETag,
EntityResponse response)
Delete the Entity
|
void |
deleteReference(DataRequest request,
URI deleteId,
String entityETag,
NoContentResponse response)
Delete references (relationships) in an Entity
|
<T extends ServiceResponse> |
invoke(ActionRequest request,
String eTag,
T response)
Invocation of a Function.
|
<T extends ServiceResponse> |
invoke(FunctionRequest request,
org.apache.olingo.commons.api.http.HttpMethod method,
T response)
Invocation of a Function.
|
<T extends ServiceResponse> |
read(DataRequest request,
T response)
Read operation for EntitySets, Entities, Properties, Media etc.
|
void |
readMediaStream(MediaRequest request,
StreamResponse response)
Read media stream content of a Entity
|
void |
readMetadata(MetadataRequest request,
MetadataResponse response)
Read CSDL document of the Service
|
void |
readServiceDocument(ServiceDocumentRequest request,
ServiceDocumentResponse response)
Read ServiceDocument of the service
|
void |
rollback(String txnId)
When a batch operation is in-complete due to an error in the middle of changeset, then rollback is
called with transaction id, that returned from startTransaction method.
|
String |
startTransaction()
During a batch operation, this method starts the transaction (if any) before any operation is handled
by the service.
|
void |
updateEntity(DataRequest request,
org.apache.olingo.commons.api.data.Entity entity,
boolean merge,
String entityETag,
EntityResponse response)
Update the entity object.
|
void |
updateProperty(DataRequest request,
org.apache.olingo.commons.api.data.Property property,
boolean merge,
String entityETag,
PropertyResponse response)
Update a non-media/stream property.if the value of property NULL, it should be treated as
DeleteProperty 11.4.9.2
|
void |
updateReference(DataRequest request,
String entityETag,
URI referenceId,
NoContentResponse response)
Update references (relationships) in an Entity; This is always against single valued navigation property
|
void |
upsertEntity(DataRequest request,
org.apache.olingo.commons.api.data.Entity entity,
boolean merge,
String entityETag,
EntityResponse response)
Update or create the entity object.
|
void |
upsertMediaStream(MediaRequest request,
String entityETag,
InputStream mediaContent,
NoContentResponse response)
Update of Media Stream Content of a Entity.
|
void |
upsertStreamProperty(DataRequest request,
String entityETag,
InputStream streamContent,
NoContentResponse response)
Update Stream property, if StreamContent is null, it should treated as delete request
|
void readMetadata(MetadataRequest request, MetadataResponse response) throws org.apache.olingo.server.api.ODataLibraryException, org.apache.olingo.server.api.ODataApplicationException
request - response - org.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationExceptionvoid readServiceDocument(ServiceDocumentRequest request, ServiceDocumentResponse response) throws org.apache.olingo.server.api.ODataLibraryException, org.apache.olingo.server.api.ODataApplicationException
request - response - org.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationException<T extends ServiceResponse> void read(DataRequest request, T response) throws org.apache.olingo.server.api.ODataLibraryException, org.apache.olingo.server.api.ODataApplicationException
request - response - org.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationExceptionvoid createEntity(DataRequest request, org.apache.olingo.commons.api.data.Entity entity, EntityResponse response) throws org.apache.olingo.server.api.ODataLibraryException, org.apache.olingo.server.api.ODataApplicationException
request - entity - response - org.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationExceptionvoid updateEntity(DataRequest request, org.apache.olingo.commons.api.data.Entity entity, boolean merge, String entityETag, EntityResponse response) throws org.apache.olingo.server.api.ODataLibraryException, org.apache.olingo.server.api.ODataApplicationException
request - entity - merge - - true if merge operation, false it needs to be replacedentityETag - - previous entity tag if provided by the user. "*" means allow.response - org.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationExceptionvoid upsertEntity(DataRequest request, org.apache.olingo.commons.api.data.Entity entity, boolean merge, String entityETag, EntityResponse response) throws org.apache.olingo.server.api.ODataLibraryException, org.apache.olingo.server.api.ODataApplicationException
request - entity - - Entity to create or updatemerge - - in the case of update, true to do merge operation with current entity,
false the entity needs to be replacedentityETag - - previous entity tag if provided by the user. "*" means allow.response - org.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationExceptionvoid deleteEntity(DataRequest request, String entityETag, EntityResponse response) throws org.apache.olingo.server.api.ODataLibraryException, org.apache.olingo.server.api.ODataApplicationException
request - entityETag - - entity tag to match, if provided by the user. "*" means allowresponse - org.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationExceptionvoid updateProperty(DataRequest request, org.apache.olingo.commons.api.data.Property property, boolean merge, String entityETag, PropertyResponse response) throws org.apache.olingo.server.api.ODataLibraryException, org.apache.olingo.server.api.ODataApplicationException
request - property - - Updated property.merge - - if the property is complex, true here means merge, false is replaceentityETag - - entity tag to match before update operation, "*" allows all.response - org.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationExceptionvoid upsertStreamProperty(DataRequest request, String entityETag, InputStream streamContent, NoContentResponse response) throws org.apache.olingo.server.api.ODataLibraryException, org.apache.olingo.server.api.ODataApplicationException
request - entityETag - - entity tag to match before update operation, "*" allows all.streamContent - - updated stream contentresponse - org.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationException<T extends ServiceResponse> void invoke(FunctionRequest request, org.apache.olingo.commons.api.http.HttpMethod method, T response) throws org.apache.olingo.server.api.ODataLibraryException, org.apache.olingo.server.api.ODataApplicationException
request - method - response - org.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationException<T extends ServiceResponse> void invoke(ActionRequest request, String eTag, T response) throws org.apache.olingo.server.api.ODataLibraryException, org.apache.olingo.server.api.ODataApplicationException
request - eTag - response - org.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationExceptionvoid readMediaStream(MediaRequest request, StreamResponse response) throws org.apache.olingo.server.api.ODataLibraryException, org.apache.olingo.server.api.ODataApplicationException
request - response - org.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationExceptionvoid upsertMediaStream(MediaRequest request, String entityETag, InputStream mediaContent, NoContentResponse response) throws org.apache.olingo.server.api.ODataLibraryException, org.apache.olingo.server.api.ODataApplicationException
request - entityETag - - entity etag to match before update operation, "*" allows all.mediaContent - - if null, must be treated as delete requestresponse - org.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationExceptionvoid anyUnsupported(org.apache.olingo.server.api.ODataRequest request,
org.apache.olingo.server.api.ODataResponse response)
throws org.apache.olingo.server.api.ODataLibraryException,
org.apache.olingo.server.api.ODataApplicationException
request - response - org.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationExceptionvoid addReference(DataRequest request, String entityETag, URI referenceId, NoContentResponse response) throws org.apache.olingo.server.api.ODataLibraryException, org.apache.olingo.server.api.ODataApplicationException
request - entityETag - - entity etag to match before add operation, "*" allows all.referenceId - - references to addresponse - - return always should be 204org.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationExceptionvoid updateReference(DataRequest request, String entityETag, URI referenceId, NoContentResponse response) throws org.apache.olingo.server.api.ODataLibraryException, org.apache.olingo.server.api.ODataApplicationException
request - entityETag - referenceId - response - - always should be 204org.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationExceptionvoid deleteReference(DataRequest request, URI deleteId, String entityETag, NoContentResponse response) throws org.apache.olingo.server.api.ODataLibraryException, org.apache.olingo.server.api.ODataApplicationException
request - deleteId - for collection valued navigation this will be non-null value;
for single valued navigation property, this will be nullentityETag - response - - always should be 204org.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationExceptionString startTransaction() throws org.apache.olingo.server.api.ODataLibraryException, org.apache.olingo.server.api.ODataApplicationException
org.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationExceptionvoid commit(String txnId) throws org.apache.olingo.server.api.ODataLibraryException, org.apache.olingo.server.api.ODataApplicationException
txnId - org.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationExceptionvoid rollback(String txnId) throws org.apache.olingo.server.api.ODataLibraryException, org.apache.olingo.server.api.ODataApplicationException
txnId - org.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationExceptionvoid crossJoin(DataRequest dataRequest, List<String> entitySetNames, org.apache.olingo.server.api.ODataResponse response) throws org.apache.olingo.server.api.ODataLibraryException, org.apache.olingo.server.api.ODataApplicationException
dataRequest - entitySetNames - response - org.apache.olingo.server.api.ODataLibraryExceptionorg.apache.olingo.server.api.ODataApplicationExceptionCopyright © 2013–2015 The Apache Software Foundation. All rights reserved.