@ThingworxExtensionApiClass(since={6,6}) public interface IServiceProvider extends IPersistable
Modifier and Type | Method and Description |
---|---|
ServiceDefinitionCollection |
getInstancePublicServiceDefinitions() |
ServiceDefinition |
getInstanceServiceDefinition(java.lang.String serviceName) |
ServiceDefinitionCollection |
getInstanceServiceDefinitions() |
InfoTable |
processAPIServiceRequest(java.lang.String serviceName,
ValueCollection params)
|
InfoTable |
processServiceRequest(java.lang.String serviceName,
ValueCollection params)
|
getID, hasID
getDescription, getName
@ThingworxExtensionApiMethod(since={6,6}, canOverride=true, requiresSuper=true) InfoTable processServiceRequest(java.lang.String serviceName, ValueCollection params) throws java.lang.Exception
Processes an internal or reflected service request. Entities may call this method if they wish to invoke a service call directly on an entity. This method performs a service invoke authorization check against the current security context.
serviceName
- - The name of the service to invokeparams
- - A collection of parameter mappingsjava.lang.Exception
- If the security check fails, the service does not exist, or an error occurred during the execution of the service@ThingworxExtensionApiMethod(since={7,2,0}, canOverride=true, requiresSuper=true) InfoTable processAPIServiceRequest(java.lang.String serviceName, ValueCollection params) throws java.lang.Exception
Processes a service request invoked via the REST API. This method performs a service invoke authorization check against the current security context.
serviceName
- - The name of the service to invokeparams
- - A collection of parameter mappingsjava.lang.Exception
- If the security check fails, the service does not exist, or an error occurred during the execution of the service@ThingworxExtensionApiMethod(since={6,6}) ServiceDefinition getInstanceServiceDefinition(java.lang.String serviceName)
@ThingworxExtensionApiMethod(since={6,6}) ServiceDefinitionCollection getInstanceServiceDefinitions()
@ThingworxExtensionApiMethod(since={6,6}) ServiceDefinitionCollection getInstancePublicServiceDefinitions()