API FinTP REST
 All Classes Namespaces Files Functions Variables
ro.allevo.fintpws.resources.EventsResource Class Reference

Resource class implementing /events path methods and acting as /events/{id} sub-resource locator. More...

Inheritance diagram for ro.allevo.fintpws.resources.EventsResource:
ro.allevo.fintpws.resources.PagedCollection

Public Member Functions

 EventsResource (UriInfo uriInfo, EntityManager entityManager, RoutedMessageEntity messageEntity)
 Creates a new instance of EventsResource. More...
 
EventResource getEvent (@PathParam("id") String eventGuid)
 Returns a event sub-resource named eventId. More...
 
JSONObject getEventsAsJson ()
 GET method : returns an application/json formatted list of events. More...
 
Response postForm (JSONObject jsonEntity) throws JSONException
 POST method : creates an event. More...
 
JSONObject asJson () throws JSONException
 Returns the resource formatted as json. More...
 
- Public Member Functions inherited from ro.allevo.fintpws.resources.PagedCollection
 PagedCollection (UriInfo uriInfo, Query itemsQuery, Query totalQuery)
 Constructor for PagedCollection. More...
 
List<?> getItems ()
 Method getItems. More...
 
Query getItemsQuery ()
 Method getItemsQuery. More...
 
Query getTotalQuery ()
 Method getTotalQuery. More...
 
void setItemsQuery (Query itemsQuery)
 Method setItemsQuery. More...
 
void setTotalQuery (Query totalQuery)
 Method setTotalQuery. More...
 
boolean hasMore ()
 Method has_more. More...
 
UriInfo getUriInfo ()
 Method getUriInfo. More...
 

Private Attributes

UriInfo uriInfo
 actual uri info provided by parent resource More...
 
EntityManager entityManager
 Field entityManager. More...
 

Static Private Attributes

static Logger logger
 Field logger. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ro.allevo.fintpws.resources.PagedCollection
void getPage ()
 Method getPage. More...
 
JSONObject asJson () throws JSONException
 Method asJson. More...
 

Detailed Description

Resource class implementing /events path methods and acting as /events/{id} sub-resource locator.

Author
costi
Version
Revision:
1.0

Constructor & Destructor Documentation

ro.allevo.fintpws.resources.EventsResource.EventsResource ( UriInfo  uriInfo,
EntityManager  entityManager,
RoutedMessageEntity  messageEntity 
)
inline

Creates a new instance of EventsResource.

Parameters
uriInfoUriInfo
entityManagerEntityManager
messageEntityRoutedMessageEntity

Member Function Documentation

JSONObject ro.allevo.fintpws.resources.EventsResource.asJson ( ) throws JSONException
inline

Returns the resource formatted as json.

Returns
JSONObject
EventResource ro.allevo.fintpws.resources.EventsResource.getEvent ( @PathParam("id") String  eventGuid)
inline

Returns a event sub-resource named eventId.

Parameters
eventGuidString
Returns
EventResource The event sub-resource
JSONObject ro.allevo.fintpws.resources.EventsResource.getEventsAsJson ( )
inline

GET method : returns an application/json formatted list of events.

Returns
JSONObject The list of events
Response ro.allevo.fintpws.resources.EventsResource.postForm ( JSONObject  jsonEntity) throws JSONException
inline

POST method : creates an event.

Parameters
jsonEntityJSONObject
Returns
Response The URI of the newly created event
Exceptions
JSONException

Member Data Documentation

EntityManager ro.allevo.fintpws.resources.EventsResource.entityManager
private

Field entityManager.

Logger ro.allevo.fintpws.resources.EventsResource.logger
staticprivate
Initial value:
= LogManager.getLogger(EventsResource.class
.getName())

Field logger.

UriInfo ro.allevo.fintpws.resources.EventsResource.uriInfo
private

actual uri info provided by parent resource


The documentation for this class was generated from the following file: