Java Doc for ModelService.java in  » ERP-CRM-Financial » SourceTap-CRM » org » ofbiz » service » 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 » ERP CRM Financial » SourceTap CRM » org.ofbiz.service 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.ofbiz.service.ModelService

ModelService
public class ModelService (Code)
Generic Service Model Class
author:
   Andy Zeneski
author:
   David E. Jones
version:
   $Revision: 1.9 $
since:
   2.0


Field Summary
final public static  StringERROR_MESSAGE
    
final public static  StringERROR_MESSAGE_LIST
    
final public static  StringERROR_MESSAGE_MAP
    
final public static  StringIN_PARAM
    
final public static  StringOUT_PARAM
    
final public static  StringRESPOND_ERROR
    
final public static  StringRESPOND_SUCCESS
    
final public static  StringRESPONSE_MESSAGE
    
final public static  StringSUCCESS_MESSAGE
    
final public static  StringSUCCESS_MESSAGE_LIST
    
public  booleanauth
    
protected  MapcontextInfo
    
protected  ListcontextParamList
    
public  booleandebug
    
public  StringdefaultEntityName
    
public  Stringdescription
    
public  StringengineName
    
public  booleanexport
    
public  SetimplServices
    
protected  booleaninheritedParameters
    
public  Stringinvoke
    
public  Stringlocation
    
final public static  Stringmodule
    
public  Stringname
    
public  StringnameSpace
    
public  SetoverrideParameters
    
public  ListpermissionGroups
    
public  booleanrequireNewTransaction
    
public  inttransactionTimeout
    
public  booleanuseTransaction
    
public  booleanvalidate
    

Constructor Summary
public  ModelService()
    
public  ModelService(ModelService model)
    

Method Summary
public  voidaddParam(ModelParam param)
     Adds a parameter definition to this service; puts on list in order added then sorts by order if specified.
public  voidaddParamClone(ModelParam param)
    
public  booleancontainsPermissions()
    
public  StringdebugInfo()
    
public  booleanevalPermissions(Security security, GenericValue userLogin)
     Evaluates permissions for a service.
public  SetgetAllParamNames()
    
public  ListgetInModelParamList()
     Returns a list of ModelParam objects in the order they were defined when the service was created.
public  SetgetInParamNames()
    
public  ListgetInParameterSequence(Map source)
     Gets a list of required IN parameters in sequence.
public  ListgetModelParamList()
     Returns a list of ModelParam objects in the order they were defined when the service was created.
public  SetgetOutParamNames()
    
public  ModelParamgetParam(String name)
    
public  ListgetParameterNames(String mode, boolean optional)
     Gets the parameter names of the specified mode (IN/OUT/INOUT).
public  booleaninheritedParameters()
    
public synchronized  voidinterfaceUpdate(DispatchContext dctx)
    
public  MapmakeValid(Map source, String mode)
     Creates a new Map based from an existing map with just valid parameters.
public  MapmakeValid(Map source, String mode, boolean includeInternal)
     Creates a new Map based from an existing map with just valid parameters.
public  StringtoString()
    
public  voidvalidate(Map test, String mode)
    
public static  voidvalidate(Map info, Map test, boolean reverse, ModelService model, String mode)
    

Field Detail
ERROR_MESSAGE
final public static String ERROR_MESSAGE(Code)



ERROR_MESSAGE_LIST
final public static String ERROR_MESSAGE_LIST(Code)



ERROR_MESSAGE_MAP
final public static String ERROR_MESSAGE_MAP(Code)



IN_PARAM
final public static String IN_PARAM(Code)



OUT_PARAM
final public static String OUT_PARAM(Code)



RESPOND_ERROR
final public static String RESPOND_ERROR(Code)



RESPOND_SUCCESS
final public static String RESPOND_SUCCESS(Code)



RESPONSE_MESSAGE
final public static String RESPONSE_MESSAGE(Code)



SUCCESS_MESSAGE
final public static String SUCCESS_MESSAGE(Code)



SUCCESS_MESSAGE_LIST
final public static String SUCCESS_MESSAGE_LIST(Code)



auth
public boolean auth(Code)
Does this service require authorization



contextInfo
protected Map contextInfo(Code)
Context Information, a list of parameters used by the service, contains ModelParam objects



contextParamList
protected List contextParamList(Code)
Context Information, a list of parameters used by the service, contains ModelParam objects



debug
public boolean debug(Code)
Enable verbose debugging when calling this service



defaultEntityName
public String defaultEntityName(Code)
The default Entity to use for auto-attributes



description
public String description(Code)
The description of this service



engineName
public String engineName(Code)
The name of the service engine



export
public boolean export(Code)
Can this service be exported via RPC, RMI, SOAP, etc



implServices
public Set implServices(Code)
Set of services this service implements



inheritedParameters
protected boolean inheritedParameters(Code)
Flag to say if we have pulled in our addition parameters from our implemented service(s)



invoke
public String invoke(Code)
The method or function to invoke for this service



location
public String location(Code)
The package name or location of this service



module
final public static String module(Code)



name
public String name(Code)
The name of this service



nameSpace
public String nameSpace(Code)
The namespace of this service



overrideParameters
public Set overrideParameters(Code)
Set of override parameters



permissionGroups
public List permissionGroups(Code)
List of permission groups for service invocation



requireNewTransaction
public boolean requireNewTransaction(Code)
Require a new transaction for this service



transactionTimeout
public int transactionTimeout(Code)
Override the default transaction timeout, only works if we start the transaction



useTransaction
public boolean useTransaction(Code)
Create a transaction for this service (if one is not already in place...)?



validate
public boolean validate(Code)
Validate the context info for this service




Constructor Detail
ModelService
public ModelService()(Code)



ModelService
public ModelService(ModelService model)(Code)




Method Detail
addParam
public void addParam(ModelParam param)(Code)
Adds a parameter definition to this service; puts on list in order added then sorts by order if specified.



addParamClone
public void addParamClone(ModelParam param)(Code)
Adds a clone of a parameter definition to this service



containsPermissions
public boolean containsPermissions()(Code)



debugInfo
public String debugInfo()(Code)



evalPermissions
public boolean evalPermissions(Security security, GenericValue userLogin)(Code)
Evaluates permissions for a service.
Parameters:
  security - The security object to use for permission checking
Parameters:
  userLogin - The logged in user's value object true if all permissions evaluate true.



getAllParamNames
public Set getAllParamNames()(Code)



getInModelParamList
public List getInModelParamList()(Code)
Returns a list of ModelParam objects in the order they were defined when the service was created.



getInParamNames
public Set getInParamNames()(Code)



getInParameterSequence
public List getInParameterSequence(Map source)(Code)
Gets a list of required IN parameters in sequence. A list of required IN parameters in the order which they were defined.



getModelParamList
public List getModelParamList()(Code)
Returns a list of ModelParam objects in the order they were defined when the service was created.



getOutParamNames
public Set getOutParamNames()(Code)



getParam
public ModelParam getParam(String name)(Code)
Gets the ModelParam by name
Parameters:
  name - The name of the parameter to get ModelParam object with the specified name



getParameterNames
public List getParameterNames(String mode, boolean optional)(Code)
Gets the parameter names of the specified mode (IN/OUT/INOUT). The parameters will be returned in the order specified in the file. Note: IN and OUT will also contains INOUT parameters.
Parameters:
  mode - The mode (IN/OUT/INOUT)
Parameters:
  optional - True if to include optional parameters List of parameter names



inheritedParameters
public boolean inheritedParameters()(Code)
Test if we have already inherited our interface parameters boolean



interfaceUpdate
public synchronized void interfaceUpdate(DispatchContext dctx) throws GenericServiceException(Code)
Run the interface update and inherit all interface parameters
Parameters:
  dctx - The DispatchContext to use for service lookups



makeValid
public Map makeValid(Map source, String mode)(Code)
Creates a new Map based from an existing map with just valid parameters. Tries to convert parameters to required type.
Parameters:
  source - The source map
Parameters:
  mode - The mode which to build the new map



makeValid
public Map makeValid(Map source, String mode, boolean includeInternal)(Code)
Creates a new Map based from an existing map with just valid parameters. Tries to convert parameters to required type.
Parameters:
  source - The source map
Parameters:
  mode - The mode which to build the new map
Parameters:
  includeInternal - When false will exclude internal fields



toString
public String toString()(Code)



validate
public void validate(Map test, String mode) throws ServiceValidationException(Code)
Validates a Map against the IN or OUT parameter information
Parameters:
  test - The Map object to test
Parameters:
  mode - Test either mode IN or mode OUT



validate
public static void validate(Map info, Map test, boolean reverse, ModelService model, String mode) throws ServiceValidationException(Code)
Validates a map of name, object types to a map of name, objects
Parameters:
  info - The map of name, object types
Parameters:
  test - The map to test its value types.
Parameters:
  reverse - Test the maps in reverse.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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