@Test public void testExecuteForPersonCoordinatingPublicGroup() { final Long personId = 42L; List<Long> groupIds = sut.execute(personId); assertEquals(0, groupIds.size()); }
@SuppressWarnings("unchecked") @Override public List<Long> execute(final Long inPersonId) { Query query = getEntityManager().createQuery( "SELECT g.id FROM DomainGroup g, Person p " + "WHERE g.publicGroup=false AND p.id=:personId AND " + "(p member of g.coordinators)"); query.setParameter("personId", inPersonId); return query.getResultList(); }
GetPrivateGroupIdsCoordinatedByPerson extends BaseArgDomainMapper<Long, List<Long>> { @SuppressWarnings("unchecked") @Override public List<Long> execute(final Long inPersonId) { Query query = getEntityManager().createQuery( "SELECT g.id FROM DomainGroup g, Person p " + "WHERE g.publicGroup=false AND p.id=:personId AND " + "(p member of g.coordinators)"); query.setParameter("personId", inPersonId); return query.getResultList(); } }
GetPrivateGroupIdsCoordinatedByPerson extends BaseArgDomainMapper<Long, List<Long>> { @SuppressWarnings("unchecked") @Override public List<Long> execute(final Long inPersonId) { Query query = getEntityManager().createQuery( "SELECT g.id FROM DomainGroup g, Person p " + "WHERE g.publicGroup=false AND p.id=:personId AND " + "(p member of g.coordinators)"); query.setParameter("personId", inPersonId); return query.getResultList(); }  }
GetPrivateGroupIdsCoordinatedByPerson extends BaseArgDomainMapper<Long, List<Long>> { @SuppressWarnings("unchecked") @Override public List<Long> execute(final Long inPersonId) { Query query = getEntityManager().createQuery( "SELECT g.id FROM DomainGroup g, Person p " + "WHERE g.publicGroup=false AND p.id=:personId AND " + "(p member of g.coordinators)"); query.setParameter("personId", inPersonId); return query.getResultList(); }  @SuppressWarnings("unchecked") @Override List<Long> execute(final Long inPersonId); }
GetPrivateGroupIdsCoordinatedByPerson extends BaseArgDomainMapper<Long, List<Long>> { @SuppressWarnings("unchecked") @Override public List<Long> execute(final Long inPersonId) { Query query = getEntityManager().createQuery( "SELECT g.id FROM DomainGroup g, Person p " + "WHERE g.publicGroup=false AND p.id=:personId AND " + "(p member of g.coordinators)"); query.setParameter("personId", inPersonId); return query.getResultList(); }  @SuppressWarnings("unchecked") @Override List<Long> execute(final Long inPersonId);  }