public interface UserProjectHistoryManager
UserHistoryManager
that allows you to deal directly with Project objectsModifier and Type | Method and Description |
---|---|
void |
addProjectToHistory(ApplicationUser user,
Project project)
Add a
Project to the user hsitory list. |
Project |
getCurrentProject(int permission,
ApplicationUser user)
Gets the last viewed project that the user visted and still has permission to see.
|
List<UserHistoryItem> |
getProjectHistoryWithoutPermissionChecks(ApplicationUser user)
Retreive the user's project history queue.
|
List<Project> |
getProjectHistoryWithPermissionChecks(int permission,
ApplicationUser user)
Deprecated.
|
List<Project> |
getProjectHistoryWithPermissionChecks(ProjectAction projectAction,
ApplicationUser user)
Retreive the user's project history queue.
|
boolean |
hasProjectHistory(int permission,
ApplicationUser user)
Determines whether the user has a current project history.
|
void addProjectToHistory(ApplicationUser user, Project project)
Project
to the user hsitory list.
A null users history should still be stored, even if only for duration of sessionuser
- The user to add the history item toproject
- The project to add to the history listboolean hasProjectHistory(int permission, ApplicationUser user)
permission
- the permission to check againstuser
- The user to check for.Project getCurrentProject(int permission, ApplicationUser user)
permission
- the permission the user must have for the projectuser
- The user to get teh history for.@Nonnull List<UserHistoryItem> getProjectHistoryWithoutPermissionChecks(ApplicationUser user)
user
- The user to get the history project items for.@Nonnull List<Project> getProjectHistoryWithPermissionChecks(int permission, ApplicationUser user)
getProjectHistoryWithPermissionChecks(ProjectAction, ApplicationUser)
permission
- The permission the user must have for the projectuser
- The user to get the history project items for.@Nonnull List<Project> getProjectHistoryWithPermissionChecks(ProjectAction projectAction, ApplicationUser user)
projectAction
- The projectAction the user must have for the projectuser
- The user to get the history project items for.Copyright © 2002-2019 Atlassian. All Rights Reserved.