|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ActionRepository
Repository for actions.
Method Summary | |
---|---|
java.util.List<ActionEntity> |
completed(java.lang.String sort,
SortOrder sortOrder,
int pageNo,
int pageSize)
Retrieve subset of actions not in the status SCHEDULED. |
long |
countCompleted()
Count all actions not in the status SCHEDULED. |
long |
countPending()
Count all actions in the status SCHEDULED. |
void |
create(ActionEntity action)
Persist a newly created action. |
ActionEntity |
find(java.util.UUID actionId)
Find an action from its ID. |
java.util.List<ActionEntity> |
latest(java.util.Date until)
Retrieve the latest actions. |
java.util.List<ActionEntity> |
pending(java.lang.String sort,
SortOrder sortOrder,
int pageNo,
int pageSize)
Retrieve subset of actions in the status SCHEDULED. |
Method Detail |
---|
java.util.List<ActionEntity> latest(java.util.Date until)
until
- Cut off date.
java.util.List<ActionEntity> pending(java.lang.String sort, SortOrder sortOrder, int pageNo, int pageSize)
sort
- The field to sort on.sortOrder
- The order results be sorted in.pageNo
- The page of results to return.pageSize
- The number of results in a page.
java.util.List<ActionEntity> completed(java.lang.String sort, SortOrder sortOrder, int pageNo, int pageSize)
sort
- The field to sort on.sortOrder
- The order results be sorted in.pageNo
- The page of results to return.pageSize
- The number of results in a page.
long countCompleted()
long countPending()
ActionEntity find(java.util.UUID actionId)
actionId
- The action's ID.
void create(ActionEntity action)
action
- The action to persist.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |