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


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

ModelService
public class ModelService extends AbstractMap implements Serializable(Code)
Generic Service Model Class


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_FAIL
    
final public static  StringRESPOND_SUCCESS
    
final public static  StringRESPONSE_MESSAGE
    
final public static  StringSUCCESS_MESSAGE
    
final public static  StringSUCCESS_MESSAGE_LIST
    
final public static  StringTNS
    
final public static  StringXSD
    
public  booleanauth
    
protected  MapcontextInfo
    
protected  ListcontextParamList
    
public  booleandebug
    
public  StringdefaultEntityName
    
public  Stringdescription
    
public  StringengineName
    
public  booleanexport
    
public  StringfromLoader
    
public  SetimplServices
    
protected  booleaninheritedParameters
    
public  GroupModelinternalGroup
    
public  Stringinvoke
    
public  Stringlocation
    
public  intmaxRetry
    
final public static  Stringmodule
    
public  Stringname
    
public  StringnameSpace
    
public  Listnotifications
    
public  SetoverrideParameters
    
public  ListpermissionGroups
    
public  StringpermissionMainAction
    
public  StringpermissionResourceDesc
    
public  StringpermissionServiceName
    
public  booleanrequireNewTransaction
    
final public static  Stringresource
    
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  SetentrySet()
    
public  voidevalNotifications(DispatchContext dctx, Map context, Map result)
    
public  MapevalPermission(DispatchContext dctx, Map context)
     Evaluates permission-service for this service.
public  booleanevalPermissions(DispatchContext dctx, Map context)
     Evaluates permissions for a service.
public  Objectget(Object name)
    
public  SetgetAllParamNames()
    
public  intgetDefinedInCount()
    
public  intgetDefinedOutCount()
    
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, boolean internal)
     Gets the parameter names of the specified mode (IN/OUT/INOUT).
public  ListgetParameterNames(String mode, boolean optional)
    
public  voidgetWSDL(Definition def, String locationURI)
    
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, List errorMessages)
     Creates a new Map based from an existing map with just valid parameters.
public  MapmakeValid(Map source, String mode, boolean includeInternal, List errorMessages, Locale locale)
     Creates a new Map based from an existing map with just valid parameters.
public  Objectput(Object o1, Object o2)
    
public  StringtoString()
    
public  DocumenttoWSDL(String locationURI)
    
public static  booleantypeValidate(ModelParam.ModelParamValidator vali, Object testValue)
    
public  voidupdateDefaultValues(Map context, String mode)
    
public  voidvalidate(Map test, String mode, Locale locale)
    
public static  voidvalidate(Map info, Map test, boolean reverse, ModelService model, String mode, Locale locale)
    

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_FAIL
final public static String RESPOND_FAIL(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)



TNS
final public static String TNS(Code)



XSD
final public static String XSD(Code)



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



contextInfo
protected Map contextInfo(Code)
Context Information, a Map 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



fromLoader
public String fromLoader(Code)
The loader which loaded this definition



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)



internalGroup
public GroupModel internalGroup(Code)
Internal Service Group



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



maxRetry
public int maxRetry(Code)
Sets the max number of times this service will retry when failed (persisted async only)



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



notifications
public List notifications(Code)
List of email-notifications for this service



overrideParameters
public Set overrideParameters(Code)
Set of override parameters



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



permissionMainAction
public String permissionMainAction(Code)
Permission service main-action



permissionResourceDesc
public String permissionResourceDesc(Code)
Permission service resource-description



permissionServiceName
public String permissionServiceName(Code)
Permission service name



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



resource
final public static String resource(Code)



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)



entrySet
public Set entrySet()(Code)



evalNotifications
public void evalNotifications(DispatchContext dctx, Map context, Map result)(Code)
Evaluates notifications



evalPermission
public Map evalPermission(DispatchContext dctx, Map context)(Code)
Evaluates permission-service for this service.
Parameters:
  dctx - DispatchContext from the invoked service
Parameters:
  context - Map containing userLogin and context infromation result of permission service invocation



evalPermissions
public boolean evalPermissions(DispatchContext dctx, Map context)(Code)
Evaluates permissions for a service.
Parameters:
  dctx - DispatchContext from the invoked service
Parameters:
  context - Map containing userLogin infromation true if all permissions evaluate true.



get
public Object get(Object name)(Code)



getAllParamNames
public Set getAllParamNames()(Code)



getDefinedInCount
public int getDefinedInCount()(Code)



getDefinedOutCount
public int getDefinedOutCount()(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, boolean internal)(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
Parameters:
  internal - True to include internal parameters List of parameter names



getParameterNames
public List getParameterNames(String mode, boolean optional)(Code)



getWSDL
public void getWSDL(Definition def, String locationURI) throws WSDLException(Code)



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, List errorMessages)(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



makeValid
public Map makeValid(Map source, String mode, boolean includeInternal, List errorMessages, Locale locale)(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
Parameters:
  locale - locale to use to do some type conversion



put
public Object put(Object o1, Object o2)(Code)



toString
public String toString()(Code)



toWSDL
public Document toWSDL(String locationURI) throws WSDLException(Code)



typeValidate
public static boolean typeValidate(ModelParam.ModelParamValidator vali, Object testValue) throws GeneralException(Code)



updateDefaultValues
public void updateDefaultValues(Map context, String mode)(Code)



validate
public void validate(Map test, String mode, Locale locale) 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, Locale locale) 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.util.AbstractMap
public void clear()(Code)(Java Doc)
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean containsKey(Object key)(Code)(Java Doc)
public boolean containsValue(Object value)(Code)(Java Doc)
abstract public Set<Entry<K, V>> entrySet()(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
public V get(Object key)(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean isEmpty()(Code)(Java Doc)
public Set<K> keySet()(Code)(Java Doc)
public V put(K key, V value)(Code)(Java Doc)
public void putAll(Map<? extends K, ? extends V> m)(Code)(Java Doc)
public V remove(Object key)(Code)(Java Doc)
public int size()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public Collection<V> values()(Code)(Java Doc)

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.