Class NewPortalConfigListener

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.portal.config.NewPortalConfigListener
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin

public class NewPortalConfigListener extends org.exoplatform.container.component.BaseComponentPlugin
Created by The eXo Platform SARL Author : Tuan Nguyen tuan08@users.sourceforge.net May 22, 2006
  • Constructor Details

    • NewPortalConfigListener

      public NewPortalConfigListener(UserPortalConfigService owner, org.exoplatform.portal.mop.service.LayoutService layoutService, org.exoplatform.container.configuration.ConfigurationManager cmanager, org.exoplatform.container.xml.InitParams params, org.exoplatform.portal.mop.service.NavigationService navigationService, org.exoplatform.portal.mop.storage.DescriptionStorage descriptionStorage, UserACL userACL, org.exoplatform.services.resources.LocaleConfigService localeConfigService)
  • Method Details

    • run

      public void run() throws Exception
      Throws:
      Exception
    • mergePlugin

      public void mergePlugin(NewPortalConfigListener other)
      This is used to merge an other NewPortalConfigListener to this one
      Parameters:
      other -
    • initPortalConfigDB

      public void initPortalConfigDB(NewPortalConfig config)
    • initPageDB

      public void initPageDB(NewPortalConfig config)
    • initPageNavigationDB

      public void initPageNavigationDB(NewPortalConfig config)
    • createPortalConfig

      public boolean createPortalConfig(NewPortalConfig config, String owner)
    • createPage

      public void createPage(NewPortalConfig config, String owner)
    • createPageNavigation

      public void createPageNavigation(NewPortalConfig config, String owner)
    • getConfig

      public <T> org.exoplatform.portal.config.model.UnmarshalledObject<T> getConfig(NewPortalConfig config, String portalName, String fileName, Class<T> objectType)
      Best effort to load and unmarshall a configuration.
      Type Parameters:
      T - the generic type to unmarshall to
      Parameters:
      config - the config object
      portalName - the owner
      fileName - the file name
      objectType - the type to unmarshall to
      Returns:
      the xml of the config or null
    • getConfig

      public <T> T getConfig(String portalType, String portalName, Class<T> objectType, String parentLocation)
    • getConfig

      public <T> org.exoplatform.portal.config.model.UnmarshalledObject<T> getConfig(String portalType, String portalName, Class<T> objectType, String fileName, String parentLocation)
    • getConfig

      public <T> org.exoplatform.portal.config.model.UnmarshalledObject<T> getConfig(String portalType, String portalName, Class<T> objectType, String fileName, String parentLocation, String templateName)
    • getConfig

      public <T> org.exoplatform.portal.config.model.UnmarshalledObject<T> getConfig(String portalName, String portalType, Class<T> objectType, String parentLocation, List<String> relativePaths)
    • getConfig

      public String getConfig(String location, String path)
    • getTemplateConfig

      public String getTemplateConfig(String type, String name)
    • getTemplateConfigs

      public Set<String> getTemplateConfigs(String siteType)
      Get all template configurations
      Parameters:
      siteType - (portal, group, user)
      Returns:
      set of template name
    • reloadConfig

      public void reloadConfig(String ownerType, String predefinedOwner, String location, String importMode, boolean overrideMode)