ch.hsr.bieridee.resourcehandler.interfaces
Interface IStoreResource

All Known Implementing Classes:
UserResource

public interface IStoreResource

Represents a store resource.


Method Summary
 void remove(org.restlet.representation.Representation rep)
          Delete a store item.
 org.restlet.representation.Representation retrieve()
          Retrieve a store item.
 void store(org.restlet.representation.Representation rep)
          Update or create a store item.
 

Method Detail

retrieve

@Get
org.restlet.representation.Representation retrieve()
                                                   throws WrongNodeTypeException,
                                                          org.neo4j.server.rest.web.NodeNotFoundException,
                                                          org.json.JSONException
Retrieve a store item.

Returns:
The store item representation.
Throws:
org.neo4j.server.rest.web.NodeNotFoundException
WrongNodeTypeException
org.json.JSONException

store

@Put
void store(org.restlet.representation.Representation rep)
           throws org.json.JSONException,
                  java.io.IOException,
                  org.neo4j.graphdb.NotFoundException,
                  WrongNodeTypeException
Update or create a store item.

Parameters:
rep - Representation of the store item to store.
Throws:
java.io.IOException
org.json.JSONException
WrongNodeTypeException
org.neo4j.graphdb.NotFoundException

remove

@Delete
void remove(org.restlet.representation.Representation rep)
            throws org.json.JSONException
Delete a store item.

Parameters:
rep - Representation of the store item to delete.
Throws:
org.json.JSONException