public class ServiceHelper extends Object
Constructor and Description |
---|
ServiceHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
authorizeAndAssignService(BroadWorksUser user,
UserService service)
Authorizes and Assigns a UserService at the ServiceProvider, Group, and
User level.
|
static <T extends BroadWorksUser> |
getAllUsersWithService(BroadWorksServer bws,
List<T> users,
UserService service)
Populates a list of User objects using asynchronous calls to perform the
population in an efficient manner
|
static boolean |
serviceIsAssigned(User user,
UserService service)
Checks if a UserService is assigned to a User.
|
public static void authorizeAndAssignService(BroadWorksUser user, UserService service) throws HelperException
user
- The user to assignservice
- The UserService to assignHelperException
- Thrown if the parameters are NULL.public static <T extends BroadWorksUser> List<T> getAllUsersWithService(BroadWorksServer bws, List<T> users, UserService service) throws HelperException
bws
- The BroadWorksServer connection to use for the requestsusers
- The list of Users to populateHelperException
- Thrown if an error occurs while retrieving users.public static boolean serviceIsAssigned(User user, UserService service) throws HelperException
user
- The user to checkservice
- The UserService to checkHelperException
- Thrown if an error occurs while check service assignment.Copyright © 2017 ECG. All rights reserved.