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, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, Serializable
Direct Known Subclasses:
AbstractBlogPostsAction, AbstractCreateSpaceAction, AbstractLookAndFeelAction, AbstractMailAccountAction, AbstractMailAction, AbstractPageTemplateAction, AbstractPaginatedListAction, AbstractSpaceAdminAction, AddSpaceNotificationAction, AddSpaceToFavouritesAction, AlphabeticalListPagesAction, BrowseSpaceAction, DirectoryViewListPagesAction, EnableDisableMailAction, ExportSpaceAction, ListAttachmentsAction, ListPagesAction, PurgeTrashItemAction, RemoveLabelFromSpaceAction, RemoveMailAccountAction, RemoveSpaceFromFavouritesAction, RemoveSpaceMailAction, RemoveSpaceNotificationAction, RestoreExistingTrashItemAction, RestoreTrashItemAction, SpaceAvailableAction, ViewSpaceAction, ViewSpaceContentAction, ViewSpaceSummaryAction

public abstract class AbstractSpaceAction
extends ConfluenceActionSupport
implements Spaced

See Also:
Serialized Form

Field Summary
protected  String key
           
protected  NotificationManager notificationManager
           
protected  Space originalSpace
           
protected  Space space
           
protected  SpaceManager spaceManager
           
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, 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
 String getKey()
           
protected  List<String> getPermissionTypes()
           
 Space getSpace()
           
 String getSpaceKey()
          This method is so that we can get the key whether we're in a space action or a page action.
 String getSubscribableName()
           
 boolean isAdminUser()
          Deprecated. since 3.1 this method does not seem to be called from anywhere.
 boolean isPermitted()
           
 boolean isPersonalSpace()
           
 boolean isSuperUser()
           
 boolean isUserWatchingSpace()
           
 boolean isValidSpaceKey()
           
 void setKey(String key)
           
 void setNotificationManager(NotificationManager notificationManager)
           
 void setSpace(Space space)
          Used only by unit tests
 void setSpaceManager(SpaceManager spaceManager)
           
 void setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)
           
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getActionName, getActionName, getBootstrapManager, getCancelResult, getContext, getDateFormatter, getDefaultResourceBundle, getDocLink, getEventManager, getFriendlyDateFormatter, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getNiceContentType, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRandom, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserFullName, getUserInterfaceState, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermittedAsString, isPrintableVersion, isSharedMode, isUserStatusPluginEnabled, isUsingHSQL, setBootstrapManager, setCancel, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, 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
 

Field Detail

spaceManager

protected SpaceManager spaceManager

key

protected String key

space

protected Space space

originalSpace

protected Space originalSpace

wikiStyleRenderer

protected com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer

notificationManager

protected NotificationManager notificationManager
Constructor Detail

AbstractSpaceAction

public AbstractSpaceAction()
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)
Used only by unit tests


getSpace

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

setSpaceManager

public void setSpaceManager(SpaceManager spaceManager)

getPermissionTypes

protected List<String> getPermissionTypes()
Overrides:
getPermissionTypes in class ConfluenceActionSupport

isPermitted

public boolean isPermitted()
Overrides:
isPermitted in class ConfluenceActionSupport

isSuperUser

public boolean isSuperUser()

isAdminUser

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


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)


Copyright © 2003-2011 Atlassian. All Rights Reserved.