|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserProjectHistoryManager
A wrapper of the UserHistoryManager that allows you to deal directly with Project objects
| 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)
Deprecated. since 4.4, use {#getProjectHistoryWithPermissionChecks(ProjectAction, User)} |
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. |
| Method Detail |
|---|
void addProjectToHistory(com.atlassian.crowd.embedded.api.User user,
Project project)
Project to the user hsitory list.
A null users history should still be stored, even if only for duration of session
user - The user to add the history item toproject - The project to add to the history list
boolean hasProjectHistory(int permission,
com.atlassian.crowd.embedded.api.User user)
permission - the permission to check againstuser - The user to check for.
Project getCurrentProject(int permission,
com.atlassian.crowd.embedded.api.User user)
permission - the permission the user must have for the projectuser - The user to get teh history for.
@Nonnull List<UserHistoryItem> getProjectHistoryWithoutPermissionChecks(com.atlassian.crowd.embedded.api.User user)
user - The user to get the history project items for.
@Nonnull
List<Project> getProjectHistoryWithPermissionChecks(int permission,
com.atlassian.crowd.embedded.api.User user)
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,
com.atlassian.crowd.embedded.api.User user)
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 | |||||||||