|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.IssueActionSupport com.atlassian.jira.web.action.Dashboard
public class Dashboard
The action invoked to render a user's dashboard pages on the user's home page.
Field Summary |
---|
Fields inherited from class com.atlassian.jira.web.action.IssueActionSupport |
---|
attachmentManager |
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 | |
---|---|
Dashboard(PortalPageService portalPageService)
|
Method Summary | |
---|---|
protected String |
doExecute()
Action command that is executed for the dashboard. |
protected void |
doValidation()
Check to make sure that it is possible to move the requested portlets. |
String |
getApplicationTitle()
|
String |
getConfigureOnUrl()
Returns to the caller the URL of the 'Configure: ON' link on the dashboard. |
Long |
getCurrentPageId()
Return to the caller the id of the PortalPage being rendered. |
PortalPage |
getCurrentPortalPage()
Return to the caller the PortalPage being rendered. |
Collection |
getDisplayPages()
Return a list of pages that the user will see of the dashboard. |
String |
getManageDashboardUrl()
Return to the caller the URL for the "Manage Dashboard" link on the user's dashboard. |
Long |
getMoveToPageId()
|
protected PortalPageService |
getPortalPageService()
|
Long[] |
getSelectedPortlets()
|
List |
getSelectedPortletsList()
|
Long |
getSelectPageId()
|
Collection |
getUserPreferredPages()
Return to the caller a list of PortalPages that the user *should* see on the dashboard. |
String |
getWarningMessage()
Return a warning HTML string that will be displayed on the GUI. |
boolean |
isConfigureAllowed()
Tells the caller if the user should be presented with the links to edit the current page. |
boolean |
isConfiguring()
Called to decide if user is viewing the page in configure mode. |
boolean |
isHasPermission(String permName)
|
boolean |
isSelectedPortlet(Long id)
|
void |
setConfiguring(boolean configure)
Set the configuring state in the user's session. |
void |
setMoveToPageId(Long moveToPageId)
|
void |
setSelectedPortlets(Long[] selectedPortlets)
|
void |
setSelectPageId(Long selectPageId)
|
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport |
---|
getAttachmentManager, getCustomFieldManager, getDaysPerWeek, getHoursPerDay, getIssueManager, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getSearchRequest, getUrlEncoded, getWorkflow, getWorkflowTransitionDescription, getWorkflowTransitionDisplayName, isCustomFieldHidden, isFieldHidden, isFieldHidden, isFieldHidden, setCurrentIssue, setSearchRequest, updateSearchRequest |
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport |
---|
getBrowseableProjects, getBrowseableProjectsInCategory, getSelectedProjectId, setSelectedProject, setSelectedProject |
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, 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 |
Constructor Detail |
---|
public Dashboard(PortalPageService portalPageService)
Method Detail |
---|
protected void doValidation()
doValidation
in class webwork.action.ActionSupport
protected String doExecute()
DashboardPageWebComponent
.
doExecute
in class webwork.action.ActionSupport
public String getApplicationTitle()
public boolean isHasPermission(String permName)
isHasPermission
in class JiraWebActionSupport
public String getConfigureOnUrl()
public String getManageDashboardUrl()
public Long getCurrentPageId()
public PortalPage getCurrentPortalPage()
public Collection getUserPreferredPages()
public Collection getDisplayPages()
getUserPreferredPages()
except when the user is looking at a page that don't have favourited. In that case a new collection with the
extra page included will be returned.
public boolean isConfiguring()
public void setConfiguring(boolean configure)
configure
- the state to set in the session.public boolean isConfigureAllowed()
isUserCurrentPageOwner()
as sometimes we wish to display the edit links on the system default page
so that the user can initialise their first dashboard.
public String getWarningMessage()
public Long[] getSelectedPortlets()
public List getSelectedPortletsList()
public void setSelectedPortlets(Long[] selectedPortlets)
public boolean isSelectedPortlet(Long id)
public Long getMoveToPageId()
public void setMoveToPageId(Long moveToPageId)
public Long getSelectPageId()
public void setSelectPageId(Long selectPageId)
protected PortalPageService getPortalPageService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |