public class DefaultRemoteScriptManager extends UnicastRemoteObject implements IRemoteScriptManager, IScriptManager
| Modifier and Type | Field and Description |
|---|---|
protected Hashtable |
configurationParameters |
protected IScriptManager |
localScriptManager |
protected EntityReferenceLocator |
locator |
refREMOTE_SCRIPT_MANAGER| Constructor and Description |
|---|
DefaultRemoteScriptManager(int port,
EntityReferenceLocator locator,
Hashtable params) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkSession(int sessionId) |
protected void |
createLocalScriptManager(Hashtable params) |
protected Hashtable |
getActionValues(ScriptAction action) |
List<String> |
getAllAvailableLanguages()
Get a a list with all the available script languages.
|
Hashtable<String,ScriptEngineFactory> |
getAllAvailableScriptFactories()
Get all the available
ScriptEngineFactory in the build path |
Map<String,String> |
getConfigurationParameters(int sessionId) |
Entity |
getEntityReference(String entityName) |
List<ScriptAction> |
getEntityScripts(List<String> entityNames) |
List<ScriptAction> |
getEntityScripts(String entityName) |
ScriptEngineFactory |
getFactoryInstance(String type)
Get the instance of the
ScriptEngineFactory for the specified
script language |
List<ScriptAction> |
getFormScripts(String formName,
String imanagerClassName) |
List<String> |
getRemoteAvailableLanguages(int sessionId) |
ScriptEngine |
getScriptEngineInstance(String type)
Get the instance of the
ScriptEngineFactory for the specified
script language Script language. |
protected Hashtable |
getScriptValues(Script script) |
EntityResult |
insertScript(Script script,
int sessionId) |
EntityResult |
insertScriptAction(ScriptAction action,
int sessionId) |
boolean |
isUseScriptingCache()
Return true if the ScriptManager is using a cache for the scripts
|
void |
removeEntity(String entityName) |
EntityResult |
removeScript(Script script,
int sessionId) |
EntityResult |
removeScriptAction(ScriptAction action,
int sessionId) |
void |
setUseScriptingCache(boolean useCache)
Set if the ScriptManager must use a cache for the scripts or not
|
EntityResult |
updateScript(Script script,
int sessionId) |
EntityResult |
updateScriptAction(ScriptAction action,
int sessionId) |
clone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogprotected IScriptManager localScriptManager
protected EntityReferenceLocator locator
protected Hashtable configurationParameters
public DefaultRemoteScriptManager(int port,
EntityReferenceLocator locator,
Hashtable params)
throws RemoteException
RemoteExceptionprotected void createLocalScriptManager(Hashtable params)
public Map<String,String> getConfigurationParameters(int sessionId) throws Exception
getConfigurationParameters in interface IRemoteScriptManagerExceptionpublic Entity getEntityReference(String entityName) throws Exception
Exceptionprotected void checkSession(int sessionId)
throws SessionNotFoundException
SessionNotFoundExceptionprotected Hashtable getActionValues(ScriptAction action)
public EntityResult insertScript(Script script, int sessionId) throws Exception
insertScript in interface IRemoteScriptManagerExceptionpublic EntityResult insertScriptAction(ScriptAction action, int sessionId) throws Exception
insertScriptAction in interface IRemoteScriptManagerExceptionpublic EntityResult removeScript(Script script, int sessionId) throws Exception
removeScript in interface IRemoteScriptManagerExceptionpublic EntityResult removeScriptAction(ScriptAction action, int sessionId) throws Exception
removeScriptAction in interface IRemoteScriptManagerExceptionpublic EntityResult updateScript(Script script, int sessionId) throws Exception
updateScript in interface IRemoteScriptManagerExceptionpublic EntityResult updateScriptAction(ScriptAction action, int sessionId) throws Exception
updateScriptAction in interface IRemoteScriptManagerExceptionpublic List<String> getRemoteAvailableLanguages(int sessionId) throws Exception
getRemoteAvailableLanguages in interface IRemoteScriptManagerExceptionpublic List<String> getAllAvailableLanguages()
IScriptManagerIScriptManager.getAllAvailableScriptFactories()getAllAvailableLanguages in interface IScriptManagerpublic Hashtable<String,ScriptEngineFactory> getAllAvailableScriptFactories()
IScriptManagerScriptEngineFactory in the build pathgetAllAvailableScriptFactories in interface IScriptManagerpublic List<ScriptAction> getEntityScripts(String entityName) throws Exception
getEntityScripts in interface IScriptManagerExceptionpublic List<ScriptAction> getEntityScripts(List<String> entityNames) throws Exception
getEntityScripts in interface IScriptManagerExceptionpublic ScriptEngineFactory getFactoryInstance(String type)
IScriptManagerScriptEngineFactory for the specified
script languagegetFactoryInstance in interface IScriptManagertype - Script language. This name must be in the list returned by
IScriptManager.getAllAvailableLanguages()public List<ScriptAction> getFormScripts(String formName, String imanagerClassName) throws Exception
getFormScripts in interface IScriptManagerExceptionpublic ScriptEngine getScriptEngineInstance(String type)
IScriptManagerScriptEngineFactory for the specified
script language Script language. This name must be in the list returned
by IScriptManager.getAllAvailableLanguages()getScriptEngineInstance in interface IScriptManagerpublic boolean isUseScriptingCache()
IScriptManagerisUseScriptingCache in interface IScriptManagerpublic void setUseScriptingCache(boolean useCache)
IScriptManagersetUseScriptingCache in interface IScriptManagerCopyright © 2016 Imatia Innovation S.L.. All rights reserved.