com.atlassian.confluence.pages.actions
Class AbstractCreateAndEditPageAction
java.lang.Object
com.opensymphony.xwork.ActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.pages.actions.AbstractPageAction
com.atlassian.confluence.pages.actions.AbstractPreviewPageAction
com.atlassian.confluence.pages.actions.AbstractTemplatePageAction
com.atlassian.confluence.pages.actions.AbstractCreateAndEditPageAction
- All Implemented Interfaces:
- com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, PageAware, Serializable, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware
- Direct Known Subclasses:
- AbstractCreatePageAction, AbstractEditPageAction
- public abstract class AbstractCreateAndEditPageAction
- extends AbstractTemplatePageAction
- See Also:
- Serialized Form
Fields inherited from class com.atlassian.confluence.pages.actions.AbstractPageAction |
captchaManager, contentPermissionManager, expertView, incomingLinks, isXHtml, linkManager, MARKUP, pageManager, postingDay, PREVIEW, RICHTEXT, spaceManager, wysiwygConverter |
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, log, permissionManager, permitted, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager |
Fields inherited from class com.opensymphony.xwork.ActionSupport |
LOG |
Fields inherited from interface com.opensymphony.xwork.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Methods inherited from class com.atlassian.confluence.pages.actions.AbstractPreviewPageAction |
getContent, getInPreview, getPageOrDummyPage, getWysiwygContent, getxHtmlContent, setBack, setContent, setInPreview, setPreview, setWikiStyleRenderer, setWysiwygcontent, updateXHtmlContent |
Methods inherited from class com.atlassian.confluence.pages.actions.AbstractPageAction |
extractPageTitle, extractSpaceKey, generateAncestryBreadcrumbs, getAvailableSpaces, getBeanKey, getBlogPost, getCaptchaId, getCaptchaManager, getEditor, getExpertView, getHelper, getIncomingLinks, getMARKUP, getMode, getNextPost, getPage, getPageId, getPermittedChildren, getPostingDate, getPostingDay, getPostingDayOfMonth, getPostingMonth, getPostingMonthNumeric, getPostingYear, getPREVIEW, getPreviousPost, getPreviousVersion, getRICHTEXT, getShowMarkup, getSpace, getSpaceKey, getSpaceManager, getSubscribableName, getSuggestedLabels, getSupportWysiwyg, getTinyUrl, getUseWysiwyg, getXhtml, hasAttachFilePermissions, hasInvalidTitleCharacters, hasPermittedChildren, hasSetPagePermissionsPermission, hasViewPagePermission, isLatestVersionRequired, isPageRequired, isPermitted, isSpaceAdmin, isViewPermissionRequired, setBreadcrumbsManager, setCaptchaId, setCaptchaManager, setConfluenceWysiwygConverter, setContentPermissionManager, setEditorManager, setLinkManager, setMode, setPage, setPageManager, setSpaceManager, setXhtml |
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
addActionError, addPermissionTypeTo, addToHistory, getActionName, getBootstrapManager, getDateFormatter, getDefaultResourceBundle, getEditorLanguage, getEventManager, getGlobalHelper, getGlobalSettings, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getNiceContentType, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRandom, getRemoteUser, getSession, getSpaceHelper, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserFullName, getUserInterfaceState, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermittedAsString, isPrintableVersion, setBootstrapManager, setCancel, setEventManager, setFormatSettingsManager, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setPermissionCheck, setPermissionManager, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setUserAccessor, setWebInterfaceManager |
Methods inherited from class com.opensymphony.xwork.ActionSupport |
addActionError, addActionMessage, addFieldError, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parentPageTitle
protected String parentPageTitle
parentPageSpaceKey
protected String parentPageSpaceKey
parentPageId
protected long parentPageId
viewPermissionsGroups
protected String viewPermissionsGroups
viewPermissionsUsers
protected String viewPermissionsUsers
editPermissionsGroups
protected String editPermissionsGroups
editPermissionsUsers
protected String editPermissionsUsers
newSpaceKey
protected String newSpaceKey
parentPageString
protected String parentPageString
draftManager
protected DraftManager draftManager
captchaResponse
protected String captchaResponse
AbstractCreateAndEditPageAction
public AbstractCreateAndEditPageAction()
isUseDraft
public boolean isUseDraft()
setParentPageId
public void setParentPageId(long parentPageId)
getParentPageId
public long getParentPageId()
getParentPage
public Page getParentPage()
getPermissionTypes
protected List getPermissionTypes()
- Overrides:
getPermissionTypes
in class AbstractPageAction
validate
public void validate()
setShowDraftMessage
public void setShowDraftMessage(boolean showDraftMessage)
getContentType
protected abstract String getContentType()
doDefault
public String doDefault()
throws Exception
- Description copied from class:
ConfluenceActionSupport
- Default webwork action execution method.
- Overrides:
doDefault
in class ConfluenceActionSupport
- Returns:
- the action result
- Throws:
Exception
- if something goes wrong
setTitle
public void setTitle(String title)
getParentPageTitle
public String getParentPageTitle()
setParentPageTitle
public void setParentPageTitle(String parentPageTitle)
getParentPageSpaceKey
public String getParentPageSpaceKey()
- If the parentPageSpaceKey is set, this function will return the parentPageSpaceKey value.
Otherwise it will return the spaceKey of the current Page.
setParentPageSpaceKey
public void setParentPageSpaceKey(String parentPageSpaceKey)
getCurrentEditPermission
public ContentPermission getCurrentEditPermission()
getCurrentViewPermission
public ContentPermission getCurrentViewPermission()
applyViewPermissions
protected void applyViewPermissions()
applyEditPermissions
protected void applyEditPermissions()
getViewInheritedContentPermissionSets
public List getViewInheritedContentPermissionSets()
setLabelsString
public void setLabelsString(String labelsString)
getLabelsString
public String getLabelsString()
getNewSpaceKey
public String getNewSpaceKey()
setNewSpaceKey
public void setNewSpaceKey(String newSpaceKey)
getParentPageString
public String getParentPageString()
setParentPageString
public void setParentPageString(String parentPageString)
setDraftManager
public void setDraftManager(DraftManager draftManager)
isShowDraftMessage
public boolean isShowDraftMessage()
setDiscardDraft
public void setDiscardDraft(boolean discardDraft)
setUseDraft
public void setUseDraft(boolean useDraft)
getTitle
public String getTitle()
- Overrides:
getTitle
in class AbstractPageAction
getDraft
public Draft getDraft()
getCancelResult
public String getCancelResult()
- Overrides:
getCancelResult
in class ConfluenceActionSupport
getCaptchaResponse
public String getCaptchaResponse()
setCaptchaResponse
public void setCaptchaResponse(String captchaResponse)
getLocationShowing
public Boolean getLocationShowing()
setLocationShowing
public void setLocationShowing(Boolean locationShowing)
getRestrictionsShowing
public Boolean getRestrictionsShowing()
setRestrictionsShowing
public void setRestrictionsShowing(Boolean restrictionsShowing)
getLabelsShowing
public Boolean getLabelsShowing()
setLabelsShowing
public void setLabelsShowing(Boolean labelsShowing)
getViewPermissionsGroups
public String getViewPermissionsGroups()
setViewPermissionsGroups
public void setViewPermissionsGroups(String viewPermissionsGroups)
getViewPermissionsUsers
public String getViewPermissionsUsers()
setViewPermissionsUsers
public void setViewPermissionsUsers(String viewPermissionsUsers)
getEditPermissionsGroups
public String getEditPermissionsGroups()
setEditPermissionsGroups
public void setEditPermissionsGroups(String editPermissionsGroups)
getEditPermissionsUsers
public String getEditPermissionsUsers()
setEditPermissionsUsers
public void setEditPermissionsUsers(String editPermissionsUsers)