com.atlassian.jira.web.action.browser
Class BrowseProject
java.lang.Object
webwork.action.ActionSupport
com.atlassian.jira.action.JiraActionSupport
com.atlassian.jira.web.action.JiraWebActionSupport
com.atlassian.jira.web.action.ProjectActionSupport
com.atlassian.jira.web.action.browser.BrowseProject
- All Implemented Interfaces:
- ErrorCollection, I18nHelper, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
public class BrowseProject
- extends ProjectActionSupport
- See Also:
- Serialized Form
Field Summary |
protected com.atlassian.plugin.PluginAccessor |
pluginAccessor
|
Fields inherited from class webwork.action.ActionSupport |
command, errorMap, errorMessages |
Fields inherited from interface webwork.action.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport |
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDmyDateFormatter, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInUser, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirectChecker, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getTimeFormat, getUriValidator, getUserFullName, getUserManager, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, htmlEncode, insertContextPath, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId |
Methods inherited from class com.atlassian.jira.action.JiraActionSupport |
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getDelegator, getI18nHelper, getKeysForPrefix, getLocale, getOfBizDelegator, getRemoteUser, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUntransformedRawText, getUserPreferences, getWatcherManager, hasAnyErrors, isIndexing, isKeyDefined, removeKeyOrAddError |
Methods inherited from class webwork.action.ActionSupport |
addError, addErrorMessage, doDefault, doValidation, getCommandName, 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 webwork.action.CommandDriven |
getCommandName, setCommand |
pluginAccessor
protected final com.atlassian.plugin.PluginAccessor pluginAccessor
BrowseProject
public BrowseProject(ProjectManager projectManager,
PermissionManager permissionManager,
com.atlassian.plugin.PluginAccessor pluginAccessor,
com.atlassian.plugin.webresource.WebResourceManager webResourceManager,
PopularIssueTypesUtil popularIssueTypesUtil,
UserProjectHistoryManager projectHistoryManager)
getId
public Long getId()
setId
public void setId(Long id)
getSelected
public String getSelected()
getSession
protected Map<String,Object> getSession()
setSelectedTab
public void setSelectedTab(String report)
setStateUpdateOnly
public void setStateUpdateOnly(boolean stateUpdateOnly)
isStateUpdateOnly
public boolean isStateUpdateOnly()
getProject
public Project getProject()
- This method returns currently selected project
- Returns:
- currently selected project
- Since:
- 3.10
isHasProjectAdminPermission
public boolean isHasProjectAdminPermission()
doExecute
public String doExecute()
throws Exception
- Browse single project
- Overrides:
doExecute
in class webwork.action.ActionSupport
- Returns:
- string representing the view
- Throws:
Exception
- if cannot get the project
hasCreateIssuePermissionForProject
public boolean hasCreateIssuePermissionForProject()
getProjectTabPanels
public List<ProjectTabPanelModuleDescriptor> getProjectTabPanels()
getTabHtmlForJSON
public String getTabHtmlForJSON()
throws IOException
- Throws:
IOException
getTabHtml
public String getTabHtml()
throws IOException
- Throws:
IOException
getTabLabel
public String getTabLabel()
setContentOnly
public void setContentOnly(boolean contentOnly)
isContentOnly
public boolean isContentOnly()
isNoTitle
public boolean isNoTitle()
setNoTitle
public void setNoTitle(boolean noTitle)
getPopularIssueTypes
public Collection<IssueType> getPopularIssueTypes()
getOtherIssueTypes
public Collection<IssueType> getOtherIssueTypes()
initTabPanels
protected List<ProjectTabPanelModuleDescriptor> 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(TabPanelModuleDescriptor<? extends TabPanel> 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-2012 Atlassian. All Rights Reserved.