|
||||||||||
| 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)
UserProjectHistoryManagerProject to the user hsitory list.
A null users history should still be stored, even if only for duration of session
addProjectToHistory in interface UserProjectHistoryManageruser - The user to add the history item toproject - The project to add to the history list
public boolean hasProjectHistory(int permission,
com.atlassian.crowd.embedded.api.User user)
UserProjectHistoryManager
hasProjectHistory in interface UserProjectHistoryManagerpermission - 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 UserProjectHistoryManagerpermission - 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 UserProjectHistoryManageruser - 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 UserProjectHistoryManagerpermission - 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 UserProjectHistoryManagerprojectAction - 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 | |||||||||