Java Doc for Module.java in  » Database-ORM » MMBase » org » mmbase » bridge » 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 » Database ORM » MMBase » org.mmbase.bridge 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.mmbase.bridge.Module

All known Subclasses:   org.mmbase.bridge.implementation.ModuleHandler,
Module
public interface Module extends Descriptor,Comparable<Module>(Code)
Modules are pieces of functionality that are not MMBase objects. e.g. Session, Mail, Upload and other functionality
author:
   Rob Vermeulen
author:
   Pierre van Rooden
version:
   $Id: Module.java,v 1.18 2007/02/10 15:47:42 nklasens Exp $




Method Summary
public  ParameterscreateParameters(String functionName)
     Creates a parameter list for a function.
public  CloudContextgetCloudContext()
    
public  FunctiongetFunction(String functionName)
     Returns a Fuction object. The object returned is a org.mmbase.util.functions.Function object. You need to explixitly cast the result to this object, since not all bridge implementations (i.e.
public  FieldValuegetFunctionValue(String functionName, List parameters)
     Executes a function on this module with the given parameters, and returns the result.
public  CollectiongetFunctions()
     Returns all the Function objects of this Module.
public  StringgetInfo(String command)
     Retrieve info from a module based on a command string. Similar to the $MOD command in SCAN.
Parameters:
  command - the info to obtain, i.e.
public  StringgetInfo(String command, ServletRequest req, ServletResponse resp)
     Retrieve info from a module based on a command string Similar to the $MOD command in SCAN.
Parameters:
  command - the info to obtain, i.e.
public  NodeListgetList(String command, Map parameters)
     Retrieve info (as a list of virtual nodes) from a module based on a command string. Similar to the LIST command in SCAN. The values retrieved are represented as fields of a virtual node, named following the fieldnames listed in the fields paramaters..
Parameters:
  command - the info to obtain, i.e.
public  NodeListgetList(String command, Map parameters, ServletRequest req, ServletResponse resp)
     Retrieve info from a module based on a command string Similar to the LIST command in SCAN. The values retrieved are represented as fields of a virtual node, named following the fieldnames listed in the fields paramaters..
Parameters:
  command - the info to obtain, i.e.
public  StringgetName()
     Retrieve the name of the module (in the default language defined in mmbaseroot.xml).
public  MapgetProperties()
    
public  StringgetProperty(String name)
     Retrieve a property of the module.
public  voidprocess(String command, Object parameter)
     Runs the command with the given parameter(s).
Parameters:
  command - the command to run, i.e.
public  voidprocess(String command, Object parameter, Map auxparameters)
     Runs the command with the given parameter(s).
Parameters:
  command - the command to run, i.e.
public  voidprocess(String command, Object parameter, Map auxparameters, ServletRequest req, ServletResponse resp)
     Runs the command with the given parameter(s).
Parameters:
  command - the command to run, i.e.



Method Detail
createParameters
public Parameters createParameters(String functionName)(Code)
Creates a parameter list for a function. The list can be filled with parameter values by either using the List set(int, Object) method, to set values for parameters by psoition, or by using the set(String, Object) method to set parameters by name.
This object can then be passed to the getFunctionValue method. Note that adding extra parameters (with the add(Object) method) won't work and may cause exceptions.
since:
   MMBase-1.8
Parameters:
  functionName - name of the function a org.mmbase.util.functions.Parameters object.
throws:
  NotFoundException - if the function does not exist



getCloudContext
public CloudContext getCloudContext()(Code)
Retrieves the CloudContext to which this module belongs CloudContext



getFunction
public Function getFunction(String functionName)(Code)
Returns a Fuction object. The object returned is a org.mmbase.util.functions.Function object. You need to explixitly cast the result to this object, since not all bridge implementations (i.e. the RMMCI) support this class.
since:
   MMBase-1.8
Parameters:
  functionName - name of the function a org.mmbase.util.functions.Function object.
throws:
  NotFoundException - if the function does not exist



getFunctionValue
public FieldValue getFunctionValue(String functionName, List parameters)(Code)
Executes a function on this module with the given parameters, and returns the result.
since:
   MMBase-1.8
Parameters:
  functionName - name of the function
Parameters:
  parameters - list with parameters for the fucntion the result value of executing the function
throws:
  NotFoundException - if the function does not exist



getFunctions
public Collection getFunctions()(Code)
Returns all the Function objects of this Module.
since:
   MMBase-1.8 a Collection of org.mmbase.util.functions.Function objects.



getInfo
public String getInfo(String command)(Code)
Retrieve info from a module based on a command string. Similar to the $MOD command in SCAN.
Parameters:
  command - the info to obtain, i.e. "USER-OS". info from a module



getInfo
public String getInfo(String command, ServletRequest req, ServletResponse resp)(Code)
Retrieve info from a module based on a command string Similar to the $MOD command in SCAN.
Parameters:
  command - the info to obtain, i.e. "USER-OS".
Parameters:
  req - the Request item to use for obtaining user information. For backward compatibility.
Parameters:
  resp - the Response item to use for redirecting users. For backward compatibility. info from a module



getList
public NodeList getList(String command, Map parameters)(Code)
Retrieve info (as a list of virtual nodes) from a module based on a command string. Similar to the LIST command in SCAN. The values retrieved are represented as fields of a virtual node, named following the fieldnames listed in the fields paramaters..
Parameters:
  command - the info to obtain, i.e. "USER-OS".
Parameters:
  parameters - a hashtable containing the named parameters of the list. info from a module (as a list of virtual nodes)



getList
public NodeList getList(String command, Map parameters, ServletRequest req, ServletResponse resp)(Code)
Retrieve info from a module based on a command string Similar to the LIST command in SCAN. The values retrieved are represented as fields of a virtual node, named following the fieldnames listed in the fields paramaters..
Parameters:
  command - the info to obtain, i.e. "USER-OS".
Parameters:
  parameters - a hashtable containing the named parameters of the list.
Parameters:
  req - the Request item to use for obtaining user information. For backward compatibility.
Parameters:
  resp - the Response item to use for redirecting users. For backward compatibility. info from a module (as a list of virtual nodes)



getName
public String getName()(Code)
Retrieve the name of the module (in the default language defined in mmbaseroot.xml). name of the module



getProperties
public Map getProperties()(Code)
Retrieve a copy of the module's properties a map of module properties
since:
   MMBase-1.7



getProperty
public String getProperty(String name)(Code)
Retrieve a property of the module.
Parameters:
  name - the name of the property the property value (null if not given)
since:
   MMBase-1.7



process
public void process(String command, Object parameter)(Code)
Runs the command with the given parameter(s).
Parameters:
  command - the command to run, i.e. "MESSAGE-UPDATE".
Parameters:
  parameter - the main parameter for the command. Depends on the command issued. Not allcommands make use of this parameter.



process
public void process(String command, Object parameter, Map auxparameters)(Code)
Runs the command with the given parameter(s).
Parameters:
  command - the command to run, i.e. "MESSAGE-UPDATE".
Parameters:
  parameter - the main parameter for the command. Depends on the command issued. Not allcommands make use of this parameter.
Parameters:
  auxparameters - additional parameters for this command.



process
public void process(String command, Object parameter, Map auxparameters, ServletRequest req, ServletResponse resp)(Code)
Runs the command with the given parameter(s).
Parameters:
  command - the command to run, i.e. "MESSAGE-UPDATE".
Parameters:
  parameter - the main parameter for the command. Depends on the command issued. Not allcommands make use of this parameter.
Parameters:
  auxparameters - additional parameters for this command.
Parameters:
  req - the Request item to use for obtaining user information. For backward compatibility.
Parameters:
  resp - the Response item to use for redirecting users. For backward compatibility.



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