public abstract class AbstractCreateAndEditPageAction extends AbstractTemplatePageAction implements CaptchaAware
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTIVITY_UNAVAILABLE |
protected CaptchaManager |
captchaManager |
protected CollaborativeEditingHelper |
collaborativeEditingHelper |
protected DraftManager |
draftManager |
protected DraftService |
draftService |
protected DraftsTransitionHelper |
draftsTransitionHelper |
protected HeartbeatManager |
heartbeatManager |
static String |
LOCKED |
protected String |
newSpaceKey |
protected NotificationManager |
notificationManager |
protected PageService |
pageService |
protected Page |
parentPage |
protected long |
parentPageId |
protected String |
parentPageSpaceKey |
protected String |
parentPageString |
protected String |
parentPageTitle |
protected long |
targetId |
static String |
USER_LIMIT_REACHED |
pageTemplateManager, templateIdback, bean, formatConverter, inPreview, preview, storageFormat, wikiStyleRenderer, wysiwygContentincomingLinks, linkManager, pageManager, PREVIEW, RICHTEXT, viewRenderer, wysiwygConvertercontentPermissionManager, spaceManageraccessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager| Constructor and Description |
|---|
AbstractCreateAndEditPageAction() |
getGlobalPageTemplates, getPageTemplate, getSpacePageTemplates, getTemplateId, isPageTemplatesAvailable, loadTemplates, setPageTemplateManager, setTemplateIdgetBean, getContentForSaving, getConversionContext, getEditorFormattedContent, getInPreview, getRenderContext, getStorageFormat, getWysiwygContent, getxHtmlContent, setBack, setFormatConverter, setInPreview, setPreview, setWikiStyleRenderer, setWysiwygContent, updateXHtmlContentdisplayDatePath, getAttachmentSourceContent, getAvailableSpaces, getBeanKey, getBlogPost, getEditorVersion, getHelper, getIncomingLinks, getMode, getNextPost, getNumberOfAttachmentsAsString, getNumberOfLabelsAsString, getPermittedChildren, getPostingDate, getPostingDay, getPreviousPost, getPreviousVersion, getSpaceManager, getSuggestedLabels, getTinyUrl, hasAttachFilePermissions, hasPermittedChildren, isSpaceAdmin, isSuperUser, isUserWatchingOwnContent, setConfluenceWysiwygConverter, setEditorManager, setLinkManager, setMode, setPageManager, setPostingDate, setViewRenderergetFriendlyDateFormatterHelper, getPage, getPageId, getSpace, getSpaceKey, isLatestVersionRequired, isPageRequired, isPermitted, isViewPermissionRequired, setContentPermissionManager, setPage, setSpaceManageraddActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, 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, withServletRequestSupplieraddActionError, addActionMessage, addFieldError, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrorsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisEditPermissionRequiredpublic static final String LOCKED
public static final String ACTIVITY_UNAVAILABLE
public static final String USER_LIMIT_REACHED
protected String parentPageTitle
protected String parentPageSpaceKey
protected Page parentPage
protected long parentPageId
protected String newSpaceKey
protected String parentPageString
protected DraftManager draftManager
protected DraftService draftService
protected long targetId
protected CaptchaManager captchaManager
protected NotificationManager notificationManager
protected PageService pageService
protected CollaborativeEditingHelper collaborativeEditingHelper
protected DraftsTransitionHelper draftsTransitionHelper
protected HeartbeatManager heartbeatManager
public void setParentPageId(long parentPageId)
public long getParentPageId()
public Page getParentPage()
protected List<String> getPermissionTypes()
getPermissionTypes in class AbstractPageActionprotected void validateDuplicatePageTitle()
public void validate()
AbstractPreviewPageActionvalidate in interface MessageHolderAwarevalidate in interface com.opensymphony.xwork.Validateablevalidate in class AbstractPreviewPageActionprotected MovePageCommand getMovePageCommand()
public void setShowDraftMessage(boolean showDraftMessage)
public abstract String getContentType()
public long getFromPageId()
@Internal public boolean startHeartbeatOnDoDefault()
public String doDefault() throws Exception
ConfluenceActionSupportdoDefault in class ConfluenceActionSupportException - if something goes wrong@Deprecated protected Draft createDraft()
protected boolean hasDraftPermission()
public boolean isNewAbstractPage()
public boolean isCollaborativeContent()
isCollaborativeContent in class AbstractPageAwareActionpublic void setTitle(String title)
public String getParentPageTitle()
public void setParentPageTitle(String parentPageTitle)
public String getParentPageSpaceKey()
public void setParentPageSpaceKey(String parentPageSpaceKey)
public ContentPermission getCurrentEditPermission()
public ContentPermission getCurrentViewPermission()
public boolean hasSetPagePermissionsPermission()
public List getViewInheritedContentPermissionSets()
public void setLabelsString(String labelsString)
public String getLabelsString()
public String getNewSpaceKey()
public void setNewSpaceKey(String newSpaceKey)
public String getParentPageString()
public void setParentPageString(String parentPageString)
public void setDraftManager(DraftManager draftManager)
public void setDraftService(DraftService draftService)
public boolean isShowDraftMessage()
public void setUseDraft(boolean useDraft)
public String getTitle()
getTitle in class AbstractPageAwareAction@Deprecated public Draft getDraft()
getDraftAsCEO()@Deprecated public ContentEntityObject getDraftAsCEO()
getContentDraft()public AbstractPage getContentDraft()
public Draft getExistingDraft()
public long getExistingDraftId()
public long getDraftId()
public String getDraftShareId()
public void setDraftShareId(String draftShareId)
public String getSyncRev()
public String getConfluenceRevision()
public String getSynchronyRevisionSource()
protected AbstractPage getContentObject()
public void setSyncRev(String syncRev)
public long getEntityId()
public void setDraftId(long draftId)
public WebInterfaceContext getWebInterfaceContext()
WebInterfaceTypically, WebWork actions will implement this to provide extra details in the context such as content objects, and so on.
getWebInterfaceContext in interface WebInterfacegetWebInterfaceContext in class AbstractPageActionpublic String getCancelResult()
getCancelResult in class ConfluenceActionSupportprotected void setPermissions(List<ContentPermission> permissions)
public void setPosition(String position)
public void setTargetId(String targetId)
protected String getPosition()
protected long getTargetId()
public CaptchaManager getCaptchaManager()
public void setCaptchaManager(CaptchaManager captchaManager)
public void setNotificationManager(NotificationManager notificationManager)
public NotificationManager getNotificationManager()
public void setPageService(PageService pageService)
public void setSpaceService(SpaceService spaceService)
public boolean isUseDraft()
public boolean isRestricted()
protected List<Label> getLabels()
getLabels in class AbstractPageActionpublic void setCollaborativeEditingHelper(CollaborativeEditingHelper collaborativeEditingHelper)
@Deprecated public void setSharedDraftsDarkFeatureHelper(SharedDraftsDarkFeatureHelper helper)
setCollaborativeEditingHelper(CollaborativeEditingHelper) and
CollaborativeEditingHelperhelper - public CollaborativeEditingHelper getCollaborativeEditingHelper()
public void setDraftsTransitionHelper(DraftsTransitionHelper draftsTransitionHelper)
public void setHeartbeatManager(HeartbeatManager heartbeatManager)
Copyright © 2003–2020 Atlassian. All rights reserved.