public class ApplicationsManagerServiceImpl extends ApplicationsManagerService implements JahiaAfterInitializationService
| Modifier and Type | Field and Description |
|---|---|
static String |
WEBAPPS_PERMISSION_PATH |
settingsBean| Modifier | Constructor and Description |
|---|---|
protected |
ApplicationsManagerServiceImpl()
constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomPortletModeBean(CustomPortletMode customPortletMode)
Add custom portlet modes
|
void |
addCustomWindowState(CustomWindowState customWindowState)
Add custom window state
|
boolean |
addDefinition(ApplicationBean app)
Add a new Application Definition.
|
EntryPointInstance |
createEntryPointInstance(EntryPointDefinition entryPointDefinition,
String path)
Creates an instance of an application entry point definition.
|
List<EntryPointDefinition> |
getAppEntryPointDefinitions(ApplicationBean appBean)
Get all EntryPointDefinition od the application bean
|
ApplicationBean |
getApplication(String appID)
return an Application Definition get directly from db
|
ApplicationBean |
getApplicationByContext(String context)
return an Application Definition looking at its context.
|
WebAppContext |
getApplicationContext(ApplicationBean appBean)
Get an WebAppContext for a given application bean
|
WebAppContext |
getApplicationContext(String id)
Get an ApplicationContext for a given application id
|
List<ApplicationBean> |
getApplications()
return all application Definitions
|
EntryPointInstance |
getEntryPointInstance(JCRPortletNode node)
Get entryPoint object from JCRPorletNode
|
EntryPointInstance |
getEntryPointInstance(String epInstanceID,
String workspaceName)
Retrieves an EntryPointInstance object from the persistance system by
using it's ID as a search key
|
static String |
getEntryPointNamespaceURI(String appName,
String entryPointDefinitionName) |
static String |
getEntryPointPrefix(String appName,
String entryPointDefinitionName) |
static ApplicationsManagerServiceImpl |
getInstance()
return the singleton instance
|
static String |
getPortletQualifiedNodeName(String appName,
String entryPointDefinitionName,
String localName) |
org.apache.pluto.container.PortletWindow |
getPortletWindow(EntryPointInstance entryPointInstance,
String windowID,
JahiaUser jahiaUser,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
javax.servlet.ServletContext servletContext,
String workspaceName)
Get Portlet Window object
|
List<javax.portlet.PortletMode> |
getSupportedPortletModes()
Get supported portlet modes
|
List<javax.portlet.WindowState> |
getSupportedWindowStates()
Get supported window states
|
static String |
getWebAppNamespaceURI(String appName) |
static String |
getWebAppPrefix(String appName) |
static String |
getWebAppQualifiedNodeName(String appName,
String localName) |
void |
initAfterAllServicesAreStarted() |
void |
loadCustomPortletModes(String supportedPortletModesConfigFileName)
load custom portlet mode
|
void |
loadCustomWindowStates(String supportedWindowStatesConfigFileName)
Load custom window states
|
void |
registerListeners() |
void |
removeApplication(String appID)
Removes an application from the persistant storage area and from registry.
|
void |
removeEntryPointInstance(String epInstanceID)
Removes an entry point instance from the persistance system.
|
boolean |
saveDefinition(ApplicationBean app)
Save the Application Definition.
|
void |
setCacheService(CacheService cacheService) |
void |
setDefaultPortletModeMappings(Map<String,String> defaultPortletModeMappings) |
void |
setDefaultPortletPermissionMappings(Map<String,String> defaultPortletPermissionMappings) |
void |
setDefaultWebAppRoleMappings(Map<String,String> defaultWebAppRoleMappings) |
void |
setGroupManagerService(JahiaGroupManagerService groupManagerService) |
void |
setJcrTemplate(JCRTemplate jcrTemplate) |
void |
setManagerProviders(Map<String,ApplicationsManagerProvider> managerProviders) |
void |
setPlutoServices(org.apache.pluto.container.driver.PlutoServices plutoServices) |
void |
setServletContextManager(ServletContextManager servletContextManager) |
boolean |
setVisible(String appID,
boolean visible)
set an application Visible to users
|
void |
start()
Initialze disk path
|
void |
stop() |
getSettingsBean, setSettingsBeanpublic static final String WEBAPPS_PERMISSION_PATH
protected ApplicationsManagerServiceImpl()
public void setCacheService(CacheService cacheService)
public void setManagerProviders(Map<String,ApplicationsManagerProvider> managerProviders)
public void setGroupManagerService(JahiaGroupManagerService groupManagerService)
public void setServletContextManager(ServletContextManager servletContextManager)
public void setJcrTemplate(JCRTemplate jcrTemplate)
public void setPlutoServices(org.apache.pluto.container.driver.PlutoServices plutoServices)
public void setDefaultPortletPermissionMappings(Map<String,String> defaultPortletPermissionMappings)
public void setDefaultWebAppRoleMappings(Map<String,String> defaultWebAppRoleMappings)
public void setDefaultPortletModeMappings(Map<String,String> defaultPortletModeMappings)
public static ApplicationsManagerServiceImpl getInstance()
public void start()
throws JahiaInitializationException
start in class JahiaServiceJahiaInitializationExceptionpublic void initAfterAllServicesAreStarted()
throws JahiaInitializationException
initAfterAllServicesAreStarted in interface JahiaAfterInitializationServiceJahiaInitializationExceptionpublic void stop()
stop in class JahiaServicepublic ApplicationBean getApplication(String appID) throws JahiaException
getApplication in class ApplicationsManagerServiceappID - the appIDJahiaExceptionpublic ApplicationBean getApplicationByContext(String context) throws JahiaException
getApplicationByContext in class ApplicationsManagerServicecontext - , the contextJahiaExceptionpublic List<ApplicationBean> getApplications() throws JahiaException
getApplications in class ApplicationsManagerServiceJahiaExceptionpublic boolean setVisible(String appID, boolean visible) throws JahiaException
setVisible in class ApplicationsManagerServiceappID - visible - statusJahiaExceptionpublic static String getEntryPointNamespaceURI(String appName, String entryPointDefinitionName)
public static String getEntryPointPrefix(String appName, String entryPointDefinitionName)
public static String getWebAppQualifiedNodeName(String appName, String localName)
public static String getPortletQualifiedNodeName(String appName, String entryPointDefinitionName, String localName)
public boolean addDefinition(ApplicationBean app) throws JahiaException
addDefinition in class ApplicationsManagerServiceapp - the app DefinitionJahiaExceptionpublic boolean saveDefinition(ApplicationBean app) throws JahiaException
saveDefinition in class ApplicationsManagerServiceapp - the app DefinitionJahiaExceptionpublic void removeApplication(String appID) throws JahiaException
removeApplication in class ApplicationsManagerServiceappID - identifier of the application to remove from the persistant
storage areaJahiaException - generated if there was an error while removing the application
data from persistant storage areapublic WebAppContext getApplicationContext(String id) throws JahiaException
getApplicationContext in class ApplicationsManagerServiceid - , the application idJahiaExceptionpublic WebAppContext getApplicationContext(ApplicationBean appBean) throws JahiaException
getApplicationContext in class ApplicationsManagerServiceappBean - the Application bean for which to retrieve the contextJahiaExceptionpublic EntryPointInstance createEntryPointInstance(EntryPointDefinition entryPointDefinition, String path) throws JahiaException
createEntryPointInstance in class ApplicationsManagerServiceentryPointDefinition - EntryPointDefinitionpath - JahiaExceptionpublic org.apache.pluto.container.PortletWindow getPortletWindow(EntryPointInstance entryPointInstance, String windowID, JahiaUser jahiaUser, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, javax.servlet.ServletContext servletContext, String workspaceName) throws JahiaException
getPortletWindow in class ApplicationsManagerServiceentryPointInstance - windowID - JahiaExceptionpublic List<EntryPointDefinition> getAppEntryPointDefinitions(ApplicationBean appBean)
getAppEntryPointDefinitions in class ApplicationsManagerServiceappBean - ApplicationBean the application for which to retrieve
the entry point definitionspublic EntryPointInstance getEntryPointInstance(String epInstanceID, String workspaceName) throws JahiaException
getEntryPointInstance in class ApplicationsManagerServiceepInstanceID - int the unique identifier for the EntryPointInstance
object in the persistence systemworkspaceName - the name of the workspace in which to look for the entrypoint instance.JahiaException - thrown if there was an error communicating with
the persistence system.public EntryPointInstance getEntryPointInstance(JCRPortletNode node) throws javax.jcr.RepositoryException
getEntryPointInstance in class ApplicationsManagerServicenode - javax.jcr.RepositoryException - in case of JCR-related errorspublic void removeEntryPointInstance(String epInstanceID) throws JahiaException
removeEntryPointInstance in class ApplicationsManagerServiceepInstanceID - int the unique identifier for the entry point
instanceJahiaException - thrown if there was an error communicating with
the persistence system.public void loadCustomPortletModes(String supportedPortletModesConfigFileName)
supportedPortletModesConfigFileName - public void addCustomPortletModeBean(CustomPortletMode customPortletMode)
customPortletMode - public List<javax.portlet.PortletMode> getSupportedPortletModes()
getSupportedPortletModes in class ApplicationsManagerServicepublic void loadCustomWindowStates(String supportedWindowStatesConfigFileName)
supportedWindowStatesConfigFileName - public void addCustomWindowState(CustomWindowState customWindowState)
customWindowState - public List<javax.portlet.WindowState> getSupportedWindowStates()
getSupportedWindowStates in class ApplicationsManagerServicepublic void registerListeners()
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.