@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)
ActionManager
persist
in interface ActionManager
action
- 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)
ActionManager
findActionsByProblemAndUser
in interface ActionManager
xAssignmentId
- the external id of the assignmentxUserId
- The external id of a userproblemId
- the problem idpublic java.util.List<Action> findActionsByAssignmentAndUser(int xAssignmentId, int xUserId)
ActionManager
findActionsByAssignmentAndUser
in interface ActionManager
xAssignmentId
- 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)
ActionManager
findActionsByProblemAndUsers
in interface ActionManager
xUserIds
- 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)
ActionManager
findActionsByAssignmentandUsers
in interface ActionManager
xAssignmentId
- the external id of the assignmentxUserIds
- the list of external ids for the users