Class ConfigurePortalPages
java.lang.Object
webwork.action.ActionSupport
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classClass to help executing and displaying the results of PortalPage searches.Nested classes/interfaces inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
JiraWebActionSupport.MessageTypeNested classes/interfaces inherited from interface com.atlassian.jira.util.ErrorCollection
ErrorCollection.ReasonNested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactoryNested classes/interfaces inherited from interface com.atlassian.jira.web.action.util.sharing.SharedEntitySearchAction
SharedEntitySearchAction.FieldNameMapper, SharedEntitySearchAction.QueryValidator -
Field Summary
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, log, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters, SECURITY_BREACH_RESULTFields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessagesFields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS -
Constructor Summary
ConstructorsConstructorDescriptionConfigurePortalPages(PortalPageService portalPageService, JiraAuthenticationContext authenticationContext, FavouritesService favouritesService, GlobalPermissionManager permissionManager, ShareTypeFactory shareTypeFactory, UserFormats userFormats, com.atlassian.webresource.api.WebResourceManager webResourceManager, UserHistoryManager userHistoryManager, ShareManager shareManager, FeatureManager featureManager, UserManager userManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringDefault method runs when displaying portal pages.doMoveUp()getDropDownModel(PortalPageDisplayBean displayBean, int listIndex) intgetPageName(PortalPage portalPage) getPages()intintintgetView()booleanbooleanbooleanbooleanbooleanbooleanvoidsetContentOnly(boolean contentOnly) voidsetCopyPageId(Long copyPageId) voidsetDescription(String description) voidsetGroupShare(String groupShare) voidprotected voidsetPages(List<PortalPageDisplayBean> pages) voidsetPagingOffset(Long pagingOffset) voidsetPortalPageName(String portalPageName) voidsetPosition(int position) voidsetProjectShare(String projectShare) voidsetRoleShare(String roleShare) voidsetSearchName(String searchName) voidsetSearchOwnerUserName(String searchOwnerUserName) protected voidsetSearchResults(SharedEntitySearchViewHelper.SearchResult<PortalPage> searchResults) voidsetSearchShareType(String searchShareType) voidsetSortAscending(boolean sortAscending) voidsetSortColumn(String sortColumn) voidsetUserShare(String userShare) voidbooleanprotected StringtoUrl(PortalPageDisplayBean pageDisplayBean, String page, String idUrlVariable, boolean includeReturnUrl) protected List<PortalPageDisplayBean>transformToDisplayBeans(Collection<PortalPage> portalPages) Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, addMessageToResponse, addReason, addReasons, checkIfUrlIsAllowed, execute, forceRedirect, getActionName, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getComponentInstanceOfType, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDefaultResourceBundle, getDescTranslation, getDescTranslation, getDmyDateFormatter, getEmptyResponse, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getI18nHelper, getJiraContactHelper, getJiraServiceContext, getKeysForPrefix, getLanguage, getLocale, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getNameTranslation, getOfBizDelegator, getOutboundWhitelistProvider, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirect, getRedirectSanitiser, getRequestSourceType, getResourceBundle, getResult, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getServletContext, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTimeFormat, getUnescapedText, getUntransformedRawText, getUriValidator, getUserFullName, getUserManager, getUserPreferences, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasAnyErrors, hasErrorMessage, hasErrorMessageByKey, hasGlobalPermission, hasGlobalPermission, hasIssuePermission, hasIssuePermission, hasIssuePermission, hasPermission, hasProjectPermission, hasProjectPermission, htmlEncode, insertContextPath, isAdministrator, isIndexing, isInlineDialogMode, isKeyDefined, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, removeKeyOrAddError, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, tagMauEventWithApplication, tagMauEventWithProject, urlEncodeMethods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doValidation, getCommandName, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface webwork.action.CommandDriven
getCommandName, setCommandMethods inherited from interface com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, setErrorMessages
-
Constructor Details
-
Method Details
-
doDefault
- Overrides:
doDefaultin classwebwork.action.ActionSupport- Throws:
Exception
-
getSearchName
- Specified by:
getSearchNamein interfaceSharedEntitySearchAction
-
setSearchName
- Specified by:
setSearchNamein interfaceSharedEntitySearchAction
-
getSearchOwnerUserName
- Specified by:
getSearchOwnerUserNamein interfaceSharedEntitySearchAction
-
setSearchOwnerUserName
- Specified by:
setSearchOwnerUserNamein interfaceSharedEntitySearchAction
-
getPagingOffset
- Specified by:
getPagingOffsetin interfaceSharedEntitySearchAction
-
setPagingOffset
- Specified by:
setPagingOffsetin interfaceSharedEntitySearchAction
-
getSortColumn
- Specified by:
getSortColumnin interfaceSharedEntitySearchAction
-
setSortColumn
- Specified by:
setSortColumnin interfaceSharedEntitySearchAction
-
isSortAscending
public boolean isSortAscending()- Specified by:
isSortAscendingin interfaceSharedEntitySearchAction
-
setSortAscending
public void setSortAscending(boolean sortAscending) - Specified by:
setSortAscendingin interfaceSharedEntitySearchAction
-
setPageId
-
getPortalPageName
-
setPortalPageName
-
getCopyPageId
-
setCopyPageId
-
getPageId
-
getDescription
-
setDescription
-
getView
-
setView
-
getPosition
public int getPosition() -
setPosition
public void setPosition(int position) -
getPageName
-
isContentOnly
public boolean isContentOnly() -
setContentOnly
public void setContentOnly(boolean contentOnly) -
getSearchUnsuccessfulMessage
-
isErrorMessage
public boolean isErrorMessage() -
getPortalPageViewHelper
-
isSearchRequested
public boolean isSearchRequested() -
getCurrentPortalPage
-
getPages
-
setPages
-
getNextUrl
-
getPreviousUrl
-
getStartPosition
public int getStartPosition() -
getEndPosition
public int getEndPosition() -
getTotalResultCount
public int getTotalResultCount() -
isUserLoggedIn
public boolean isUserLoggedIn() -
hasBrowseUsersPermission
public boolean hasBrowseUsersPermission() -
shouldShowOwnerColumn
public boolean shouldShowOwnerColumn() -
doExecute
Default method runs when displaying portal pages.- Overrides:
doExecutein classwebwork.action.ActionSupport- Returns:
- the view to display
-
doMoveUp
-
doMoveDown
-
doMoveToStart
-
doMoveToEnd
-
transformToDisplayBeans
-
getDropDownModel
- Specified by:
getDropDownModelin interfaceDropDownModelProvider<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)
-