Class AbstractDecoratorAction
java.lang.Object
org.apache.struts2.ActionSupport
com.atlassian.confluence.core.AbstractI18nActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.spaces.actions.AbstractSpaceAction
com.atlassian.confluence.admin.actions.lookandfeel.AbstractLookAndFeelAction
com.atlassian.confluence.admin.actions.lookandfeel.AbstractDecoratorAction
- All Implemented Interfaces:
WebInterface,SpaceAdministrative,Spaced,MessageHolderAware,Serializable,org.apache.struts2.action.Action,org.apache.struts2.interceptor.ValidationAware,org.apache.struts2.locale.LocaleProvider,org.apache.struts2.text.TextProvider,org.apache.struts2.Validateable
- Direct Known Subclasses:
EditDecoratorAction,ViewDefaultDecoratorAction
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringstatic final Stringstatic final StringThe name of a template that should never be overridden by the user, and thus will be able to give us the default template ResourceLoader.Fields inherited from class com.atlassian.confluence.admin.actions.lookandfeel.AbstractLookAndFeelAction
colourSchemeManager, layoutHelperFields inherited from class com.atlassian.confluence.spaces.actions.AbstractSpaceAction
key, notificationManager, space, spaceManager, themeManager, wikiStyleRendererFields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, confluenceAccessManager, contentUiSupport, eventPublisher, formatSettingsManager, globalSettingsManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, localeManager, loginManager, messageHolder, permissionManager, pluginAccessor, PREVIEW, request, response, spacePermissionManager, strutsHelper, systemInformationService, userAccessor, webInterfaceManagerFields inherited from class org.apache.struts2.ActionSupport
containerFields inherited from interface org.apache.struts2.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetTemplateFromResourceLoader(String knownTemplatePath, String templateToRetrieve) Retrieve a template's source from the same resource loader that was used to load another template.protected StringgetTemplateSource(String template, org.apache.velocity.runtime.resource.loader.ResourceLoader resourceLoader, String encoding) Get a template's contents, given the name of the template and a ResourceLoader to load it from.protected Stringprotected voidremoveFromVelocityCache(String decorator) Deprecated.since 5.0 use ConfluenceVelocityResourceCache or rely on CustomLayoutManager to do this automatically for you.voidsetContent(String content) voidsetDecoratorName(String decoratorName) voidsetVelocityManager(org.apache.struts2.views.velocity.VelocityManager velocityManager) Methods inherited from class com.atlassian.confluence.admin.actions.lookandfeel.AbstractLookAndFeelAction
getColourSchemeManager, getLayoutHelper, isCustomeThemeSet, isPermitted, isThemeSet, setColourSchemeManager, setLayoutHelperMethods inherited from class com.atlassian.confluence.spaces.actions.AbstractSpaceAction
getActionSpaceKey, getKey, getPermissionTypes, getSpace, getSpaceKey, getSpaceManager, getSubscribableName, getThemeManager, hasSpaceIA, isPersonalSpace, isUserWatchingSpace, isValidSpaceKey, setKey, setNotificationManager, setSpace, setSpaceManager, setThemeManager, setWikiStyleRendererMethods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, getActionErrors, getActionMessages, getActionName, getActiveRequest, getActiveResponse, getAuthenticatedUser, getBootstrapStatusProvider, getCancelResult, getDateFormatter, getDefaultTimeZone, getFieldErrors, getGlobalSettings, getHelper, getI18n, getLocale, getMessageHolder, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getTimeZone, getUserByName, getUserInterfaceState, getWebInterfaceContext, isAnonymousUser, isEmailVisible, setAccessModeService, setBootstrapStatusProvider, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventPublisher, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setStrutsHelper, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManagerMethods inherited from class com.atlassian.confluence.core.AbstractI18nActionSupport
getText, getText, getText, getText, getText, getText, getText, getText, getTextStrictMethods inherited from class org.apache.struts2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getContainer, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, toLocale, validateMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.validation.MessageHolderAware
validate
-
Field Details
-
KLUDGE_WWRESOURCE_TEMPLATE
The name of a template that should never be overridden by the user, and thus will be able to give us the default template ResourceLoader. I figure the chance of anyone manually overriding the setup.vmd template is pretty close to nil.- See Also:
-
KLUDGE_CLASSPATH_TEMPLATE
- See Also:
-
decoratorName
-
-
Constructor Details
-
AbstractDecoratorAction
public AbstractDecoratorAction()
-
-
Method Details
-
readDefaultTemplate
- Returns:
- null if the template couldn't be loaded!
-
getTemplateFromResourceLoader
Retrieve a template's source from the same resource loader that was used to load another template.- Parameters:
knownTemplatePath- path to a template for which we know the resource loadertemplateToRetrieve- the template we want to get
-
getTemplateSource
protected String getTemplateSource(String template, org.apache.velocity.runtime.resource.loader.ResourceLoader resourceLoader, String encoding) Get a template's contents, given the name of the template and a ResourceLoader to load it from.- Returns:
- String the template source
-
getContent
-
getDecoratorName
-
setContent
-
setDecoratorName
-
removeFromVelocityCache
Deprecated.since 5.0 use ConfluenceVelocityResourceCache or rely on CustomLayoutManager to do this automatically for you. -
setVelocityManager
public void setVelocityManager(org.apache.struts2.views.velocity.VelocityManager velocityManager)
-