Package org.exoplatform.portal.config
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
-
Field Summary
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsConstructorDescriptionNewPortalConfigListener(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 Summary
Modifier and TypeMethodDescriptionvoidcreatePage(NewPortalConfig config, String owner) org.exoplatform.portal.config.model.PagecreatePageFromTemplate(String ownerType, String owner, String temp) voidcreatePageNavigation(NewPortalConfig config, String owner) booleancreatePortalConfig(NewPortalConfig config, String owner) voidThis is used to delete an already loaded NewPortalConfigListener(s)<T> T<T> org.exoplatform.portal.config.model.UnmarshalledObject<T> getConfig(String portalType, String portalName, Class<T> objectType, String fileName, String parentLocation) <T> org.exoplatform.portal.config.model.UnmarshalledObject<T> getConfig(String portalType, String portalName, Class<T> objectType, String fileName, String parentLocation, String templateName) <T> org.exoplatform.portal.config.model.UnmarshalledObject<T> getConfig(String portalName, String portalType, Class<T> objectType, String parentLocation, List<String> relativePaths) <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.org.exoplatform.portal.config.model.PortalConfiggetPortalConfigFromTemplate(String siteType, String templateName) Get detail configuration from a template filegetTemplateConfig(String type, String name) getTemplateConfigs(String siteType) Get all template configurationsvoidinitPageDB(NewPortalConfig config) voidinitPageNavigationDB(NewPortalConfig config) voidinitPortalConfigDB(NewPortalConfig config) voidThis is used to merge an other NewPortalConfigListener to this onevoidreloadConfig(String ownerType, String predefinedOwner, String location, String importMode, boolean overrideMode) voidrun()Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Constructor Details
-
Method Details
-
run
- Throws:
Exception
-
mergePlugin
This is used to merge an other NewPortalConfigListener to this one- Parameters:
other-
-
deleteListenerElements
This is used to delete an already loaded NewPortalConfigListener(s)- Parameters:
other-
-
initPortalConfigDB
- Throws:
Exception
-
initPageDB
- Throws:
Exception
-
createPortalConfig
- Throws:
Exception
-
createPage
- Throws:
Exception
-
getConfig
public <T> org.exoplatform.portal.config.model.UnmarshalledObject<T> getConfig(NewPortalConfig config, String portalName, String fileName, Class<T> objectType) throws Exception Best effort to load and unmarshall a configuration.- Type Parameters:
T- the generic type to unmarshall to- Parameters:
config- the config objectportalName- the ownerfileName- the file nameobjectType- the type to unmarshall to- Returns:
- the xml of the config or null
- Throws:
Exception- any exception
-
getConfig
-
getConfig
-
getConfig
-
getConfig
-
createPageFromTemplate
public org.exoplatform.portal.config.model.Page createPageFromTemplate(String ownerType, String owner, String temp) throws Exception - Throws:
Exception
-
getTemplateConfig
-
getTemplateConfigs
Get all template configurations- Parameters:
siteType- (portal, group, user)- Returns:
- set of template name
-
getPortalConfigFromTemplate
public org.exoplatform.portal.config.model.PortalConfig getPortalConfigFromTemplate(String siteType, String templateName) Get detail configuration from a template file- Parameters:
siteType- (portal, group, user)templateName- name of template- Returns:
- PortalConfig object
-
reloadConfig
-