com.atlassian.confluence.admin.actions.plugins
Class ManagePluginsAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.confluence.core.ConfluenceActionSupport
          extended by com.atlassian.confluence.admin.actions.plugins.ManagePluginsAction
All Implemented Interfaces:
WebInterface, MessageHolderAware, com.opensymphony.webwork.interceptor.SessionAware, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, Serializable
Direct Known Subclasses:
UploadPluginAction

public class ManagePluginsAction
extends ConfluenceActionSupport
implements com.opensymphony.webwork.interceptor.SessionAware

See Also:
Serialized Form

Field Summary
protected  String moduleKey
           
protected  com.atlassian.plugin.Plugin selectedPlugin
           
 
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, 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
ManagePluginsAction()
           
 
Method Summary
 String doDisable()
           
 String doEnable()
           
 String doScan()
           
 String doUninstall()
           
 String doView()
           
 String execute()
           
 String getHtmlSafePluginDescription(com.atlassian.plugin.PluginInformation plug)
           
 Integer getNewPlugins()
           
 String getPluginKey()
           
 Collection getPlugins()
           
 com.atlassian.plugin.Plugin getSelectedPlugin()
           
protected  String installPlugin(File pluginJar)
           
protected  String installPlugin(File pluginFile, String pluginFileName)
           
 boolean isModuleEnabled(String moduleKey)
           
 boolean isPermitted()
           
 boolean isPluginEnabled(String pluginKey)
           
 boolean isPluginRepositoryEnabled()
           
 boolean isUninstallSuccessful()
           
 boolean isUnloadableModule(com.atlassian.plugin.ModuleDescriptor descriptor)
           
 boolean isUnloadablePlugin(com.atlassian.plugin.Plugin plugin)
           
 boolean isUnrecognisedModule(com.atlassian.plugin.ModuleDescriptor descriptor)
           
 int numEnabled(com.atlassian.plugin.Plugin plugin)
           
 void setMode(String mode)
           
 void setModuleKey(String moduleKey)
           
 void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 void setPluginController(com.atlassian.plugin.PluginController pluginController)
           
 void setPluginKey(String pluginKey)
           
 void setSession(Map session)
           
protected  void updateSelectedPlugin()
           
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getActionName, getActionName, 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, getRandom, getRemoteUser, getSession, getSystemInformationService, 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, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionCheck, setPermissionManager, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setUserAccessor, setWebInterfaceManager
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, 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

selectedPlugin

protected com.atlassian.plugin.Plugin selectedPlugin

moduleKey

protected String moduleKey
Constructor Detail

ManagePluginsAction

public ManagePluginsAction()
Method Detail

execute

public String execute()
               throws Exception
Specified by:
execute in interface com.opensymphony.xwork.Action
Overrides:
execute in class com.opensymphony.xwork.ActionSupport
Throws:
Exception

doView

public String doView()
              throws Exception
Throws:
Exception

doScan

public String doScan()

doUninstall

public String doUninstall()

doDisable

public String doDisable()

doEnable

public String doEnable()

getPluginKey

public String getPluginKey()

updateSelectedPlugin

protected void updateSelectedPlugin()

setPluginAccessor

public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
Overrides:
setPluginAccessor in class ConfluenceActionSupport

getPlugins

public Collection getPlugins()

isUnloadablePlugin

public boolean isUnloadablePlugin(com.atlassian.plugin.Plugin plugin)

isPluginEnabled

public boolean isPluginEnabled(String pluginKey)

isUnloadableModule

public boolean isUnloadableModule(com.atlassian.plugin.ModuleDescriptor descriptor)

isUnrecognisedModule

public boolean isUnrecognisedModule(com.atlassian.plugin.ModuleDescriptor descriptor)

isModuleEnabled

public boolean isModuleEnabled(String moduleKey)

setPluginKey

public void setPluginKey(String pluginKey)

setModuleKey

public void setModuleKey(String moduleKey)

getSelectedPlugin

public com.atlassian.plugin.Plugin getSelectedPlugin()

numEnabled

public int numEnabled(com.atlassian.plugin.Plugin plugin)

installPlugin

protected String installPlugin(File pluginJar)
                        throws com.atlassian.plugin.PluginParseException
Throws:
com.atlassian.plugin.PluginParseException

installPlugin

protected String installPlugin(File pluginFile,
                               String pluginFileName)
                        throws com.atlassian.plugin.PluginParseException
Throws:
com.atlassian.plugin.PluginParseException

getNewPlugins

public Integer getNewPlugins()

setSession

public void setSession(Map session)
Specified by:
setSession in interface com.opensymphony.webwork.interceptor.SessionAware

setPluginController

public void setPluginController(com.atlassian.plugin.PluginController pluginController)

isPluginRepositoryEnabled

public boolean isPluginRepositoryEnabled()

isUninstallSuccessful

public boolean isUninstallSuccessful()

isPermitted

public boolean isPermitted()
Overrides:
isPermitted in class ConfluenceActionSupport

getHtmlSafePluginDescription

public String getHtmlSafePluginDescription(com.atlassian.plugin.PluginInformation plug)

setMode

public void setMode(String mode)


Copyright © 2003-2013 Atlassian. All Rights Reserved.