Disabling dynamically a portal container

It is possible to use component-plugin elements to dynamically disable one or several portal containers. In the example below, we disable the portal container named foo:

  <!-- The full qualified name of the PortalContainerConfig -->
    <!-- The name of the plugin -->
    <name>Disable a PortalContainer</name>
    <!-- The name of the method to call on the PortalContainerConfig in order to register the changes on the PortalContainerDefinitions -->
    <!-- The full qualified name of the PortalContainerDefinitionDisablePlugin -->
      <!-- The list of the name of the portal containers to disable -->

names (*)The list of the name of the portal containers to disable.


All the value of the parameters marked with a (*) can be set via System properties and also via variables loaded by the PropertyConfigurator. For example, in eXo Platform, it would be all the variables that can be defined in the exo.properties file. See Configuration overview for the exo.properties file.

To prevent any accesses to a web application corresponding to PortalContainer that has been disabled, you need to make sure that the following Http Filter (or its subclass) has been added to your web.xml in first position as below:




It is only possible to disable a portal container when at least one PortalContainerDefinition has been registered.

Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus