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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.confluence.spaces.actions.AbstractLogoAction
CONFLUENCE_LOGO, log, LOGO_KEY, resourceManager, space
 
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, 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
ConfigureSpaceLogoAction()
           
 
Method Summary
 java.lang.String doDelete()
           
 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
 Resource getLogoResource()
           
protected  java.util.List getPermissionTypes()
           
 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 setSpace(Space space)
          IOC method for setting the space on the action.
 
Methods inherited from class com.atlassian.confluence.spaces.actions.AbstractLogoAction
doUpload, getImageInfo, getSpace, setResourceManager
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getActionName, getBootstrapManager, getCancelResult, getDateFormatter, getDefaultResourceBundle, getEventManager, getFriendlyDateFormatter, 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, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermittedAsString, isPrintableVersion, isUsingHSQL, setBootstrapManager, setCancel, setEventManager, setFormatSettingsManager, setI18NBean, 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
 
Methods inherited from interface com.atlassian.confluence.spaces.actions.Spaced
getSpace
 

Constructor Detail

ConfigureSpaceLogoAction

public ConfigureSpaceLogoAction()
Method Detail

doDelete

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

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

getLogoResource

public Resource getLogoResource()
Specified by:
getLogoResource in class AbstractLogoAction
Returns:
if no space logo resource exists, fall back to the global logo

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.

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

getPermissionTypes

protected java.util.List getPermissionTypes()
Overrides:
getPermissionTypes in class ConfluenceActionSupport

isPermitted

public boolean isPermitted()
Overrides:
isPermitted in class ConfluenceActionSupport


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.