public class ServiceInstanceHelper extends Object
Constructor and Description |
---|
ServiceInstanceHelper() |
Modifier and Type | Method and Description |
---|---|
static <T extends co.ecg.alpaca.toolkit.model.BroadWorksUser> |
retrieveServiceInstances(co.ecg.alpaca.toolkit.model.BroadWorksServer broadWorksServer,
co.ecg.alpaca.toolkit.generated.enums.ServiceType serviceType,
Class<T> serviceClazz,
Consumer<co.ecg.alpaca.toolkit.generated.User.UserGetServiceInstanceListInSystemRequest> criteriaConsumer)
Retrieves a list of Service Instances and populated them concurrently.
|
public static <T extends co.ecg.alpaca.toolkit.model.BroadWorksUser> List<T> retrieveServiceInstances(co.ecg.alpaca.toolkit.model.BroadWorksServer broadWorksServer, co.ecg.alpaca.toolkit.generated.enums.ServiceType serviceType, Class<T> serviceClazz, Consumer<co.ecg.alpaca.toolkit.generated.User.UserGetServiceInstanceListInSystemRequest> criteriaConsumer) throws co.ecg.alpaca.toolkit.exception.RequestException
T
- The return type which is determined by the service class providedbroadWorksServer
- the BroadWorksServer
objectserviceType
- the ServiceType
to retrieveserviceClazz
- the class of the ServiceType. This must match the ServiceType
or a class cast exception will occur.criteriaConsumer
- a consumer that can be used to add additional criteria to the User.UserGetServiceInstanceListInSystemRequest
co.ecg.alpaca.toolkit.exception.RequestException
- A request exception is thrown if there is an issue while performing the BroadWorks requests.Copyright © 2016. All rights reserved.