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:
- PageAware, TinyUrlAware, WebInterface, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, java.io.Serializable
- 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, 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 |
displayDatePath, extractPageTitle, extractSpaceKey, generateAncestryBreadcrumbs, getAvailableSpaces, getBeanKey, getBlogPost, getCaptchaId, getCaptchaManager, getEditor, getEditorVersion, 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, getWebInterfaceContext, getXhtml, hasAttachFilePermissions, hasInvalidTitleCharacters, hasPermittedChildren, hasSetPagePermissionsPermission, hasViewPagePermission, isLatestVersionRequired, isPageRequired, isPermitted, isSpaceAdmin, isViewPermissionRequired, setBreadcrumbsManager, setCaptchaId, setCaptchaManager, setConfluenceWysiwygConverter, setContentPermissionManager, setEditorManager, setLinkManager, setMode, setPage, setPageManager, setPostingDate, setSpaceManager, setXhtml |
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
addActionError, addFieldError, addPermissionTypeTo, addToHistory, formatFriendlyDate, getActionName, getBootstrapManager, getDateFormatter, getDefaultResourceBundle, getEventManager, getFriendlyDateFormatter, 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, isUsingHSQL, setBootstrapManager, setCancel, setEventManager, setFormatSettingsManager, setI18NBean, 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 java.lang.String parentPageTitle
parentPageSpaceKey
protected java.lang.String parentPageSpaceKey
parentPageId
protected long parentPageId
viewPermissionsGroups
protected java.lang.String viewPermissionsGroups
viewPermissionsUsers
protected java.lang.String viewPermissionsUsers
editPermissionsGroups
protected java.lang.String editPermissionsGroups
editPermissionsUsers
protected java.lang.String editPermissionsUsers
newSpaceKey
protected java.lang.String newSpaceKey
parentPageString
protected java.lang.String parentPageString
draftManager
protected DraftManager draftManager
captchaResponse
protected java.lang.String captchaResponse
targetId
protected long targetId
AbstractCreateAndEditPageAction
public AbstractCreateAndEditPageAction()
isUseDraft
public boolean isUseDraft()
setParentPageId
public void setParentPageId(long parentPageId)
getParentPageId
public long getParentPageId()
getParentPage
public Page getParentPage()
getPermissionTypes
protected java.util.List getPermissionTypes()
- Overrides:
getPermissionTypes
in class AbstractPageAction
validate
public void validate()
- Specified by:
validate
in interface com.opensymphony.xwork.Validateable
- Overrides:
validate
in class com.opensymphony.xwork.ActionSupport
setShowDraftMessage
public void setShowDraftMessage(boolean showDraftMessage)
getContentType
protected abstract java.lang.String getContentType()
doDefault
public java.lang.String doDefault()
throws java.lang.Exception
- Description copied from class:
ConfluenceActionSupport
- Default webwork action execution method.
- Overrides:
doDefault
in class ConfluenceActionSupport
- Returns:
- the action result
- Throws:
java.lang.Exception
- if something goes wrong
setTitle
public void setTitle(java.lang.String title)
getParentPageTitle
public java.lang.String getParentPageTitle()
setParentPageTitle
public void setParentPageTitle(java.lang.String parentPageTitle)
getParentPageSpaceKey
public java.lang.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(java.lang.String parentPageSpaceKey)
getCurrentEditPermission
public ContentPermission getCurrentEditPermission()
getCurrentViewPermission
public ContentPermission getCurrentViewPermission()
createViewPermissions
protected java.util.List createViewPermissions()
createEditPermissions
protected java.util.List createEditPermissions()
getViewInheritedContentPermissionSets
public java.util.List getViewInheritedContentPermissionSets()
setLabelsString
public void setLabelsString(java.lang.String labelsString)
getLabelsString
public java.lang.String getLabelsString()
getNewSpaceKey
public java.lang.String getNewSpaceKey()
setNewSpaceKey
public void setNewSpaceKey(java.lang.String newSpaceKey)
getParentPageString
public java.lang.String getParentPageString()
setParentPageString
public void setParentPageString(java.lang.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 java.lang.String getTitle()
- Overrides:
getTitle
in class AbstractPageAction
getDraft
public Draft getDraft()
getCancelResult
public java.lang.String getCancelResult()
- Overrides:
getCancelResult
in class ConfluenceActionSupport
getCaptchaResponse
public java.lang.String getCaptchaResponse()
setCaptchaResponse
public void setCaptchaResponse(java.lang.String captchaResponse)
getLocationShowing
public java.lang.Boolean getLocationShowing()
setLocationShowing
public void setLocationShowing(java.lang.Boolean locationShowing)
getRestrictionsShowing
public java.lang.Boolean getRestrictionsShowing()
setRestrictionsShowing
public void setRestrictionsShowing(java.lang.Boolean restrictionsShowing)
getLabelsShowing
public java.lang.Boolean getLabelsShowing()
setLabelsShowing
public void setLabelsShowing(java.lang.Boolean labelsShowing)
getViewPermissionsGroups
public java.lang.String getViewPermissionsGroups()
setViewPermissionsGroups
public void setViewPermissionsGroups(java.lang.String viewPermissionsGroups)
getViewPermissionsUsers
public java.lang.String getViewPermissionsUsers()
setViewPermissionsUsers
public void setViewPermissionsUsers(java.lang.String viewPermissionsUsers)
getEditPermissionsGroups
public java.lang.String getEditPermissionsGroups()
setEditPermissionsGroups
public void setEditPermissionsGroups(java.lang.String editPermissionsGroups)
getEditPermissionsUsers
public java.lang.String getEditPermissionsUsers()
setEditPermissionsUsers
public void setEditPermissionsUsers(java.lang.String editPermissionsUsers)
setPermissions
protected void setPermissions(java.util.List permissions)
setPosition
public void setPosition(java.lang.String position)
setTargetId
public void setTargetId(java.lang.String targetId)
getPosition
protected java.lang.String getPosition()
getTargetId
protected long getTargetId()
Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.