Examples of toEntry()


Examples of evolaris.platform.smssvc.web.form.IterateInteractionEnterOrEditForm.toEntry()

  public ActionForward create(ActionMapping mapping, ActionForm form,HttpServletRequest req, HttpServletResponse resp)  {
    IterateInteractionEnterOrEditForm f = (IterateInteractionEnterOrEditForm)form;
    MessageResources resources = getResources(req);
    Group group = groupFromSession(req);
    checkAccessRights(req, group);
    IterateCommandEntry iterateCommandEntry = f.toEntry(new IterateCommandEntry(), group, locale, session, resources);
    LOGGER.info("User " + req.getUserPrincipal().getName().toLowerCase() + ": Created iterate entry #" + iterateCommandEntry.getId());
    setCommandEntryInRequest(req, iterateCommandEntry);
    return mapping.findForward("created");
  }
 
View Full Code Here

Examples of evolaris.platform.smssvc.web.form.IterateInteractionEnterOrEditForm.toEntry()

      throw new InputException(getResources(req).getMessage(locale, "smssvc.editedInteractionDoesNotExistAnymore"))// may have been deleted
    }
    IterateCommandEntry iterateCommandEntry = (IterateCommandEntry)commandEntry;
    checkAccessRights(req, iterateCommandEntry.getGroup());
    commandEntryManager.evict(iterateCommandEntry)// do not modify in this session yet (might be erroneous)
    f.toEntry(iterateCommandEntry, iterateCommandEntry.getGroup(), locale, session, resources);
    LOGGER.info("User " + req.getUserPrincipal().getName().toLowerCase() + ": Command Entry with id: " + commandEntryId + " has been modified");
    setCommandEntryInRequest(req, iterateCommandEntry);
    return mapping.findForward("modified");
  }
 
View Full Code Here

Examples of evolaris.platform.smssvc.web.form.TimerEventEnterOrEditForm.toEntry()

    }
    checkAccessRights(req,oldTimerEvent.getGroup(),null);
    req.getSession().setAttribute("oldInteractionListId", oldTimerEvent.getId());
    Set<CommandEntry> commandEntries = oldTimerEvent.getCommandEntries();
    f.setOwningUserId(webUser.getId());
    TimerEvent editedTimerEvent = f.toEntry(new TimerEvent(), locale, session, getResources(req));
    req.getSession().setAttribute("newTimerEvent", editedTimerEvent)// needed when we duplicate or come back
   
    // mapping from command entries of the duplication source
    MappingSet mappingSet = new MappingSet(commandEntries,editedTimerEvent.getGroup(), locale, session);
   
View Full Code Here

Examples of evolaris.platform.smssvc.web.form.TimerEventEnterOrEditForm.toEntry()

   
    // reload references in current session
    TimerEvent newTimerEvent = (TimerEvent)newEntry;
    f.initialize(newTimerEvent,locale,session,getResources(req));
    newTimerEvent = new TimerEvent();
    f.toEntry(newTimerEvent, locale, session, getResources(req));
    checkAccessRights(req, newTimerEvent.getGroup(),null);
   
    // group assignment is not editable => perform source to destination automatically
    mappingSet.add(new Entry(oldTimerEvent.getGroup()), new Entry(newTimerEvent.getGroup()));
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.