com.atlassian.jira.web.session
Class DefaultJiraSession

java.lang.Object
  extended by com.atlassian.jira.web.session.DefaultJiraSession
All Implemented Interfaces:
JiraSession

public class DefaultJiraSession
extends Object
implements JiraSession

Since:
v3.12

Constructor Summary
DefaultJiraSession(ProjectManager projectManager, PermissionManager permissionManager)
           
 
Method Summary
 Project getSelectedProject(User currentUser)
          JIRA keeps the last viewed project in a users session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultJiraSession

public DefaultJiraSession(ProjectManager projectManager,
                          PermissionManager permissionManager)
Method Detail

getSelectedProject

public Project getSelectedProject(User currentUser)
Description copied from interface: JiraSession
JIRA keeps the last viewed project in a users session. This method will get the project if one has been set and the current user has permission to see the project.

Specified by:
getSelectedProject in interface JiraSession
Parameters:
currentUser - the user who is trying to access the project.
Returns:
a Project that is the current users selected project, null if no project has been selected.


Copyright © 2002-2008 Atlassian. All Rights Reserved.