com.atlassian.jira.web.action.browser
Class Browser

java.lang.Object
  extended by webwork.action.ActionSupport
      extended by com.atlassian.jira.action.JiraActionSupport
          extended by com.atlassian.jira.web.action.JiraWebActionSupport
              extended by com.atlassian.jira.web.action.ProjectActionSupport
                  extended by com.atlassian.jira.web.action.browser.Browser
All Implemented Interfaces:
ErrorCollection, I18nHelper, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class Browser
extends ProjectActionSupport

See Also:
Serialized Form

Field Summary
static Collection FIX_FOR_SEARCH_SORTS
           
protected  com.atlassian.plugin.PluginAccessor pluginAccessor
           
 
Fields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
projectManager
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, savedFilters, selectedProject
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface com.atlassian.jira.util.I18nHelper
DEFAULT_RESOURCE_BUNDLE
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
Browser(ProjectManager projectManager, ConstantsManager constantsManager, SearchProvider searchProvider, PermissionManager permissionManager, VersionManager versionManager, com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 
Method Summary
protected  String doExecute()
           
 String doProject()
          Browse single project
 String doProjects()
          Browse multiple projects
 StatisticAccessorBean getAllStatAccessor()
           
 Long getId()
           
 Collection getIssuesByFixForVersion(Version version)
           
 PercentageGraphModel getIssueSummaryByFixForVersion(Version version)
           
 User getLeadUser(org.ofbiz.core.entity.GenericValue project)
           
 org.ofbiz.core.entity.GenericValue getProject()
          Deprecated. This method is deprecated since v3.10. Please use getProjectObject() instead.
 Project getProjectObject()
          This method returns currently selected project
 String getProjectTabHtml()
           
 List getProjectTabPanels()
           
 String getReport()
           
 List getReports()
           
 long getResolvedGroupedByFixFor(Version version)
           
protected  Map getSession()
           
 StatisticAccessorBean getStatAccessor()
           
 boolean getStringSet(org.ofbiz.core.entity.GenericValue gv, String value)
           
 Long getSubset()
           
 String getUpperCase(String s)
           
protected  List initTabPanels(Class tabPanelClass)
          Initializes the tab panels and returns a list of ModuleDescriptor objects.
protected  boolean isTabPanelHidden(AbstractTabPanelModuleDescriptor descriptor)
          Returns true if the tab panel of the given descriptor should be hidden from the current view
 boolean isVersionReleased(Version version)
           
 void setId(Long id)
           
 void setReport(String report)
           
 void setSubset(Long subset)
           
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSelectedProjectId, setSelectedProject, setSelectedProject
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, forceRedirect, getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getGlobalPermissionManager, getJiraServiceContext, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getReturnUrl, getSelectedProject, getSelectedProjectObject, getServerId, getText, getTimeFormat, getUserFullName, getVersionManager, getWebworkStack, getWebworkStack, htmlEncode, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isSystemAdministrator, isUserExists, setReturnUrl, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getApplicationProperties, getDefaultResourceBundle, getDelegator, getJiraLocaleUtils, getLocale, getResult, getText, getText, getText, getText, getText, getText, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doDefault, doValidation, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
setCommand
 

Field Detail

FIX_FOR_SEARCH_SORTS

public static final Collection FIX_FOR_SEARCH_SORTS

pluginAccessor

protected final com.atlassian.plugin.PluginAccessor pluginAccessor
Constructor Detail

Browser

public Browser(ProjectManager projectManager,
               ConstantsManager constantsManager,
               SearchProvider searchProvider,
               PermissionManager permissionManager,
               VersionManager versionManager,
               com.atlassian.plugin.PluginAccessor pluginAccessor)
Method Detail

getId

public Long getId()
           throws PermissionException
Throws:
PermissionException

setId

public void setId(Long id)

getReport

public String getReport()

getSession

protected Map getSession()

setReport

public void setReport(String report)

getSubset

public Long getSubset()

setSubset

public void setSubset(Long subset)

getProject

public org.ofbiz.core.entity.GenericValue getProject()
                                              throws Exception
Deprecated. This method is deprecated since v3.10. Please use getProjectObject() instead.

This method returns currently selected project generic value

Returns:
currently selected project generic value
Throws:
Exception - if user does not have permission to see this project

getProjectObject

public Project getProjectObject()
This method returns currently selected project

Returns:
currently selected project
Since:
3.10

getIssuesByFixForVersion

public Collection getIssuesByFixForVersion(Version version)
                                    throws Exception
Throws:
Exception

getIssueSummaryByFixForVersion

public PercentageGraphModel getIssueSummaryByFixForVersion(Version version)
                                                    throws Exception
Throws:
Exception

getResolvedGroupedByFixFor

public long getResolvedGroupedByFixFor(Version version)
                                throws Exception
Throws:
Exception

getStatAccessor

public StatisticAccessorBean getStatAccessor()
                                      throws PermissionException
Throws:
PermissionException

getAllStatAccessor

public StatisticAccessorBean getAllStatAccessor()
                                         throws PermissionException
Throws:
PermissionException

doProjects

public String doProjects()
                  throws Exception
Browse multiple projects

Returns:
String of Action.SUCCESS
Throws:
Exception - never throws

doProject

public String doProject()
                 throws Exception
Browse single project

Returns:
string representing the view
Throws:
Exception - if cannot get the project

doExecute

protected String doExecute()
                    throws Exception
Overrides:
doExecute in class webwork.action.ActionSupport
Throws:
Exception

getUpperCase

public String getUpperCase(String s)

isVersionReleased

public boolean isVersionReleased(Version version)
                          throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getProjectTabPanels

public List getProjectTabPanels()

getProjectTabHtml

public String getProjectTabHtml()

getReports

public List getReports()

getStringSet

public boolean getStringSet(org.ofbiz.core.entity.GenericValue gv,
                            String value)

getLeadUser

public User getLeadUser(org.ofbiz.core.entity.GenericValue project)

initTabPanels

protected List initTabPanels(Class tabPanelClass)
Initializes the tab panels and returns a list of ModuleDescriptor objects.

Parameters:
tabPanelClass - tab panel class
Returns:
list of ModuleDescriptor objects, never null
Since:
v3.10

isTabPanelHidden

protected boolean isTabPanelHidden(AbstractTabPanelModuleDescriptor descriptor)
                            throws PermissionException
Returns true if the tab panel of the given descriptor should be hidden from the current view

Parameters:
descriptor - module descriptor
Returns:
true if hidden, false otherwise
Throws:
PermissionException - if project is invalid or not visible to the current user
Since:
v3.10


Copyright © 2002-2008 Atlassian. All Rights Reserved.