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, java.io.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, 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 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
 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 getSpaceXHtmlDescription()
           
 java.lang.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(java.lang.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, getDateFormatter, getDefaultResourceBundle, getEventManager, getFriendlyDateFormatter, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getNiceContentType, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRandom, getRemoteUser, getSession, 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, 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 java.lang.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 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)
Used only by unit tests


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

public boolean isSuperUser()

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)

getSpaceXHtmlDescription

public java.lang.String getSpaceXHtmlDescription()

isUserWatchingSpace

public boolean isUserWatchingSpace()

isPersonalSpace

public boolean isPersonalSpace()

setNotificationManager

public void setNotificationManager(NotificationManager notificationManager)


Copyright © 2003-2010 Atlassian. All Rights Reserved.