Class AbstractSpaceAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- com.atlassian.confluence.core.ConfluenceActionSupport
-
- com.atlassian.confluence.spaces.actions.AbstractSpaceAction
-
- All Implemented Interfaces:
WebInterface
,Spaced
,MessageHolderAware
,com.opensymphony.xwork2.Action
,com.opensymphony.xwork2.interceptor.ValidationAware
,com.opensymphony.xwork2.LocaleProvider
,com.opensymphony.xwork2.TextProvider
,com.opensymphony.xwork2.Validateable
,Serializable
- Direct Known Subclasses:
AbstractBlogPostsAction
,AbstractCreateSpaceAction
,AbstractLabelDisplayingAction
,AbstractLookAndFeelAction
,AbstractPageTemplateAction
,AbstractPaginatedListAction
,AbstractSpaceAdminAction
,AddSpaceNotificationAction
,AddSpaceToFavouritesAction
,AlphabeticalListPagesAction
,BrowseSpaceAction
,CustomPageContentAction
,DirectoryViewListPagesAction
,ExportSpaceAction
,ListAttachmentsAction
,ListPagesAction
,PurgeTrashItemAction
,RemoveLabelFromSpaceAction
,RemoveSpaceFromFavouritesAction
,RemoveSpaceNotificationAction
,RestoreExistingTrashItemAction
,RestoreTrashItemAction
,SpaceActionForDecorating
,SpaceAvailableAction
,SpaceToolsAction
,ViewSpaceAction
,ViewSpaceContentAction
,ViewSpaceSummaryAction
public abstract class AbstractSpaceAction extends ConfluenceActionSupport implements Spaced
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected com.atlassian.event.api.EventPublisher
eventPublisher
protected String
key
protected NotificationManager
notificationManager
protected Space
space
protected SpaceManager
spaceManager
protected ThemeManager
themeManager
protected com.atlassian.renderer.WikiStyleRenderer
wikiStyleRenderer
-
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, systemInformationService, userAccessor, webInterfaceManager
-
-
Constructor Summary
Constructors Constructor Description AbstractSpaceAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getActionSpaceKey()
String
getKey()
protected List<String>
getPermissionTypes()
Space
getSpace()
Deprecated, for removal: This API element is subject to removal in a future version.since 8.8.0.String
getSpaceKey()
This method is so that we can get the key whether we're in a space action or a page action.SpaceManager
getSpaceManager()
String
getSubscribableName()
ThemeManager
getThemeManager()
protected boolean
hasSpaceIA()
boolean
isPermitted()
boolean
isPersonalSpace()
boolean
isUserWatchingSpace()
boolean
isValidSpaceKey()
void
setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
void
setKey(String key)
void
setNotificationManager(NotificationManager notificationManager)
void
setSpace(Space space)
void
setSpaceManager(SpaceManager spaceManager)
void
setThemeManager(ThemeManager themeManager)
void
setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)
-
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getBootstrapStatusProvider, getCancel, getCancelResult, getConfluenceAccessManager, getContentUiSupport, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocBean, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageJs, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUserAccessor, getUserByName, getUserFullName, getUserHasBrowseUsersPermission, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setAccessModeService, setApiDateFormatService, setApiPersonService, setBootstrapManager, setBootstrapStatusProvider, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, useSkipAccessCheck, withServletRequestSupplier
-
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.opensymphony.xwork2.LocaleProvider
isValidLocale, isValidLocaleString
-
Methods inherited from interface com.atlassian.confluence.validation.MessageHolderAware
validate
-
-
-
-
Field Detail
-
spaceManager
protected SpaceManager spaceManager
-
key
protected String key
-
space
protected Space space
-
wikiStyleRenderer
protected com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer
-
notificationManager
protected NotificationManager notificationManager
-
themeManager
protected ThemeManager themeManager
-
eventPublisher
protected com.atlassian.event.api.EventPublisher eventPublisher
-
-
Method Detail
-
getKey
public String getKey()
-
getSpaceKey
public String getSpaceKey()
This method is so that we can get the key whether we're in a space action or a page action.
-
setKey
public void setKey(String key)
-
isValidSpaceKey
public boolean isValidSpaceKey()
-
setSpace
public void setSpace(Space space)
-
getSpace
@Deprecated(since="8.8.0", forRemoval=true) public Space getSpace()
Deprecated, for removal: This API element is subject to removal in a future version.since 8.8.0. Hibernate objects are not supported in Struts anymore. Use action's direct method calls.
-
setSpaceManager
public void setSpaceManager(SpaceManager spaceManager)
-
getPermissionTypes
protected List<String> getPermissionTypes()
- Overrides:
getPermissionTypes
in classConfluenceActionSupport
-
isPermitted
public boolean isPermitted()
- Overrides:
isPermitted
in classConfluenceActionSupport
-
getSubscribableName
public String getSubscribableName()
-
setWikiStyleRenderer
public void setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)
-
isUserWatchingSpace
public boolean isUserWatchingSpace()
-
isPersonalSpace
public boolean isPersonalSpace()
-
setNotificationManager
public void setNotificationManager(NotificationManager notificationManager)
-
setThemeManager
public void setThemeManager(ThemeManager themeManager)
-
getThemeManager
public ThemeManager getThemeManager()
-
getSpaceManager
public SpaceManager getSpaceManager()
-
setEventPublisher
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
-
hasSpaceIA
protected boolean hasSpaceIA()
-
getActionSpaceKey
public String getActionSpaceKey()
-
-