public class XJavascriptService extends Object implements org.picocontainer.Startable
| Modifier and Type | Field and Description |
|---|---|
static String |
JS_PATH_REGEXP |
| Constructor and Description |
|---|
XJavascriptService(WCMConfigurationService wcmConfigurationService,
org.exoplatform.web.application.javascript.JavascriptConfigService javascriptConfigService,
LivePortalManagerService livePortalService)
Instantiates a new x javascript service.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getActiveJavaScript(javax.jcr.Node webcontent)
Get active java script.
|
void |
start() |
void |
stop() |
void |
updatePortalJSOnModify(javax.jcr.Node portalNode,
javax.jcr.Node jsFile)
Update and merged all Java Script in all portal when content of js file is modified.
|
void |
updatePortalJSOnRemove(javax.jcr.Node portalNode,
javax.jcr.Node jsFile)
Update and merged all Java Script in all portal when content of js file is modified.
|
public static final String JS_PATH_REGEXP
public XJavascriptService(WCMConfigurationService wcmConfigurationService, org.exoplatform.web.application.javascript.JavascriptConfigService javascriptConfigService, LivePortalManagerService livePortalService) throws Exception
livePortalService - the livePortal serviceException - the exceptionpublic String getActiveJavaScript(javax.jcr.Node webcontent) throws Exception
webcontent - the webcontent's nodeException - the exceptionpublic void updatePortalJSOnModify(javax.jcr.Node portalNode,
javax.jcr.Node jsFile)
throws Exception
portalNode - the portal nodejsFile - the js fileException - the exceptionpublic void updatePortalJSOnRemove(javax.jcr.Node portalNode,
javax.jcr.Node jsFile)
throws Exception
portalNode - the portal nodejsFile - the js fileException - the exceptionpublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.StartableCopyright © 2003–2019 eXo Platform SAS. All rights reserved.