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, 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

See Also:
Serialized Form

Field Summary
 
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, 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 doDisableLogo()
           
 java.lang.String doEnableLogo()
           
 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()
           
protected  SpaceDescription getContentToAttachLogoTo()
           
 Space getSpace()
           
 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 setKey(java.lang.String key)
           
 void setSpace(Space space)
          IOC method for setting the space on the action.
 void setSpaceManager(SpaceManager spaceManager)
           
 
Methods inherited from class com.atlassian.confluence.spaces.actions.AbstractLogoAction
doDelete, doUpload, getLogo, setAttachmentManager, setFileUploadManager
 
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, getPermissionTypes, 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
 

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

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)


Copyright © 2003-2010 Atlassian. All Rights Reserved.