Beispiel #1
0
 public void onDisplayAll() {
   for (JournalGroup grp : groups) {
     for (JournalElement elt : grp.getElements()) {
       if (!summaryList.contains(elt.getId())) summaryList.add(elt.getId());
     }
   }
   if (request.isXHR()) {
     ajaxResponseRenderer.addRender(journalZone);
   }
 }
Beispiel #2
0
  private JournalElement getElementFromGroup(String eltId, JournalGroup grp) {
    JournalElement e = alias(JournalElement.class);
    JournalElement elt =
        from($(e), grp.getElements()).where($(e.getId()).eq(eltId)).uniqueResult($(e));

    return elt;
  }
Beispiel #3
0
 private void createElement(JournalElement elt, JournalGroup grp) {
   group = grp;
   if (elementDeletedList.contains(elt.getId())) elementDeletedList.remove(elt.getId());
   group.add(elt);
   element = elt;
   elementEditedId = element.getId();
   if (request.isXHR()) ajaxResponseRenderer.addRender(journalZone);
 }
Beispiel #4
0
 private JournalGroup getGroupFromGroupsList(String gpId) {
   JournalGroup g = alias(JournalGroup.class);
   JournalGroup grp = from($(g), groups).where($(g.getId()).eq(gpId)).uniqueResult($(g));
   return grp;
 }
Beispiel #5
0
 public String getGroupZoneId() {
   return "group_" + group.getId();
 }