use of com.centurylink.mdw.model.value.user.WorkgroupList in project mdw-designer by CenturyLinkCloud.
the class UserDataAccessRest method getAllGroups.
public List<UserGroupVO> getAllGroups(boolean includeDeleted) throws DataAccessException {
try {
String pathWithArgs = "Workgroups?format=json";
if (includeDeleted)
pathWithArgs += "&includeDeleted=true";
String response = invokeResourceService(pathWithArgs);
return new WorkgroupList(response).getItems();
} catch (IOException ex) {
throw new DataAccessOfflineException(ex.getMessage(), ex);
} catch (Exception ex) {
throw new DataAccessException(ex.getMessage(), ex);
}
}
Aggregations