public class ServiceInstanceHelper extends Object
Constructor and Description |
---|
ServiceInstanceHelper() |
Modifier and Type | Method and Description |
---|---|
static <T extends BroadWorksUser> |
retrieveServiceInstances(BroadWorksServer broadWorksServer,
ServiceType serviceType,
Class<T> serviceClazz,
Consumer<User.UserGetServiceInstanceListInSystemRequest> criteriaConsumer)
Retrieves a list of Service Instances and populated them concurrently.
|
public static <T extends BroadWorksUser> List<T> retrieveServiceInstances(BroadWorksServer broadWorksServer, ServiceType serviceType, Class<T> serviceClazz, Consumer<User.UserGetServiceInstanceListInSystemRequest> criteriaConsumer) throws 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
RequestException
- A request exception is thrown if there is an issue while performing the BroadWorks requests.Copyright © 2017 ECG. All rights reserved.