Resource class implementing /events path methods and acting as /events/{id} sub-resource locator. More...
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... | |
Resource class implementing /events path methods and acting as /events/{id} sub-resource locator.
|
inline |
Creates a new instance of EventsResource.
uriInfo | UriInfo |
entityManager | EntityManager |
messageEntity | RoutedMessageEntity |
|
inline |
Returns the resource formatted as json.
|
inline |
Returns a event sub-resource named eventId.
eventGuid | String |
|
inline |
GET method : returns an application/json formatted list of events.
|
inline |
POST method : creates an event.
jsonEntity | JSONObject |
JSONException |
|
private |
Field entityManager.
|
staticprivate |
Field logger.
|
private |
actual uri info provided by parent resource