class DefaultUserGroupDao implements UserGroupDao {

	@Override
	public List<UserGroupView> getUserGroupViews(final MultipleSearch<UserGroupView> request, final List<Long> groupsIds) {
		MultiplePagedSearch<List<Long>> search = new MultiplePagedSearch<>();
		search.setEntity(groupsIds);
		String querySql = userGroupViewQueryBuilder.build(search);
		Query<UserGroupView> query = new Query<UserGroupView>(request.getClazz(), querySql, request.getParameters());
		return persistenceManager.getMultipleResult(query);
	}

}