Class PortalApplication
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.web.application.Application
org.exoplatform.webui.application.WebuiApplication
org.exoplatform.portal.application.PortalApplication
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
The PortalApplication class is an implementation of the WebuiApplication abstract class which defines the type of application
that can be deployed in our framework (that includes portal, portlets, widgets...)
This class is a wrapper of all portal information such as ResourceBundle for i18n, the current ExoContainer in use as well as
the init parameters defined along with the servlet web.xml
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static org.exoplatform.services.log.Logstatic final StringFields inherited from class org.exoplatform.web.application.Application
EXO_GADGET_TYPE, EXO_PORTAL_TYPE, EXO_PORTLET_TYPE, JSR168_APPLICATION_TYPE, WSRP_TYPEFields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsConstructorDescriptionPortalApplication(jakarta.servlet.ServletConfig config) The constructor references resource resolvers that allows the ApplicationResourceResolver to extract files from different locations such as the current war or external one such as the resource one where several static files are shared among all portal instances. -
Method Summary
Modifier and TypeMethodDescriptiongetOwnerResourceBundle(String username, Locale locale) extract the ResourceBundle associated with the current user from the ResourceBundleServicegetResourceBundle(Locale locale) extract ResourceBundle from the ResourceBundleService using the bundle defined in the configuration XML file for the UI applicationjakarta.servlet.ServletConfigvoidonInit()This method first calls the super.onInit() of the WebuiApplication.Methods inherited from class org.exoplatform.webui.application.WebuiApplication
broadcast, createUIComponent, getConfigurationManager, getDefaultUIComponentToUpdateByAjax, getStateManager, setStateManagerMethods inherited from class org.exoplatform.web.application.Application
getApplicationLifecycle, getApplicationServiceContainer, getAttribute, getResourceResolver, onDestroy, setApplicationLifecycle, setAttribute, setResourceResolverMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Field Details
-
log
protected static org.exoplatform.services.log.Log log -
PORTAL_APPLICATION_ID
- See Also:
-
-
Constructor Details
-
PortalApplication
public PortalApplication(jakarta.servlet.ServletConfig config) The constructor references resource resolvers that allows the ApplicationResourceResolver to extract files from different locations such as the current war or external one such as the resource one where several static files are shared among all portal instances.- Parameters:
config- , the servlet config that contains init params such as the path location of the XML configuration file for the WebUI framework
-
-
Method Details
-
onInit
This method first calls the super.onInit() of the WebuiApplication. That super method parse the XML file and stores its content in the ConfigurationManager object. It also set up he StateManager and init the application lifecycle phases. Then we get all the properties file that will be used to create ResourceBundles- Overrides:
onInitin classWebuiApplication- Throws:
Exception
-
getServletConfig
public jakarta.servlet.ServletConfig getServletConfig() -
getApplicationId
- Specified by:
getApplicationIdin classorg.exoplatform.web.application.Application
-
getApplicationName
- Specified by:
getApplicationNamein classorg.exoplatform.web.application.Application
-
getApplicationGroup
- Specified by:
getApplicationGroupin classorg.exoplatform.web.application.Application
-
getApplicationType
- Specified by:
getApplicationTypein classorg.exoplatform.web.application.Application
-
getResourceBundle
extract ResourceBundle from the ResourceBundleService using the bundle defined in the configuration XML file for the UI application- Specified by:
getResourceBundlein classorg.exoplatform.web.application.Application
-
getOwnerResourceBundle
extract the ResourceBundle associated with the current user from the ResourceBundleService- Specified by:
getOwnerResourceBundlein classorg.exoplatform.web.application.Application
-
getApplicationInitParam
- Specified by:
getApplicationInitParamin classWebuiApplication
-