|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.user.DefaultUserProjectHistoryManager
public class DefaultUserProjectHistoryManager
Convienience wrapper for the UserHistoryManager
that deals directly with Projects.
Constructor Summary | |
---|---|
DefaultUserProjectHistoryManager(UserHistoryManager userHistoryManager,
ProjectManager projectManager,
PermissionManager permissionManager)
|
Method Summary | |
---|---|
void |
addProjectToHistory(com.atlassian.crowd.embedded.api.User user,
Project project)
Add a Project to the user hsitory list. |
Project |
getCurrentProject(int permission,
com.atlassian.crowd.embedded.api.User user)
Gets the last viewed project that the user visted and still has permission to see. |
List<UserHistoryItem> |
getProjectHistoryWithoutPermissionChecks(com.atlassian.crowd.embedded.api.User user)
Retreive the user's project history queue. |
List<Project> |
getProjectHistoryWithPermissionChecks(int permission,
com.atlassian.crowd.embedded.api.User user)
Retreive the user's project history queue. |
List<Project> |
getProjectHistoryWithPermissionChecks(ProjectAction projectAction,
com.atlassian.crowd.embedded.api.User user)
Retreive the user's project history queue. |
boolean |
hasProjectHistory(int permission,
com.atlassian.crowd.embedded.api.User user)
Determines whether the user has a current project history. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultUserProjectHistoryManager(UserHistoryManager userHistoryManager, ProjectManager projectManager, PermissionManager permissionManager)
Method Detail |
---|
public void addProjectToHistory(com.atlassian.crowd.embedded.api.User user, Project project)
UserProjectHistoryManager
Project
to the user hsitory list.
A null users history should still be stored, even if only for duration of session
addProjectToHistory
in interface UserProjectHistoryManager
user
- The user to add the history item toproject
- The project to add to the history listpublic boolean hasProjectHistory(int permission, com.atlassian.crowd.embedded.api.User user)
UserProjectHistoryManager
hasProjectHistory
in interface UserProjectHistoryManager
permission
- the permission to check againstuser
- The user to check for.
public Project getCurrentProject(int permission, com.atlassian.crowd.embedded.api.User user)
UserProjectHistoryManager
getCurrentProject
in interface UserProjectHistoryManager
permission
- the permission the user must have for the projectuser
- The user to get teh history for.
public List<UserHistoryItem> getProjectHistoryWithoutPermissionChecks(com.atlassian.crowd.embedded.api.User user)
UserProjectHistoryManager
getProjectHistoryWithoutPermissionChecks
in interface UserProjectHistoryManager
user
- The user to get the history project items for.
public List<Project> getProjectHistoryWithPermissionChecks(int permission, com.atlassian.crowd.embedded.api.User user)
UserProjectHistoryManager
getProjectHistoryWithPermissionChecks
in interface UserProjectHistoryManager
permission
- The permission the user must have for the projectuser
- The user to get the history project items for.
public List<Project> getProjectHistoryWithPermissionChecks(ProjectAction projectAction, com.atlassian.crowd.embedded.api.User user)
UserProjectHistoryManager
getProjectHistoryWithPermissionChecks
in interface UserProjectHistoryManager
projectAction
- The projectAction the user must have for the projectuser
- The user to get the history project items for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |