com.atlassian.confluence.spaces.actions
Class AbstractSpaceAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.confluence.core.ConfluenceActionSupport
          extended by com.atlassian.confluence.spaces.actions.AbstractSpaceAction
All Implemented Interfaces:
WebInterface, Spaced, MessageHolderAware, 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:
AbstractBlogPostsAction, AbstractCreateSpaceAction, AbstractLabelDisplayingAction, AbstractLookAndFeelAction, AbstractMailAccountAction, AbstractMailAction, AbstractPageTemplateAction, AbstractPaginatedListAction, AbstractSpaceAdminAction, AddSpaceNotificationAction, AddSpaceToFavouritesAction, AlphabeticalListPagesAction, BrowseSpaceAction, ConfigureThemeAction, DirectoryViewListPagesAction, EnableDisableMailAction, ExportSpaceAction, ListAttachmentsAction, ListPagesAction, PurgeTrashItemAction, RemoveLabelFromSpaceAction, RemoveMailAccountAction, RemoveSpaceFromFavouritesAction, RemoveSpaceMailAction, RemoveSpaceNotificationAction, RestoreExistingTrashItemAction, RestoreTrashItemAction, SpaceAvailableAction, SpaceToolsAction, ViewSpaceAction, ViewSpaceContentAction, ViewSpaceSummaryAction

public abstract class AbstractSpaceAction
extends ConfluenceActionSupport
implements Spaced

See Also:
Serialized Form

Field Summary
protected  java.lang.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
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, pluginAccessor, PREVIEW, 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
AbstractSpaceAction()
           
 
Method Summary
 java.lang.String getKey()
           
protected  java.util.List<java.lang.String> getPermissionTypes()
           
 Space getSpace()
           
 java.lang.String getSpaceKey()
          This method is so that we can get the key whether we're in a space action or a page action.
 java.lang.String getSubscribableName()
           
 ThemeManager getThemeManager()
           
protected  boolean hasSpaceIA()
           
 boolean isAdminUser()
          Deprecated. since 3.1 this method does not seem to be called from anywhere.
 boolean isPermitted()
           
 boolean isPersonalSpace()
           
 boolean isSuperUser()
          Deprecated. since 3.5 this method is not called anywhere and should not be used
 boolean isUserWatchingSpace()
           
 boolean isValidSpaceKey()
           
 void setKey(java.lang.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, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getCancelResult, getContext, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDocLink, getEventManager, getFriendlyDateFormatter, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserByName, getUserFullName, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermittedAsString, isPrintableVersion, isSharedMode, isUserStatusPluginEnabled, isUsingHSQL, setApiDateFormatService, setBootstrapManager, setCancel, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionCheck, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setSystemInformationService, 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, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.confluence.validation.MessageHolderAware
validate
 

Field Detail

spaceManager

protected SpaceManager spaceManager

key

protected java.lang.String key

space

protected Space space

wikiStyleRenderer

protected com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer

notificationManager

protected NotificationManager notificationManager

themeManager

protected ThemeManager themeManager
Constructor Detail

AbstractSpaceAction

public AbstractSpaceAction()
Method Detail

getKey

public java.lang.String getKey()

getSpaceKey

public java.lang.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(java.lang.String key)

isValidSpaceKey

public boolean isValidSpaceKey()

setSpace

public void setSpace(Space space)

getSpace

public Space getSpace()
Specified by:
getSpace in interface Spaced

setSpaceManager

public void setSpaceManager(SpaceManager spaceManager)

getPermissionTypes

protected java.util.List<java.lang.String> getPermissionTypes()
Overrides:
getPermissionTypes in class ConfluenceActionSupport

isPermitted

public boolean isPermitted()
Overrides:
isPermitted in class ConfluenceActionSupport

isSuperUser

@Deprecated
public boolean isSuperUser()
Deprecated. since 3.5 this method is not called anywhere and should not be used

See Also:
PermissionManager.hasPermission(User, Permission, Object)

isAdminUser

@Deprecated
public boolean isAdminUser()
Deprecated. since 3.1 this method does not seem to be called from anywhere.


getSubscribableName

public java.lang.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()

hasSpaceIA

protected boolean hasSpaceIA()


Copyright © 2003-2014 Atlassian. All Rights Reserved.