@Component public class ActionManagerImpl extends java.lang.Object implements ActionManager
| Constructor and Description |
|---|
ActionManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Action> |
findActionsByAssignmentAndUser(int xAssignmentId,
int xUserId)
Find the actions for a particular user in an assignment
|
java.util.List<Action> |
findActionsByAssignmentandUsers(int xAssignmentId,
java.util.List<java.lang.Integer> xUserIds)
Find the actions for a list of users in an assignment
|
java.util.List<Action> |
findActionsByProblemAndUser(int xAssignmentId,
int xUserId,
int problemId)
given a problem and user find the actions associated in the context of an assignment
|
java.util.List<Action> |
findActionsByProblemAndUsers(int xAssignmentId,
java.util.List<java.lang.Integer> xUserIds,
int problemId)
Find the actions for a list of users in an assignment for a particular problem
|
Action |
persist(Action action,
int assignmentLogId)
Persist an action
|
public Action persist(Action action, int assignmentLogId)
ActionManagerpersist in interface ActionManageraction - the action to be persistedassignmentLogId - the assignment log id that the action belongs topublic java.util.List<Action> findActionsByProblemAndUser(int xAssignmentId, int xUserId, int problemId)
ActionManagerfindActionsByProblemAndUser in interface ActionManagerxAssignmentId - the external id of the assignmentxUserId - The external id of a userproblemId - the problem idpublic java.util.List<Action> findActionsByAssignmentAndUser(int xAssignmentId, int xUserId)
ActionManagerfindActionsByAssignmentAndUser in interface ActionManagerxAssignmentId - the external id of the assignmentxUserId - the external id of the userpublic java.util.List<Action> findActionsByProblemAndUsers(int xAssignmentId, java.util.List<java.lang.Integer> xUserIds, int problemId)
ActionManagerfindActionsByProblemAndUsers in interface ActionManagerxUserIds - the list of external ids for the usersproblemId - the external id of the problempublic java.util.List<Action> findActionsByAssignmentandUsers(int xAssignmentId, java.util.List<java.lang.Integer> xUserIds)
ActionManagerfindActionsByAssignmentandUsers in interface ActionManagerxAssignmentId - the external id of the assignmentxUserIds - the list of external ids for the users