|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork.ActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.pages.actions.AbstractPageAction
public abstract class AbstractPageAction
| Field Summary | |
|---|---|
protected CaptchaManager |
captchaManager
|
protected ContentPermissionManager |
contentPermissionManager
|
protected Boolean |
expertView
|
protected List |
incomingLinks
|
protected boolean |
isXHtml
|
protected LinkManager |
linkManager
|
static String |
MARKUP
|
protected PageManager |
pageManager
|
protected String |
postingDay
|
static String |
PREVIEW
|
static String |
RICHTEXT
|
protected SpaceManager |
spaceManager
|
protected ConfluenceWysiwygConverter |
wysiwygConverter
|
| Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
|---|
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, localeManager, 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 |
| Constructor Summary | |
|---|---|
AbstractPageAction()
|
|
| Method Summary | |
|---|---|
protected String |
extractPageTitle(String pageString)
To extract the PageName from a String like Spacekey:Pagename, the extractPageTitle Method can be used. |
protected String |
extractSpaceKey(String pageString)
This method extracts the SpaceKey from a String which should look like Spacekey:Pagename This method is used as a helper method to parse the String given by the PagePicker which is used by the parentPage form field as well as the moveAttachment. |
String |
generateAncestryBreadcrumbs()
|
List |
getAvailableSpaces()
|
protected Object |
getBeanKey()
|
BlogPost |
getBlogPost()
|
String |
getCaptchaId()
|
CaptchaManager |
getCaptchaManager()
|
Boolean |
getExpertView()
|
ThemeHelper |
getHelper()
|
List |
getIncomingLinks()
returns list of "unique" incoming links to this page |
static String |
getMARKUP()
|
String |
getMode()
|
BlogPost |
getNextPost()
|
AbstractPage |
getPage()
|
long |
getPageId()
|
protected List |
getPermissionTypes()
|
List |
getPermittedChildren()
|
Date |
getPostingDate()
|
String |
getPostingDay()
|
String |
getPostingDayOfMonth()
|
String |
getPostingMonth()
|
String |
getPostingMonthNumeric()
|
String |
getPostingYear()
|
static String |
getPREVIEW()
|
BlogPost |
getPreviousPost()
|
static String |
getRICHTEXT()
|
boolean |
getShowMarkup()
|
Space |
getSpace()
|
String |
getSpaceKey()
|
SpaceManager |
getSpaceManager()
|
String |
getSubscribableName()
|
List |
getSuggestedLabels()
|
boolean |
getSupportWysiwyg()
|
String |
getTinyUrl()
|
String |
getTitle()
|
boolean |
getUseWysiwyg()
|
boolean |
getXhtml()
|
boolean |
hasAttachFilePermissions()
|
protected boolean |
hasInvalidTitleCharacters(String str)
|
boolean |
hasPermittedChildren()
|
boolean |
hasSetPagePermissionsPermission()
|
protected boolean |
hasViewPagePermission()
|
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()
|
protected boolean |
isSpaceAdmin()
|
boolean |
isViewPermissionRequired()
If the action requires that the user needs viewPagePermissions, then it should return true to this method. |
void |
setBreadcrumbsManager(BreadcrumbsManager breadcrumbsManager)
|
void |
setCaptchaId(String captchaId)
|
void |
setCaptchaManager(CaptchaManager captchaManager)
|
void |
setConfluenceWysiwygConverter(ConfluenceWysiwygConverter wysiwygConverter)
|
void |
setContentPermissionManager(ContentPermissionManager contentPermissionManager)
|
void |
setLinkManager(LinkManager linkManager)
|
void |
setMode(String mode)
|
void |
setPage(AbstractPage page)
IOC method for setting the page on the action. |
void |
setPageManager(PageManager pageManager)
|
void |
setSpaceManager(SpaceManager spaceManager)
|
void |
setXhtml(boolean XHtml)
|
| 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, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PageManager pageManager
protected SpaceManager spaceManager
protected CaptchaManager captchaManager
protected String postingDay
protected LinkManager linkManager
protected ContentPermissionManager contentPermissionManager
protected List incomingLinks
protected Boolean expertView
protected boolean isXHtml
protected ConfluenceWysiwygConverter wysiwygConverter
public static String RICHTEXT
public static String MARKUP
public static String PREVIEW
| Constructor Detail |
|---|
public AbstractPageAction()
| Method Detail |
|---|
public String getSpaceKey()
public String getTitle()
public String getPostingDay()
public String getPostingYear()
public String getPostingMonth()
public String getPostingMonthNumeric()
public String getPostingDayOfMonth()
public AbstractPage getPage()
getPage in interface PageAwarepublic BlogPost getBlogPost()
public Space getSpace()
public void setPageManager(PageManager pageManager)
public void setSpaceManager(SpaceManager spaceManager)
public void setLinkManager(LinkManager linkManager)
public List getIncomingLinks()
public String getSubscribableName()
protected List getPermissionTypes()
getPermissionTypes in class ConfluenceActionSupportpublic boolean isPermitted()
isPermitted in class ConfluenceActionSupportprotected boolean hasViewPagePermission()
protected boolean hasInvalidTitleCharacters(String str)
public Date getPostingDate()
public BlogPost getNextPost()
public BlogPost getPreviousPost()
public String getTinyUrl()
public void setPage(AbstractPage page)
PageAware
setPage in interface PageAwarepage - the page that the action will be working on.public boolean isPageRequired()
PageAware
isPageRequired in interface PageAwarepublic boolean isLatestVersionRequired()
PageAware
isLatestVersionRequired in interface PageAwarepublic boolean isViewPermissionRequired()
PageAware
isViewPermissionRequired in interface PageAwarepublic long getPageId()
protected boolean isSpaceAdmin()
public boolean hasSetPagePermissionsPermission()
public Boolean getExpertView()
public List getAvailableSpaces()
protected Object getBeanKey()
protected String extractSpaceKey(String pageString)
pageString -
protected String extractPageTitle(String pageString)
pageString -
public String generateAncestryBreadcrumbs()
public void setContentPermissionManager(ContentPermissionManager contentPermissionManager)
public ThemeHelper getHelper()
getHelper in class ConfluenceActionSupportpublic List getPermittedChildren()
public boolean hasPermittedChildren()
public boolean hasAttachFilePermissions()
public void setXhtml(boolean XHtml)
public boolean getXhtml()
public void setConfluenceWysiwygConverter(ConfluenceWysiwygConverter wysiwygConverter)
public boolean getUseWysiwyg()
public boolean getSupportWysiwyg()
public boolean getShowMarkup()
public String getMode()
public List getSuggestedLabels()
public void setMode(String mode)
public void setBreadcrumbsManager(BreadcrumbsManager breadcrumbsManager)
public static String getRICHTEXT()
public static String getMARKUP()
public static String getPREVIEW()
public SpaceManager getSpaceManager()
public CaptchaManager getCaptchaManager()
public void setCaptchaManager(CaptchaManager captchaManager)
public String getCaptchaId()
public void setCaptchaId(String captchaId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||