ch.hsr.bieridee.resourcehandler.interfaces
Interface ICollectionResource

All Known Implementing Classes:
BeerListResource, BeertypeListResource, BreweryListResource, ConsumptionListResource, TagListResource

public interface ICollectionResource

Represents a collection resource.


Method Summary
 org.restlet.representation.Representation retrieve()
          Retrieve a collection.
 org.restlet.representation.Representation store(org.restlet.representation.Representation rep)
          Create a collection item.
 

Method Detail

retrieve

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

Returns:
The collection representation.
Throws:
org.neo4j.server.rest.web.NodeNotFoundException
WrongNodeTypeException

store

@Post
org.restlet.representation.Representation store(org.restlet.representation.Representation rep)
                                                throws org.json.JSONException,
                                                       java.io.IOException,
                                                       org.neo4j.graphdb.NotFoundException,
                                                       WrongNodeTypeException,
                                                       InvalidRequestException
Create a collection item.

Parameters:
rep - Representation of the collection item to create.
Returns:
A representation of the newly created object
Throws:
java.io.IOException
org.json.JSONException
WrongNodeTypeException
org.neo4j.graphdb.NotFoundException
InvalidRequestException