Class DisplayPluginHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class DisplayPluginHandler extends JcmsFormHandler
This class is used to handle modification on Plugins.
See Also:
  • Field Details

    • op

      protected boolean op
    • opUpload

      protected boolean opUpload
    • opPackage

      protected boolean opPackage
    • opDeploy

      protected boolean opDeploy
    • opUpdateProperties

      protected boolean opUpdateProperties
    • opDeletePackage

      protected boolean opDeletePackage
    • source

      protected boolean source
    • name

      protected String name
    • packageName

      protected String packageName
    • plugin

      protected Plugin plugin
    • propName

      protected String[] propName
    • propValue

      protected String[] propValue
    • isMainLeader

      protected boolean isMainLeader
    • isJSyncEnabled

      protected boolean isJSyncEnabled
    • isPluginEnabled

      protected boolean isPluginEnabled
    • isPluginDeployed

      protected boolean isPluginDeployed
    • isPluginSyncEnabled

      protected boolean isPluginSyncEnabled
    • pluginMgr

      protected PluginManager pluginMgr
  • Constructor Details

    • DisplayPluginHandler

      public DisplayPluginHandler()
  • Method Details

    • init

      protected void init()
      Description copied from class: JcmsFormHandler
      Method to implement if you need to initialize your handler from parameter received, prior to all security validation.

      You must absolutely not perform any action which modify data or site configuration.

      Therefore it is strongly recommend NOT TO implement this method, or use very wisely.

      Overrides:
      init in class JcmsFormHandler
    • processAction

      public boolean processAction() throws IOException
      Description copied from class: JcmsFormHandler
      Method to be implemented to check/validate action to be performed and process them.

      Default implementation is to return false. No need to call super method.

      This method may NOT be invoked at all if security validation are not met.

      You must ensure your handler and JSP can work properly without any code invoked in this method.

      Overrides:
      processAction in class JcmsFormHandler
      Returns:
      false if no redirection is needed, true otherwise
      Throws:
      IOException - IO Exception
    • validateUpload

      protected boolean validateUpload()
    • performUpload

      protected boolean performUpload()
    • validateDeletePackage

      protected boolean validateDeletePackage()
    • performDeletePackage

      protected boolean performDeletePackage()
    • validatePackage

      protected boolean validatePackage()
    • performPackage

      protected boolean performPackage()
    • validateDeploy

      protected boolean validateDeploy()
    • performDeploy

      protected boolean performDeploy()
    • checkPackageFile

      protected boolean checkPackageFile()
      Checks if the package file has been set and exists.
      Returns:
      false if an error message has been set.
    • showEditPlugin

      public boolean showEditPlugin()
    • showEnablePlugin

      public boolean showEnablePlugin()
    • showDisablePlugin

      public boolean showDisablePlugin()
    • showRequestPluginActivation

      public boolean showRequestPluginActivation()
    • showRequestPluginDeactivation

      public boolean showRequestPluginDeactivation()
    • showStartPlugin

      public boolean showStartPlugin()
    • showStopPlugin

      public boolean showStopPlugin()
    • validateUpdateProperties

      protected boolean validateUpdateProperties() throws IOException
      Throws:
      IOException
    • performUpdateProperties

      protected boolean performUpdateProperties()
      Perform operation as a BackgroundProcess.
      Returns:
      true
    • getPropertiesTabs

      public List<DisplayPluginHandler.PropertiesTab> getPropertiesTabs()
    • sendRedirect

      protected void sendRedirect()
    • getDeleteConfirmAttributes

      public ConfirmAttributes getDeleteConfirmAttributes()
    • getPlugin

      public Plugin getPlugin()
    • setName

      public void setName(String name)
    • getName

      public String getName()
    • setSource

      public void setSource(boolean source)
    • isSource

      public boolean isSource()
    • setOpUpload

      public void setOpUpload(boolean field)
    • setOpPackage

      public void setOpPackage(boolean field)
    • setOpDeploy

      public void setOpDeploy(boolean field)
    • setOpDeletePackage

      public void setOpDeletePackage(String field)
    • setOpUpdateProperties

      public void setOpUpdateProperties(boolean field)
    • setPackage

      public void setPackage(String field)
    • setPropName

      public void setPropName(String[] props)
    • setPropValue

      public void setPropValue(String[] props)