com.atlassian.confluence.spaces.actions
Class ConfigureSpaceLogoAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.confluence.core.ConfluenceActionSupport
          extended by com.atlassian.confluence.spaces.actions.AbstractLogoAction
              extended by com.atlassian.confluence.spaces.actions.ConfigureSpaceLogoAction
All Implemented Interfaces:
WebInterface, SpaceAware, Spaced, BreadcrumbAware, MessageHolderAware, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, java.io.Serializable

public class ConfigureSpaceLogoAction
extends AbstractLogoAction
implements SpaceAware, Spaced, BreadcrumbAware

See Also:
Serialized Form

Field Summary
protected  ThemeManager themeManager
           
 
Fields inherited from class com.atlassian.confluence.spaces.actions.AbstractLogoAction
attachmentManager, fileUploadManager, log
 
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
ConfigureSpaceLogoAction()
           
 
Method Summary
 java.lang.String doDelete()
           
 java.lang.String doDisableLogo()
           
 java.lang.String doEnableLogo()
           
 java.lang.String doUpload()
           
 java.lang.String getActionDescriminator()
          use this string to build the webwork action that forms in the view should submit to
protected  java.lang.String getAttachmentName()
           
 Breadcrumb getBreadcrumb()
          Returns the breadcrumb to be shown when the action is accessed.
protected  SpaceDescription getContentToAttachLogoTo()
           
 Space getSpace()
           
 ThemeManager getThemeManager()
           
 boolean isLogoDisabled()
           
 boolean isPermitted()
           
 boolean isSpaceRequired()
          If the action requires that the space be set before being run, then it should return true to this method.
 boolean isViewPermissionRequired()
           
 void setBreadcrumbGenerator(BreadcrumbGenerator breadcrumbGenerator)
           
 void setKey(java.lang.String key)
           
 void setSpace(Space space)
          IOC method for setting the space on the action.
 void setSpaceManager(SpaceManager spaceManager)
           
 void setThemeManager(ThemeManager themeManager)
           
 
Methods inherited from class com.atlassian.confluence.spaces.actions.AbstractLogoAction
getLogo, setAttachmentManager, setFileUploadManager
 
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, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserByName, getUserFullName, getUserInterfaceState, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermittedAsString, isPrintableVersion, isSharedMode, isUserStatusPluginEnabled, isUsingHSQL, 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

themeManager

protected ThemeManager themeManager
Constructor Detail

ConfigureSpaceLogoAction

public ConfigureSpaceLogoAction()
Method Detail

doDisableLogo

public java.lang.String doDisableLogo()
Specified by:
doDisableLogo in class AbstractLogoAction

doEnableLogo

public java.lang.String doEnableLogo()
Specified by:
doEnableLogo in class AbstractLogoAction

doDelete

public java.lang.String doDelete()
Overrides:
doDelete in class AbstractLogoAction

doUpload

public java.lang.String doUpload()
Overrides:
doUpload in class AbstractLogoAction

isLogoDisabled

public boolean isLogoDisabled()
Specified by:
isLogoDisabled in class AbstractLogoAction

getActionDescriminator

public java.lang.String getActionDescriminator()
Description copied from class: AbstractLogoAction
use this string to build the webwork action that forms in the view should submit to

Specified by:
getActionDescriminator in class AbstractLogoAction

setSpace

public void setSpace(Space space)
Description copied from interface: SpaceAware
IOC method for setting the space on the action. This is called from the interceptor

Specified by:
setSpace in interface SpaceAware
Parameters:
space - the space that the action will be working on.

getSpace

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

isSpaceRequired

public boolean isSpaceRequired()
Description copied from interface: SpaceAware
If the action requires that the space be set before being run, then it should return true to this method. If the action requires a space, but no space is available, then the interceptor will automatically redirect to the 'pagenotfound' result

Specified by:
isSpaceRequired in interface SpaceAware
Returns:
true if the action requires a space in order to execute

isViewPermissionRequired

public boolean isViewPermissionRequired()
Specified by:
isViewPermissionRequired in interface SpaceAware
Returns:
true if the action requires view space permission

isPermitted

public boolean isPermitted()
Overrides:
isPermitted in class ConfluenceActionSupport

getContentToAttachLogoTo

protected SpaceDescription getContentToAttachLogoTo()
Specified by:
getContentToAttachLogoTo in class AbstractLogoAction

getAttachmentName

protected java.lang.String getAttachmentName()
Specified by:
getAttachmentName in class AbstractLogoAction

setKey

public void setKey(java.lang.String key)

setSpaceManager

public void setSpaceManager(SpaceManager spaceManager)

setThemeManager

public void setThemeManager(ThemeManager themeManager)

setBreadcrumbGenerator

public void setBreadcrumbGenerator(BreadcrumbGenerator breadcrumbGenerator)

getThemeManager

public ThemeManager getThemeManager()

getBreadcrumb

public Breadcrumb getBreadcrumb()
Description copied from interface: BreadcrumbAware
Returns the breadcrumb to be shown when the action is accessed.

Specified by:
getBreadcrumb in interface BreadcrumbAware
Returns:
Breadcrumb


Copyright © 2003-2014 Atlassian. All Rights Reserved.