class HibernateGroupDAO extends HibernatePersistentObjectDAO<Group> implements GroupDAO {

	@Override
	public Collection<String> findAllGroupNames(long tenantId) {
		Collection<String> coll = new ArrayList<String>();

		try {
			Collection<Group> coll2 = findAll();
			for (Group group : coll2) {
				if (group.getTenantId() == tenantId)
					coll.add(group.getName());
			}
		} catch (Throwable e) {
			log.error(e.getMessage());
		}

		return coll;
	}

	private  HibernateGroupDAO();

}