@Test public void testExecuteWithNoOrgIds() { assertEquals(new HashSet<Long>(), sut.execute(new ArrayList<Long>())); }
@Override @SuppressWarnings("unchecked") public Set<Long> execute(final Serializable ignored) { HashSet<Long> groupIds = new HashSet<Long>(); Query q = getEntityManager().createQuery("SELECT id FROM DomainGroup WHERE publicGroup = false"); groupIds.addAll(q.getResultList()); return groupIds; }
GetPrivateGroupIds extends ReadMapper<Serializable, Set<Long>> { @Override @SuppressWarnings("unchecked") public Set<Long> execute(final Serializable ignored) { HashSet<Long> groupIds = new HashSet<Long>(); Query q = getEntityManager().createQuery("SELECT id FROM DomainGroup WHERE publicGroup = false"); groupIds.addAll(q.getResultList()); return groupIds; } }
GetPrivateGroupIds extends ReadMapper<Serializable, Set<Long>> { @Override @SuppressWarnings("unchecked") public Set<Long> execute(final Serializable ignored) { HashSet<Long> groupIds = new HashSet<Long>(); Query q = getEntityManager().createQuery("SELECT id FROM DomainGroup WHERE publicGroup = false"); groupIds.addAll(q.getResultList()); return groupIds; }  }
GetPrivateGroupIds extends ReadMapper<Serializable, Set<Long>> { @Override @SuppressWarnings("unchecked") public Set<Long> execute(final Serializable ignored) { HashSet<Long> groupIds = new HashSet<Long>(); Query q = getEntityManager().createQuery("SELECT id FROM DomainGroup WHERE publicGroup = false"); groupIds.addAll(q.getResultList()); return groupIds; }  @Override @SuppressWarnings("unchecked") Set<Long> execute(final Serializable ignored); }
GetPrivateGroupIds extends ReadMapper<Serializable, Set<Long>> { @Override @SuppressWarnings("unchecked") public Set<Long> execute(final Serializable ignored) { HashSet<Long> groupIds = new HashSet<Long>(); Query q = getEntityManager().createQuery("SELECT id FROM DomainGroup WHERE publicGroup = false"); groupIds.addAll(q.getResultList()); return groupIds; }  @Override @SuppressWarnings("unchecked") Set<Long> execute(final Serializable ignored);  }