Author: chrish
Date: Wed Oct 21 10:05:33 2015
New Revision: 1709785
URL: http://svn.apache.org/viewvc?rev=1709785&view=rev
Log:
CMS commit to olingo by chrish
Modified:
olingo/site/trunk/content/doc/odata4/tutorials/media/tutorial_media.mdtext
Modified:
olingo/site/trunk/content/doc/odata4/tutorials/media/tutorial_media.mdtext
URL:
http://svn.apache.org/viewvc/olingo/site/trunk/content/doc/odata4/tutorials/media/tutorial_media.mdtext?rev=1709785&r1=1709784&r2=1709785&view=diff
==============================================================================
--- olingo/site/trunk/content/doc/odata4/tutorials/media/tutorial_media.mdtext
(original)
+++ olingo/site/trunk/content/doc/odata4/tutorials/media/tutorial_media.mdtext
Wed Oct 21 10:05:33 2015
@@ -293,6 +293,19 @@ The easiest part is to delete an media e
public void deleteMediaEntity(ODataRequest request, ODataResponse
response, UriInfo uriInfo)
throws ODataApplicationException, ODataLibraryException {
+ /*
+ * In this tutorial, the content of the media entity is stored in a
special property.
+ * So no additional steps to delete the content of the media entity
are necessary.
+ *
+ * A real service may store the content on the file system. So we have
to take care to
+ * delete external files too.
+ *
+ * DELETE request to /Advertisments(ID) will be dispatched to the
deleteEntity(...) method
+ * DELETE request to /Advertisments(ID)/$value will be dispatched to
the deleteMediaEntity(...) method
+ *
+ * So it is a good idea handle deletes in a central place.
+ */
+
deleteEntity(request, response, uriInfo);
}