public class PageNotPermittedAction extends ConfluenceActionSupport implements PageAware
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager| Constructor and Description |
|---|
PageNotPermittedAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canUserRequestAccessOnCurrentPage() |
String |
execute() |
long |
getDraftId() |
String |
getLoginUrl() |
String |
getNoPageEditPermissionRedirectUrl() |
String |
getNoSpaceEditPermissionRedirectUrl() |
String |
getOriginalurl()
Deprecated.
since 5.2.1. No longer required for getLoginUrl to be expanded correctly.
|
AbstractPage |
getPage() |
long |
getPageId() |
PageManager |
getPageManager() |
String |
getRequestAccessType() |
String |
getSpaceKey() |
String |
getTitle() |
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 |
isPermittedToViewCurrentPage()
Deprecated.
since 6.2.0
|
boolean |
isRequestAccessPluginEnabled() |
boolean |
isViewPermissionRequired() |
void |
setDraftId(long draftId) |
void |
setPage(AbstractPage page)
IOC method for setting the page on the action.
|
void |
setPageId(long pageId) |
void |
setPageManager(PageManager pageManager) |
void |
setSpaceKey(String spaceKey) |
void |
setTitle(String pageTitle) |
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, setWebInterfaceManageraddActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisEditPermissionRequiredvalidatepublic String execute() throws IOException
execute in interface com.opensymphony.xwork.Actionexecute in class com.opensymphony.xwork.ActionSupportIOExceptionpublic String getNoPageEditPermissionRedirectUrl()
public String getNoSpaceEditPermissionRedirectUrl()
public long getPageId()
public long getDraftId()
public boolean isPermitted()
isPermitted in class ConfluenceActionSupportpublic void setPageId(long pageId)
public void setDraftId(long draftId)
public AbstractPage getPage()
public void setPage(AbstractPage page)
PageAwarepublic boolean isPageRequired()
PageAwareisPageRequired in interface PageAwarepublic boolean isLatestVersionRequired()
PageAwareisLatestVersionRequired in interface PageAwarepublic boolean isViewPermissionRequired()
isViewPermissionRequired in interface PageAware@Deprecated public boolean isPermittedToViewCurrentPage()
public boolean canUserRequestAccessOnCurrentPage()
public String getRequestAccessType()
public boolean isRequestAccessPluginEnabled()
@Deprecated public String getOriginalurl()
public String getLoginUrl()
public PageManager getPageManager()
public void setPageManager(PageManager pageManager)
public String getSpaceKey()
public void setSpaceKey(String spaceKey)
public String getTitle()
public void setTitle(String pageTitle)
Copyright © 2003–2018 Atlassian. All rights reserved.