public class EditNotificationsAction extends AbstractUserProfileAction implements SpaceAware, PageAware
attachmentManager, favouriteManager, followManager, HOMEPAGE_DASHBOARD, HOMEPAGE_PROFILE, HOMEPAGE_SITEHOME, HTML_FRIENDLY_NAME, HTML_MIME_TYPE, notificationManager, personalInformationManager, spaceManager, statusTextRenderer, TEXT_FRIENDLY_NAME, TEXT_MIME_TYPE, userDetailsManager, wikiStyleRenderer
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
Constructor and Description |
---|
EditNotificationsAction() |
Modifier and Type | Method and Description |
---|---|
String |
doAddPageNotification() |
String |
doAddSpaceNotification() |
String |
doRemovePageNotification() |
String |
doRemoveSpaceNotification() |
String |
execute() |
AbstractPage |
getPage() |
long |
getPageId() |
List |
getPageNotificationsForUser() |
int |
getPageSize() |
List |
getPaginatedItems() |
PaginationSupport |
getPaginationSupport() |
Space |
getSpace() |
String |
getSpaceKey() |
String |
getSpaceName() |
List |
getSpaceNotificationsForUser() |
AddWatchLink |
getUndoLink() |
boolean |
isChangesSaved() |
boolean |
isLatestVersionRequired()
If the action can only work on the most recent version of a page, this will cause the
interceptor to silently replace the version that it looks up with the most recent
version, if necessary.
|
boolean |
isPageRequired()
If the action requires that the page be set before being run, then it should
return true to this method.
|
boolean |
isPermitted() |
boolean |
isSpaceRequired()
If the action requires that the space be set before being run, then it should
return true to this method.
|
void |
resetPagination() |
void |
setChangesSaved(boolean changesSaved) |
void |
setContentType(String contentType) |
void |
setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) |
void |
setPage(AbstractPage page)
IOC method for setting the page on the action.
|
void |
setPageId(long pageId) |
void |
setSpace(Space space)
IOC method for setting the space on the action.
|
void |
setSpaceKey(String spaceKey) |
void |
setStartIndex(int startIndex) |
currentUserHasLicensedAccess, getAttachments, getBreadcrumb, getContext, getEmail, getFullName, getPageTitle, getPersonalInformation, getPersonalInformationEntity, getPersonalSpaceKey, getRenderedAboutMe, getStatusTextRenderer, getUser, getUsername, getUserPreferences, getUserProfilePicture, getUserProperty, getWebInterfaceContext, hasPersonalSpace, isFavourite, isFollowing, isHasAboutMe, isMyProfile, isUserRequired, isViewPermissionRequired, setAttachmentManager, setFavouriteManager, setFollowManager, setNotificationManager, setPersonalInformation, setPersonalInformationManager, setSpaceManager, setStatusTextRenderer, setUserDetailsManager, setWikiStyleRenderer
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getCancelResult, getConfluenceAccessManager, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUserAccessor, getUserByName, getUserFullName, getUserHasBrowseUsersPermission, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setAccessModeService, setApiDateFormatService, setApiPersonService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, withServletRequestSupplier
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isViewPermissionRequired
isEditPermissionRequired, isViewPermissionRequired
validate
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
public PaginationSupport getPaginationSupport()
public void setStartIndex(int startIndex)
public int getPageSize()
public List getPaginatedItems()
public String doAddSpaceNotification()
public String doRemoveSpaceNotification()
public String doAddPageNotification()
public String doRemovePageNotification()
public List getPageNotificationsForUser()
public List getSpaceNotificationsForUser()
public String execute() throws Exception
execute
in interface com.opensymphony.xwork.Action
execute
in class com.opensymphony.xwork.ActionSupport
Exception
public void resetPagination()
public AbstractPage getPage()
public void setPage(AbstractPage page)
PageAware
public String getSpaceKey()
public String getSpaceName()
public void setSpaceKey(String spaceKey)
public AddWatchLink getUndoLink()
public boolean isPageRequired()
PageAware
isPageRequired
in interface PageAware
public boolean isLatestVersionRequired()
PageAware
isLatestVersionRequired
in interface PageAware
public boolean isPermitted()
isPermitted
in class ConfluenceActionSupport
public void setPageId(long pageId)
public long getPageId()
public boolean isChangesSaved()
public void setChangesSaved(boolean changesSaved)
public void setSpace(Space space)
SpaceAware
setSpace
in interface SpaceAware
space
- the space that the action will be working on.public boolean isSpaceRequired()
SpaceAware
isSpaceRequired
in interface SpaceAware
public void setContentType(String contentType)
Copyright © 2003–2020 Atlassian. All rights reserved.