.. java:import:: java.io IOException .. java:import:: java.security NoSuchAlgorithmException .. java:import:: java.util List .. java:import:: org.apache.commons.fileupload FileItemIterator .. java:import:: org.apache.commons.fileupload FileItemStream .. java:import:: org.apache.commons.fileupload FileUploadException .. java:import:: org.apache.commons.fileupload.disk DiskFileItemFactory .. java:import:: org.caosdb.server CaosDBException .. java:import:: org.caosdb.server FileSystem .. java:import:: org.caosdb.server.database.backend.implementation MySQL.ConnectionException .. java:import:: org.caosdb.server.entity DeleteEntity .. java:import:: org.caosdb.server.entity EntityID .. java:import:: org.caosdb.server.entity FileProperties .. java:import:: org.caosdb.server.entity InsertEntity .. java:import:: org.caosdb.server.entity Message .. java:import:: org.caosdb.server.entity UpdateEntity .. java:import:: org.caosdb.server.entity.container WritableContainer .. java:import:: org.caosdb.server.transaction WriteTransaction .. java:import:: org.caosdb.server.transaction WriteTransactionInterface .. java:import:: org.caosdb.server.utils ServerMessages .. java:import:: org.jdom2 Document .. java:import:: org.jdom2 Element .. java:import:: org.jdom2 JDOMException .. java:import:: org.restlet.data MediaType .. java:import:: org.restlet.ext.fileupload RestletFileUpload .. java:import:: org.restlet.representation Representation EntityResource ============== .. java:package:: org.caosdb.server.resource.transaction :noindex: .. java:type:: public class EntityResource extends RetrieveEntityResource Handles POST, PUT, and DELETE requests for Entities. The GET requests (Retrieval) is handled in the superclass \ :java:ref:`RetrieveEntityResource`\ . :author: Timm Fitschen Methods ------- httpDeleteInChildClass ^^^^^^^^^^^^^^^^^^^^^^ .. java:method:: @Override protected final Representation httpDeleteInChildClass() throws Exception :outertype: EntityResource Handle entity deletions (DELETE requests). Note: The list of entity "specifier" is treated strictly as a list of entity ids. You cannot delete an entity by name. httpPostInChildClass ^^^^^^^^^^^^^^^^^^^^ .. java:method:: @Override protected final Representation httpPostInChildClass(Representation entity) throws xmlNotWellFormedException, Exception :outertype: EntityResource Handle entity insertions (POST requests). httpPutInChildClass ^^^^^^^^^^^^^^^^^^^ .. java:method:: @Override protected final Representation httpPutInChildClass(Representation entity) throws ConnectionException, JDOMException, Exception, xmlNotWellFormedException :outertype: EntityResource Handle entity updates (PUT requests).