public abstract class AbstractPageTemplateAction extends AbstractSpaceAction implements BreadcrumbAware
Modifier and Type | Field and Description |
---|---|
protected BreadcrumbGenerator |
breadcrumbGenerator |
protected long |
entityId |
protected String |
labelsString |
protected PageTemplate |
originalPageTemplate |
protected PageTemplate |
pageTemplate |
protected PageTemplateManager |
pageTemplateManager |
key, notificationManager, space, spaceManager, themeManager, wikiStyleRenderer
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
Constructor and Description |
---|
AbstractPageTemplateAction() |
Modifier and Type | Method and Description |
---|---|
Breadcrumb |
getBreadcrumb()
Returns the breadcrumb to be shown when the action is accessed.
|
long |
getDraftId() |
long |
getEntityId() |
List<Label> |
getLabels() |
String |
getLabelsString() |
PageTemplate |
getPageTemplate() |
PageTemplate |
getPageTemplateByName(String name) |
WebInterfaceContext |
getWebInterfaceContext()
Returns a context which can be passed to web items when rendering them.
|
protected String |
globalTemplateSuffix() |
boolean |
isPermitted()
We should really be splitting up each of the template actions (create, edit, list) and getting them to implement
SpaceAdministrative or Administrative to enforce space or global permissions.
|
void |
setBreadcrumbGenerator(BreadcrumbGenerator breadcrumbGenerator) |
void |
setDraftId(long draftId) |
void |
setEntityId(long entityId) |
protected void |
setLabels(List<Label> labels) |
void |
setLabelsString(String labelsString) |
void |
setPageTemplateManager(PageTemplateManager pageTemplateManager) |
void |
validate()
Ensure that the size of the labels associated with the template are less than the column
size for storing them (255).
|
getKey, getPermissionTypes, getSpace, getSpaceKey, getSubscribableName, getThemeManager, hasSpaceIA, isAdminUser, isPersonalSpace, isSuperUser, isUserWatchingSpace, isValidSpaceKey, setKey, setNotificationManager, setSpace, setSpaceManager, setThemeManager, setWikiStyleRenderer
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, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserByName, getUserFullName, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, 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, setWebInterfaceManager
addActionError, addActionMessage, addFieldError, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
protected PageTemplateManager pageTemplateManager
protected PageTemplate pageTemplate
protected long entityId
protected PageTemplate originalPageTemplate
protected String labelsString
protected BreadcrumbGenerator breadcrumbGenerator
public void validate()
validate
in interface MessageHolderAware
validate
in interface com.opensymphony.xwork.Validateable
validate
in class com.opensymphony.xwork.ActionSupport
public void setBreadcrumbGenerator(BreadcrumbGenerator breadcrumbGenerator)
public void setPageTemplateManager(PageTemplateManager pageTemplateManager)
public long getEntityId()
public void setEntityId(long entityId)
public long getDraftId()
public void setDraftId(long draftId)
public PageTemplate getPageTemplate()
public PageTemplate getPageTemplateByName(String name)
public String getLabelsString()
public void setLabelsString(String labelsString)
public boolean isPermitted()
We will determine the permission type required based on the type of template being served or modified If the template id does not exist (ie when we are browsing templates, use the space key to determine permissions
isPermitted
in class AbstractSpaceAction
public WebInterfaceContext getWebInterfaceContext()
WebInterface
Typically, WebWork actions will implement this to provide extra details in the context such as content objects, and so on.
getWebInterfaceContext
in interface WebInterface
getWebInterfaceContext
in class ConfluenceActionSupport
protected String globalTemplateSuffix()
public Breadcrumb getBreadcrumb()
BreadcrumbAware
getBreadcrumb
in interface BreadcrumbAware
Copyright © 2003–2017 Atlassian. All rights reserved.