Java Doc for ScriptingEngine.java in  » J2EE » fleXive » com » flexive » shared » interfaces » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » fleXive » com.flexive.shared.interfaces 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.flexive.shared.interfaces.ScriptingEngine

All known Subclasses:   com.flexive.ejb.beans.ScriptingEngineBean,
ScriptingEngine
public interface ScriptingEngine (Code)
Scripting engine
author:
   Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)




Method Summary
 FxScriptMappingEntrycreateAssignmentScriptMapping(long scriptId, long assignmentId, boolean active, boolean derivedUsage)
    
 FxScriptMappingEntrycreateAssignmentScriptMapping(FxScriptEvent scriptEvent, long scriptId, long assignmentId, boolean active, boolean derivedUsage)
    
 FxScriptInfocreateScript(FxScriptEvent event, String name, String description, String code)
     Create a new script (newly created scripts are set to active per default).
 FxScriptInfocreateScriptFromDropLibrary(String dropName, FxScriptEvent event, String libraryname, String name, String description)
     Create a new script based on a script from the library (newly created scripts are set to active per default).
 FxScriptInfocreateScriptFromLibrary(FxScriptEvent event, String libraryname, String name, String description)
     Create a new script based on a script from the library (newly created scripts are set to active per default).
 FxScriptMappingEntrycreateTypeScriptMapping(long scriptId, long typeId, boolean active, boolean derivedUsage)
    
 FxScriptMappingEntrycreateTypeScriptMapping(FxScriptEvent scriptEvent, long scriptId, long typeId, boolean active, boolean derivedUsage)
    
 voidexecuteDropRunOnceScripts(Parameter<Boolean> param, String dropName)
     Execute run-once scripts for drops.
 voidexecuteDropStartupScripts(String dropName)
     Execute start up scripts for a specific drop.
 voidexecuteRunOnceScripts()
     Execute run-once scripts.
 voidexecuteStartupScripts()
     Execute start up scripts.
public  List<String[]>getAvailableScriptEngines()
    
 List<Long>getByScriptType(FxScriptEvent scriptEvent)
    
public  FxScriptInfogetScriptInfo(long scriptId)
    
public  FxScriptInfo[]getScriptInfos()
    
 StringloadScriptCode(long scriptId)
    
 FxScriptMappingloadScriptMapping(Connection _con, long scriptId)
    
 voidremoveAssignmentScriptMapping(long scriptId, long assignmentId)
    
 voidremoveAssignmentScriptMappingForEvent(long scriptId, long assignmentId, FxScriptEvent event)
    
 voidremoveScript(long scriptId)
    
 voidremoveTypeScriptMapping(long scriptId, long typeId)
    
 voidremoveTypeScriptMappingForEvent(long scriptId, long typeId, FxScriptEvent event)
    
 FxScriptResultrunScript(long scriptId, FxScriptBinding binding)
    
public  FxScriptResultrunScript(String name, FxScriptBinding binding, String code)
    
 FxScriptResultrunScript(long scriptId)
    
 FxScriptMappingEntryupdateAssignmentScriptMappingForEvent(long scriptId, long assignmentId, FxScriptEvent event, boolean active, boolean derivedUsage)
    
 voidupdateScriptCode(long scriptId, String code)
    
 voidupdateScriptInfo(long scriptId, FxScriptEvent event, String name, String description, String code, boolean active)
    
 voidupdateScriptInfo(FxScriptInfoEdit scriptInfo)
    
 FxScriptMappingEntryupdateTypeScriptMappingForEvent(long scriptId, long typeId, FxScriptEvent event, boolean active, boolean derivedUsage)
    



Method Detail
createAssignmentScriptMapping
FxScriptMappingEntry createAssignmentScriptMapping(long scriptId, long assignmentId, boolean active, boolean derivedUsage) throws FxApplicationException(Code)
Create a new mapping for assignments with the default FxScriptEvent the script was created with
Parameters:
  scriptId - id of the script
Parameters:
  assignmentId - id of the assignment
Parameters:
  active - mapping is active?
Parameters:
  derivedUsage - mapping used in derived assignments? the created entry
throws:
  FxApplicationException - on errors



createAssignmentScriptMapping
FxScriptMappingEntry createAssignmentScriptMapping(FxScriptEvent scriptEvent, long scriptId, long assignmentId, boolean active, boolean derivedUsage) throws FxApplicationException(Code)
Create a new mapping for assignments with with a given FxScriptEvent
Parameters:
  scriptEvent - FxScriptEvent for this mapping (on create, save, remove, etc.)
Parameters:
  scriptId - id of the script
Parameters:
  assignmentId - id of the assignment
Parameters:
  active - mapping is active?
Parameters:
  derivedUsage - mapping used in derived assignments? the created entry
throws:
  FxApplicationException - on errors



createScript
FxScriptInfo createScript(FxScriptEvent event, String name, String description, String code) throws FxApplicationException(Code)
Create a new script (newly created scripts are set to active per default).
Parameters:
  event - script event
Parameters:
  name - (unique) name
Parameters:
  description - description
Parameters:
  code - code FxScriptInfo for the new created script
throws:
  FxApplicationException - on errors
See Also:   com.flexive.shared.scripting.FxScriptEvent



createScriptFromDropLibrary
FxScriptInfo createScriptFromDropLibrary(String dropName, FxScriptEvent event, String libraryname, String name, String description) throws FxApplicationException(Code)
Create a new script based on a script from the library (newly created scripts are set to active per default).
Parameters:
  dropName - name of the drop to use as repository
Parameters:
  event - script event
Parameters:
  libraryname - name of the script in the script library
Parameters:
  name - (unique) name
Parameters:
  description - description FxScriptInfo for the new created script
throws:
  FxApplicationException - on errors
See Also:   com.flexive.shared.scripting.FxScriptEvent



createScriptFromLibrary
FxScriptInfo createScriptFromLibrary(FxScriptEvent event, String libraryname, String name, String description) throws FxApplicationException(Code)
Create a new script based on a script from the library (newly created scripts are set to active per default).
Parameters:
  event - script event
Parameters:
  libraryname - name of the script in the script library
Parameters:
  name - (unique) name
Parameters:
  description - description FxScriptInfo for the new created script
throws:
  FxApplicationException - on errors
See Also:   com.flexive.shared.scripting.FxScriptEvent



createTypeScriptMapping
FxScriptMappingEntry createTypeScriptMapping(long scriptId, long typeId, boolean active, boolean derivedUsage) throws FxApplicationException(Code)
Create a new mapping for types with the default FxScriptEvent the script was created with
Parameters:
  scriptId - id of the script
Parameters:
  typeId - id of the type
Parameters:
  active - mapping is active?
Parameters:
  derivedUsage - mapping used in derived types? the created entry
throws:
  FxApplicationException - on errors



createTypeScriptMapping
FxScriptMappingEntry createTypeScriptMapping(FxScriptEvent scriptEvent, long scriptId, long typeId, boolean active, boolean derivedUsage) throws FxApplicationException(Code)
Create a new mapping for types with a given FxScriptEvent
Parameters:
  scriptEvent - FxScriptEvent for this mapping (on create, save, remove, etc.)
Parameters:
  scriptId - id of the script
Parameters:
  typeId - id of the type
Parameters:
  active - mapping is active?
Parameters:
  derivedUsage - mapping used in derived types? the created entry
throws:
  FxApplicationException - on errors



executeDropRunOnceScripts
void executeDropRunOnceScripts(Parameter<Boolean> param, String dropName) throws FxApplicationException(Code)
Execute run-once scripts for drops. run-once scripts are only executed once in the lifetime of a division! consecutive calls have no effect and nothing will be executed! param will be set to "true" once the scripts are run and will be checked to be "false" prior to run
Parameters:
  param - boolean parameter to mark scripts as being run
Parameters:
  dropName - name of the drop (WAR archive name without extension)
throws:
  FxApplicationException - if the requested drop is unknown or invalid



executeDropStartupScripts
void executeDropStartupScripts(String dropName) throws FxApplicationException(Code)
Execute start up scripts for a specific drop. To be called from a filter or the like. No exceptions are throws since there is no means of user feedback. If errors occur, they are written to the logfile. start up scripts are only executed once each time the application server is started. consecutive calls *will* execute start up scripts again!
Parameters:
  dropName - name of the drop (WAR archive name without extension)
throws:
  FxApplicationException - if the requested drop is unknown or invalid



executeRunOnceScripts
void executeRunOnceScripts()(Code)
Execute run-once scripts. No exceptions are throws since there is no means of user feedback. If errors occur, they are written to the logfile. run-once scripts are only executed once in the lifetime of a division! consecutive calls have no effect and nothing will be executed!



executeStartupScripts
void executeStartupScripts()(Code)
Execute start up scripts. No exceptions are throws since there is no means of user feedback. If errors occur, they are written to the logfile. start up scripts are only executed once each time the application server is started. consecutive calls *will* execute start up scripts again!



getAvailableScriptEngines
public List<String[]> getAvailableScriptEngines() throws FxApplicationException(Code)
Get a list containing script extension and script engine info as 2-dimensional String array list containing script extension and script engine info as 2-dimensional String array
throws:
  FxApplicationException - on errors



getByScriptType
List<Long> getByScriptType(FxScriptEvent scriptEvent)(Code)
Get scripts by their type
Parameters:
  scriptEvent - requested script event array of id's by type



getScriptInfo
public FxScriptInfo getScriptInfo(long scriptId) throws FxApplicationException(Code)
Get all available information about a script
Parameters:
  scriptId - id of the requested script FxScriptInfo
throws:
  FxApplicationException - on errors



getScriptInfos
public FxScriptInfo[] getScriptInfos() throws FxApplicationException(Code)
Get all available information for all existing scripts FxScriptInfo
throws:
  FxApplicationException - on errors



loadScriptCode
String loadScriptCode(long scriptId) throws FxApplicationException(Code)
Load a scripts code
Parameters:
  scriptId - requested script code
throws:
  FxApplicationException - on errors



loadScriptMapping
FxScriptMapping loadScriptMapping(Connection _con, long scriptId) throws FxLoadException, SQLException(Code)
Loads all assignment mappings for a specified script
Parameters:
  _con - the database connection
Parameters:
  scriptId - the script the script mappings
throws:
  FxLoadException - on errors
throws:
  SQLException - on errors



removeAssignmentScriptMapping
void removeAssignmentScriptMapping(long scriptId, long assignmentId) throws FxApplicationException(Code)
Remove a mapping from a script to an assignment (directly mapped, not via inheritance!)
Parameters:
  scriptId - id of the script
Parameters:
  assignmentId - id of the assignment
throws:
  FxApplicationException - on errors



removeAssignmentScriptMappingForEvent
void removeAssignmentScriptMappingForEvent(long scriptId, long assignmentId, FxScriptEvent event) throws FxApplicationException(Code)
Remove a mapping from a script to an assignment for a specific event (directly mapped, not via inheritance!)
Parameters:
  scriptId - id of the script
Parameters:
  assignmentId - id of the assignment
Parameters:
  event - the script event
throws:
  FxApplicationException - on errors



removeScript
void removeScript(long scriptId) throws FxApplicationException(Code)
Remove a script (will remove all mappings for this script as well)
Parameters:
  scriptId - id of the script and its mappings to remove
throws:
  FxApplicationException - on errors



removeTypeScriptMapping
void removeTypeScriptMapping(long scriptId, long typeId) throws FxApplicationException(Code)
Remove a mapping from a script to a type (directly mapped, not via inheritance!)
Parameters:
  scriptId - id of the script
Parameters:
  typeId - id of the type
throws:
  FxApplicationException - on errors



removeTypeScriptMappingForEvent
void removeTypeScriptMappingForEvent(long scriptId, long typeId, FxScriptEvent event) throws FxApplicationException(Code)
Remove a mapping from a script to a type (directly mapped, not via inheritance!) for a specific script event
Parameters:
  scriptId - id of the script
Parameters:
  typeId - id of the type
Parameters:
  event - the script event
throws:
  FxApplicationException - on errors



runScript
FxScriptResult runScript(long scriptId, FxScriptBinding binding) throws FxApplicationException(Code)
Run a script with the given variable binding
Parameters:
  scriptId - id of the script to run
Parameters:
  binding - variable binding to use (all bound variables have to be serializable!) script result
throws:
  FxApplicationException - on errors



runScript
public FxScriptResult runScript(String name, FxScriptBinding binding, String code) throws FxApplicationException(Code)
Execute a script
Parameters:
  name - name of the script, extension is needed to choose interpreter
Parameters:
  binding - bindings to apply
Parameters:
  code - the script code last script evaluation result
throws:
  FxApplicationException - on errors



runScript
FxScriptResult runScript(long scriptId) throws FxApplicationException(Code)
Run a script
Parameters:
  scriptId - id of the script to run script result
throws:
  FxApplicationException - on errors



updateAssignmentScriptMappingForEvent
FxScriptMappingEntry updateAssignmentScriptMappingForEvent(long scriptId, long assignmentId, FxScriptEvent event, boolean active, boolean derivedUsage) throws FxApplicationException(Code)
Update a mapping for assignments
Parameters:
  scriptId - id of the script
Parameters:
  assignmentId - id of the assignment
Parameters:
  event - the script event
Parameters:
  active - mapping is active?
Parameters:
  derivedUsage - mapping used in derived assignments? the updated entry
throws:
  FxApplicationException - on errors



updateScriptCode
void updateScriptCode(long scriptId, String code) throws FxApplicationException(Code)
Convenience method to update a scripts code
Parameters:
  scriptId - requested script id
Parameters:
  code - the code
throws:
  FxApplicationException - on errors
See Also:   ScriptingEngine.updateScriptInfo(long,com.flexive.shared.scripting.FxScriptEvent,String,String,String,boolean)



updateScriptInfo
void updateScriptInfo(long scriptId, FxScriptEvent event, String name, String description, String code, boolean active) throws FxApplicationException(Code)
Update a scripts info
Parameters:
  scriptId - requested script id
Parameters:
  event - requested script event
Parameters:
  name - new name (or null if unchanged)
Parameters:
  description - new description (or null if unchanged)
Parameters:
  code - the code
Parameters:
  active - if the script is active
throws:
  FxApplicationException - on errors
See Also:   com.flexive.shared.scripting.FxScriptEvent



updateScriptInfo
void updateScriptInfo(FxScriptInfoEdit scriptInfo) throws FxApplicationException(Code)
Update script info
Parameters:
  scriptInfo - the edited script info
throws:
  com.flexive.shared.exceptions.FxApplicationException - on errors



updateTypeScriptMappingForEvent
FxScriptMappingEntry updateTypeScriptMappingForEvent(long scriptId, long typeId, FxScriptEvent event, boolean active, boolean derivedUsage) throws FxApplicationException(Code)
Update a mapping for types
Parameters:
  scriptId - id of the script
Parameters:
  typeId - id of the type
Parameters:
  event - the script event
Parameters:
  active - mapping is active?
Parameters:
  derivedUsage - mapping used in derived types? the updated entry
throws:
  FxApplicationException - on errors



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.