public abstract class AbstractDiffPagesAction extends AbstractPageAwareAction implements TinyUrlAware
Modifier and Type | Field and Description |
---|---|
protected String |
diff |
protected AbstractPage |
originalPage |
protected PageManager |
pageManager |
contentPermissionManager, spaceManager
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
Constructor and Description |
---|
AbstractDiffPagesAction() |
Modifier and Type | Method and Description |
---|---|
String |
execute() |
String |
getDiff() |
AbstractPage |
getLatestVersion() |
abstract AbstractPage |
getOriginalPage() |
long |
getPageIdOfVersionAfter(AbstractPage page) |
long |
getPageIdOfVersionBefore(AbstractPage page) |
List<VersionHistorySummary> |
getPreviousVersions()
Required when an error occurs.
|
AbstractPage |
getRevisedPage() |
String |
getTinyUrl() |
boolean |
hasNextVersion(AbstractPage page) |
boolean |
hasPreviousVersion(AbstractPage page) |
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 |
isPermitted() |
boolean |
isRevertPermitted()
Required when an error occurs.
|
boolean |
isViewPermissionRequired() |
void |
setHtmlDiffer(Differ differ) |
void |
setPageManager(PageManager pageManager) |
getFriendlyDateFormatterHelper, getPage, getPageId, getSpace, getSpaceKey, getTitle, hasViewPagePermission, isCollaborativeContent, isPageRequired, setContentPermissionManager, setPage, setSpaceManager
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getCancelResult, getConfluenceAccessManager, getContext, 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, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserByName, getUserFullName, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSharedMode, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setApiDateFormatService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager
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
isEditPermissionRequired
validate
protected AbstractPage originalPage
protected String diff
protected PageManager pageManager
public void setPageManager(PageManager pageManager)
public List<VersionHistorySummary> getPreviousVersions()
public boolean isRevertPermitted()
public abstract AbstractPage getOriginalPage()
public AbstractPage getRevisedPage()
public AbstractPage getLatestVersion()
public String getDiff()
public String execute() throws Exception
execute
in interface com.opensymphony.xwork.Action
execute
in class com.opensymphony.xwork.ActionSupport
Exception
public boolean isLatestVersionRequired()
PageAware
isLatestVersionRequired
in interface PageAware
isLatestVersionRequired
in class AbstractPageAwareAction
public boolean isViewPermissionRequired()
isViewPermissionRequired
in interface PageAware
isViewPermissionRequired
in class AbstractPageAwareAction
public boolean isPermitted()
isPermitted
in class AbstractPageAwareAction
public long getPageIdOfVersionAfter(AbstractPage page)
public long getPageIdOfVersionBefore(AbstractPage page)
public boolean hasPreviousVersion(AbstractPage page)
public boolean hasNextVersion(AbstractPage page)
public String getTinyUrl()
getTinyUrl
in interface TinyUrlAware
public void setHtmlDiffer(Differ differ)
Copyright © 2003–2017 Atlassian. All rights reserved.