com.atlassian.confluence.spaces.actions
Class AbstractSpaceAction

java.lang.Object
  extended bycom.opensymphony.xwork.ActionSupport
      extended bycom.atlassian.confluence.core.ConfluenceActionSupport
          extended bycom.atlassian.confluence.spaces.actions.AbstractSpaceAction
All Implemented Interfaces:
com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, Serializable, Spaced, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware
Direct Known Subclasses:
AbstractBlogPostsAction, AbstractCreateSpaceAction, AbstractLookAndFeelAction, AbstractMailAccountAction, AbstractMailAction, AbstractPageTemplateAction, AbstractPaginatedListAction, AbstractSpaceLabelAction, AbstractSpacePermissionsAction, AddSpaceNotificationAction, AddSpaceToFavouritesAction, BrowseSpaceAction, DirectoryViewListPagesAction, EditSpaceAction, EnableDisableMailAction, ExportSpaceAction, ImportMboxAction, ImportPagesAction, ListAttachmentsAction, ListPagesAction, PurgeTrashItemAction, RemoveLabelFromSpaceAction, RemoveMailAccountAction, RemoveSpaceAction, RemoveSpaceFromFavouritesAction, RemoveSpaceMailAction, RemoveSpaceNotificationAction, RestoreExistingTrashItemAction, RestoreTrashItemAction, SpaceAdminAction, ViewMailAccountsAction, ViewSpaceAction, ViewSpaceContentAction, ViewTrashAction

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  WikiStyleRenderer wikiStyleRenderer
           
 
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, log, permissionManager, permitted, 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 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 getSpaceXHtmlDescription()
           
 String getSubscribableName()
           
 boolean isAdminUser()
           
 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(WikiStyleRenderer wikiStyleRenderer)
           
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addPermissionTypeTo, addToHistory, doDefault, getActionName, getBootstrapManager, getCancelResult, getDateFormatter, getDefaultResourceBundle, getEditorLanguage, getEventManager, getGlobalHelper, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getNiceContentType, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRandom, getRemoteUser, getSession, getSpaceHelper, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserFullName, getUserInterfaceState, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermittedAsString, isPrintableVersion, setBootstrapManager, setCancel, setEventManager, setFormatSettingsManager, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setPermissionCheck, setPermissionManager, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, 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 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 getPermissionTypes()
Overrides:
getPermissionTypes in class ConfluenceActionSupport

isPermitted

public boolean isPermitted()
Overrides:
isPermitted in class ConfluenceActionSupport

isSuperUser

public boolean isSuperUser()

isAdminUser

public boolean isAdminUser()

getSubscribableName

public String getSubscribableName()

setWikiStyleRenderer

public void setWikiStyleRenderer(WikiStyleRenderer wikiStyleRenderer)

getSpaceXHtmlDescription

public String getSpaceXHtmlDescription()

isUserWatchingSpace

public boolean isUserWatchingSpace()

isPersonalSpace

public boolean isPersonalSpace()

setNotificationManager

public void setNotificationManager(NotificationManager notificationManager)


Confluence is developed by Atlassian.