Examples of toEntry()


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

  public ActionForward create(ActionMapping mapping, ActionForm form,HttpServletRequest req, HttpServletResponse resp)  {
    AccessCheckInteractionEnterOrEditForm accessCheckForm = (AccessCheckInteractionEnterOrEditForm)form;
    MessageResources resources = getResources(req);
    Group group = groupFromSession(req);
    checkAccessRights(req, group);
    AccessCheckCommandEntry accessCheckCommandEntry = accessCheckForm.toEntry(new AccessCheckCommandEntry(), group, locale, session, resources);
    LOGGER.info("User " + req.getUserPrincipal().getName().toLowerCase() + ": Created access check entry. id: " + accessCheckCommandEntry.getId() + " begin DateTime: " + accessCheckForm.getBeginDate() + " end DateTime: " + accessCheckForm.getEndDate());
    setCommandEntryInRequest(req, accessCheckCommandEntry);
    return mapping.findForward("created");
  }
 
View Full Code Here

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

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

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

    }
    EmailCommandEntry emailCommandEntry = (EmailCommandEntry)commandEntry;
    Group group = emailCommandEntry.getGroup();
    checkAccessRights(req, group);
    commandEntryManager.evict(emailCommandEntry)// do not modify in this session yet (might be erroneous)
    f.toEntry(emailCommandEntry, locale, session, getResources(req));
    LOGGER.info("User " + req.getUserPrincipal().getName().toLowerCase()
        + ": Modified message command entry #" + emailCommandEntry.getId()
        + "; label: " + emailCommandEntry.getSortLabel() + "; subject: " + emailCommandEntry.getSubject());
    setCommandEntryInRequest(req, emailCommandEntry);
    return mapping.findForward("modified");
View Full Code Here

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

    EmailCommandEntry emailCommandEntry = new EmailCommandEntry();
    Group group = groupFromSession(req);
    checkAccessRights(req, group);
    emailCommandEntry.setGroup(group);
    f.toEntry(emailCommandEntry, locale, session, getResources(req));
    LOGGER.info("User " + req.getUserPrincipal().getName().toLowerCase()
        + ": Created message command entry #" + emailCommandEntry.getId()
        + "; label: " + emailCommandEntry.getSortLabel() + "; with subject: " + emailCommandEntry.getSubject());
    setCommandEntryInRequest(req, emailCommandEntry);
    return mapping.findForward("created");
View Full Code Here

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

      throw new InputException(getResources(req).getMessage(locale, "admin.entryNotAvailable"));
    }
    checkAccessRights(req,oldFragment.getGroup(),null);
    req.getSession().setAttribute("oldInteractionListId", oldFragment.getId());
    Set<CommandEntry> commandEntries = oldFragment.getCommandEntries();
    Fragment editedFragment = f.toEntry(new Fragment(), locale, session, getResources(req));
   
    // check for fragment with the same name already here to avoid error messages after selecting the mapping
    SmsDbManager smsDbManager = new SmsDbManager(locale,session);
    Fragment existingFragment = smsDbManager.getFragment(f.getName(),editedFragment.getGroup());
    if (existingFragment != null){
View Full Code Here

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

   
    // reload references in current session
    Fragment newFragment = (Fragment)newEntry;
    f.initialize(newFragment,locale,session,getResources(req));
    newFragment = new Fragment();
    f.toEntry(newFragment, locale, session, getResources(req));
    checkAccessRights(req, newFragment.getGroup(),null);
   
    // group assignment is not editable => perform source to destination automatically
    mappingSet.add(new Entry(oldFragment.getGroup()), new Entry(newFragment.getGroup()));
   
View Full Code Here

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

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

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

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

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

      throw new InputException(getResources(req).getMessage(locale, "admin.entryNotAvailable"));
    }
    checkAccessRights(req,oldInvocation.getGroup(),null);
    req.getSession().setAttribute("oldInteractionListId", oldInvocation.getId());
    Set<CommandEntry> commandEntries = oldInvocation.getCommandEntries();
    Invocation editedInvocation = f.toEntry(new Invocation(), locale, session, getResources(req));
    SmsDbManager smsDbManager = new SmsDbManager(locale,session);
    req.getSession().setAttribute("newInteractionList", editedInvocation)// needed when we duplicate or come back
    smsDbManager.checkInvocationUniqueness(editedInvocation,false);
    smsDbManager.checkIfInvocationAllowed(editedInvocation,false);
   
View Full Code Here

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

   
    // reload references in current session
    Invocation newInvocation = (Invocation)newEntry;
    f.initialize(newInvocation,locale,session,getResources(req));
    newInvocation = new Invocation();
    f.toEntry(newInvocation, locale, session, getResources(req));
    checkAccessRights(req, newInvocation.getGroup(),null);
   
    // group assignment is not editable => perform source to destination automatically
    mappingSet.add(new Entry(oldInvocation.getGroup()), new Entry(newInvocation.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.