Class BrowseProjectContext

java.lang.Object
com.atlassian.jira.project.browse.BrowseProjectContext
All Implemented Interfaces:
BrowseContext

public class BrowseProjectContext extends Object implements BrowseContext
Context for BrowseProject when viewing a project.
Since:
v4.0
  • Field Details

  • Constructor Details

  • Method Details

    • getProject

      public Project getProject()
      Description copied from interface: BrowseContext
      The current projecet being browsed.
      Specified by:
      getProject in interface BrowseContext
      Returns:
      The current project.
    • getUser

      public ApplicationUser getUser()
      Description copied from interface: BrowseContext
      The user browsing the project.
      Specified by:
      getUser in interface BrowseContext
      Returns:
      The user browsing the project.
    • createQuery

      public Query createQuery()
      Description copied from interface: BrowseContext
      Creates a new Query that narrows it down to the current search context. E.g. Project, Component, Version
      Specified by:
      createQuery in interface BrowseContext
      Returns:
      A new Query that has a more refined search based on the current context.
    • getProjectClause

      protected TerminalClause getProjectClause()
    • getProjectManager

      protected ProjectManager getProjectManager()
    • getSearchService

      protected SearchService getSearchService()
    • getQueryString

      public String getQueryString()
      Description copied from interface: BrowseContext
      Gets the URL query string for this context. Used to create links to navigator but still in this context.
      Specified by:
      getQueryString in interface BrowseContext
      Returns:
      the URL query string for this context.
    • getIssueSearchPath

      public String getIssueSearchPath()
      Description copied from interface: BrowseContext
      Gets the URL for this context, which includes /issues/?jql=. Used to create links to navigator but still in this context.
      Specified by:
      getIssueSearchPath in interface BrowseContext
      Returns:
      the URL query string for this context.
    • createParameterMap

      public Map<String,Object> createParameterMap()
      Description copied from interface: BrowseContext
      Creates a map of the context-specific parameters and their associated domain objects.
      Specified by:
      createParameterMap in interface BrowseContext
      Returns:
      a mapping from parameter name to domain object.
    • getContextKey

      public String getContextKey()
      Description copied from interface: BrowseContext
      Contains a context unique that can be used to identify this context. This is useful when storing things in the session on per context basis.
      Specified by:
      getContextKey in interface BrowseContext
      Returns:
      a unique key for this context
    • getExecutingHttpRequest

      protected javax.servlet.http.HttpServletRequest getExecutingHttpRequest()