@java.lang.SuppressWarnings("unused")
public interface ServiceFacade
ServiceFacade Interface
| Type Params | Return Type | Name and description |
|---|---|---|
|
public ServiceCallAsync |
async()Get a service caller to call a service asynchronously. |
|
public java.util.Map<java.lang.String, java.lang.Object> |
callJsonRpc(java.lang.String location, java.lang.String method, java.util.Map<java.lang.String, java.lang.Object> parameters)Call a JSON remote service. |
|
public ServiceCallJob |
job(java.lang.String jobName)Get a service caller to call a service job. |
|
public void |
registerCallback(java.lang.String serviceName, ServiceCallback serviceCallback)Register a callback listener on a specific service. |
|
public RestClient |
rest()Get a RestClient instance to call remote REST services |
|
public ServiceCallSpecial |
special()Get a service caller for special service calls such as on commit and on rollback of current transaction. |
|
public ServiceCallSync |
sync()Get a service caller to call a service synchronously. |
Get a service caller to call a service asynchronously.
Call a JSON remote service. For Moqui services the location will be something like "http://hostname/rpc/json".
Get a service caller to call a service job.
jobName - The name of the job. There must be a moqui.service.job.ServiceJob record for this jobName.Register a callback listener on a specific service.
serviceName - Name of the service to run. The combined service name, like: "\${path}.\${verb}\${noun}". To
explicitly separate the verb and noun put a hash (#) between them, like: "\${path}.\${verb}#\${noun}".serviceCallback - The callback implementation.Get a RestClient instance to call remote REST services
Get a service caller for special service calls such as on commit and on rollback of current transaction.
Get a service caller to call a service synchronously.