com.atlassian.jira.web.action.user
Class ConfigurePortalPages
java.lang.Object
webwork.action.ActionSupport
com.atlassian.jira.action.JiraActionSupport
com.atlassian.jira.web.action.JiraWebActionSupport
com.atlassian.jira.web.action.user.ConfigurePortalPages
- All Implemented Interfaces:
- ErrorCollection, I18nHelper, SharedEntitySearchAction, HttpServletVariables, DropDownModelProvider<PortalPageDisplayBean>, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
- Direct Known Subclasses:
- ViewSharedDashboards
public class ConfigurePortalPages
- extends JiraWebActionSupport
- implements SharedEntitySearchAction, DropDownModelProvider<PortalPageDisplayBean>
This action is the place we manage Portal Pages, aka Dashboard pages from
- See Also:
- Serialized Form
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, addMessageToResponse, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDmyDateFormatter, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirect, getRedirectSanitiser, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getServletContext, getTimeFormat, getUriValidator, getUserFullName, getUserManager, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, hasIssuePermission, hasPermission, hasProjectPermission, htmlEncode, insertContextPath, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, urlEncode |
Methods inherited from class com.atlassian.jira.action.JiraActionSupport |
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getDelegator, getI18nHelper, getKeysForPrefix, getLocale, getOfBizDelegator, getRemoteUser, getResourceBundle, 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, doExecute, doValidation, getCommandName, 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 |
ConfigurePortalPages
public ConfigurePortalPages(PortalPageService portalPageService,
JiraAuthenticationContext authenticationContext,
FavouritesService favouritesService,
PermissionManager permissionManager,
ShareTypeFactory shareTypeFactory,
UserFormatManager userFormatManager,
com.atlassian.plugin.webresource.WebResourceManager webResourceManager,
UserHistoryManager userHistoryManager)
getSearchName
public String getSearchName()
- Specified by:
getSearchName
in interface SharedEntitySearchAction
setSearchName
public void setSearchName(String searchName)
- Specified by:
setSearchName
in interface SharedEntitySearchAction
getSearchOwnerUserName
public String getSearchOwnerUserName()
- Specified by:
getSearchOwnerUserName
in interface SharedEntitySearchAction
setSearchOwnerUserName
public void setSearchOwnerUserName(String searchOwnerUserName)
- Specified by:
setSearchOwnerUserName
in interface SharedEntitySearchAction
getSearchShareType
public String getSearchShareType()
- Specified by:
getSearchShareType
in interface SharedEntitySearchAction
setSearchShareType
public void setSearchShareType(String searchShareType)
- Specified by:
setSearchShareType
in interface SharedEntitySearchAction
setGroupShare
public void setGroupShare(String groupShare)
- Specified by:
setGroupShare
in interface SharedEntitySearchAction
getGroupShare
public String getGroupShare()
- Specified by:
getGroupShare
in interface SharedEntitySearchAction
getPagingOffset
public Long getPagingOffset()
- Specified by:
getPagingOffset
in interface SharedEntitySearchAction
setProjectShare
public void setProjectShare(String projectShare)
- Specified by:
setProjectShare
in interface SharedEntitySearchAction
getProjectShare
public String getProjectShare()
- Specified by:
getProjectShare
in interface SharedEntitySearchAction
setRoleShare
public void setRoleShare(String roleShare)
- Specified by:
setRoleShare
in interface SharedEntitySearchAction
getRoleShare
public String getRoleShare()
- Specified by:
getRoleShare
in interface SharedEntitySearchAction
setPagingOffset
public void setPagingOffset(Long pagingOffset)
- Specified by:
setPagingOffset
in interface SharedEntitySearchAction
getSortColumn
public String getSortColumn()
- Specified by:
getSortColumn
in interface SharedEntitySearchAction
setSortColumn
public void setSortColumn(String sortColumn)
- Specified by:
setSortColumn
in interface SharedEntitySearchAction
isSortAscending
public boolean isSortAscending()
- Specified by:
isSortAscending
in interface SharedEntitySearchAction
setSortAscending
public void setSortAscending(boolean sortAscending)
- Specified by:
setSortAscending
in interface SharedEntitySearchAction
setSearchResults
protected void setSearchResults(SharedEntitySearchViewHelper.SearchResult<PortalPage> searchResults)
setPageId
public void setPageId(Long pageId)
getPortalPageName
public String getPortalPageName()
setPortalPageName
public void setPortalPageName(String portalPageName)
getCopyPageId
public Long getCopyPageId()
setCopyPageId
public void setCopyPageId(Long copyPageId)
getPageId
public Long getPageId()
getDescription
public String getDescription()
setDescription
public void setDescription(String description)
getView
public String getView()
setView
public void setView(String view)
getPosition
public int getPosition()
setPosition
public void setPosition(int position)
getPageName
public String getPageName(PortalPage portalPage)
isContentOnly
public boolean isContentOnly()
setContentOnly
public void setContentOnly(boolean contentOnly)
getSearchEmptyMessageKey
public String getSearchEmptyMessageKey()
getPortalPageViewHelper
public ConfigurePortalPages.PortalPageViewHelper getPortalPageViewHelper()
isSearchRequested
public boolean isSearchRequested()
getCurrentPortalPage
public PortalPage getCurrentPortalPage()
getPages
public List getPages()
setPages
protected void setPages(List<PortalPageDisplayBean> pages)
getNextUrl
public String getNextUrl()
getPreviousUrl
public String getPreviousUrl()
getStartPosition
public int getStartPosition()
getEndPosition
public int getEndPosition()
getTotalResultCount
public int getTotalResultCount()
doDefault
public String doDefault()
- Default method runs when displaying portal pages.
- Overrides:
doDefault
in class webwork.action.ActionSupport
- Returns:
- the view to display
getPortalPageLinkRenderer
public PortalPageLinkRenderer getPortalPageLinkRenderer()
doMoveUp
public String doMoveUp()
doMoveDown
public String doMoveDown()
doMoveToStart
public String doMoveToStart()
doMoveToEnd
public String doMoveToEnd()
transformToDisplayBeans
protected List<PortalPageDisplayBean> transformToDisplayBeans(Collection<PortalPage> portalPages)
getDropDownModel
public DropDownModel getDropDownModel(PortalPageDisplayBean displayBean,
int listIndex)
- Specified by:
getDropDownModel
in interface DropDownModelProvider<PortalPageDisplayBean>
- Parameters:
displayBean
- some domain objectlistIndex
- this parameter indicates the position in of the domain object in a list of domain objects.
Often generated markup uses position in the list to generate ids and the like
- Returns:
- a drop down model based on the values in domainObject
toUrl
protected String toUrl(PortalPageDisplayBean pageDisplayBean,
String page,
String idUrlVariable,
boolean includeReturnUrl)
Copyright © 2002-2013 Atlassian. All Rights Reserved.