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, java.io.Serializable
Direct Known Subclasses:
UploadPluginAction

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

See Also:
Serialized Form

Field Summary
protected  java.lang.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
 java.lang.String doDisable()
           
 java.lang.String doEnable()
           
 java.lang.String doScan()
           
 java.lang.String doUninstall()
           
 java.lang.String doView()
           
 java.lang.String execute()
           
 java.lang.String getHtmlSafePluginDescription(com.atlassian.plugin.PluginInformation plug)
           
 java.lang.Integer getNewPlugins()
           
 java.lang.String getPluginKey()
           
 java.util.Collection getPlugins()
           
 com.atlassian.plugin.Plugin getSelectedPlugin()
           
protected  java.lang.String installPlugin(java.io.File pluginJar)
           
protected  java.lang.String installPlugin(java.io.File pluginFile, java.lang.String pluginFileName)
           
 boolean isModuleEnabled(java.lang.String moduleKey)
           
 boolean isPermitted()
           
 boolean isPluginEnabled(java.lang.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(java.lang.String mode)
           
 void setModuleKey(java.lang.String moduleKey)
           
 void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 void setPluginController(com.atlassian.plugin.PluginController pluginController)
           
 void setPluginKey(java.lang.String pluginKey)
           
 void setSession(java.util.Map session)
           
protected  void updateSelectedPlugin()
           
 
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, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermittedAsString, isPrintableVersion, isSharedMode, isUserStatusPluginEnabled, isUsingHSQL, setApiDateFormatService, 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 java.lang.String moduleKey
Constructor Detail

ManagePluginsAction

public ManagePluginsAction()
Method Detail

execute

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

doView

public java.lang.String doView()
                        throws java.lang.Exception
Throws:
java.lang.Exception

doScan

public java.lang.String doScan()

doUninstall

public java.lang.String doUninstall()

doDisable

public java.lang.String doDisable()

doEnable

public java.lang.String doEnable()

getPluginKey

public java.lang.String getPluginKey()

updateSelectedPlugin

protected void updateSelectedPlugin()

setPluginAccessor

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

getPlugins

public java.util.Collection getPlugins()

isUnloadablePlugin

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

isPluginEnabled

public boolean isPluginEnabled(java.lang.String pluginKey)

isUnloadableModule

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

isUnrecognisedModule

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

isModuleEnabled

public boolean isModuleEnabled(java.lang.String moduleKey)

setPluginKey

public void setPluginKey(java.lang.String pluginKey)

setModuleKey

public void setModuleKey(java.lang.String moduleKey)

getSelectedPlugin

public com.atlassian.plugin.Plugin getSelectedPlugin()

numEnabled

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

installPlugin

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

installPlugin

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

getNewPlugins

public java.lang.Integer getNewPlugins()

setSession

public void setSession(java.util.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 java.lang.String getHtmlSafePluginDescription(com.atlassian.plugin.PluginInformation plug)

setMode

public void setMode(java.lang.String mode)


Copyright © 2003-2014 Atlassian. All Rights Reserved.