Package evolaris.framework.async.business

Examples of evolaris.framework.async.business.SmsDbManager


 
  public ActionForward enterData(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) {
    InteractionListForm f = (InteractionListForm) form;
   
    Long interactionListId = f.getInteractionListId();
    SmsDbManager smsDbManager = new SmsDbManager(locale,session);
   
    InteractionList interactionList = smsDbManager.getInteractionList(interactionListId);
   
    if (interactionList == null){
      throw new InputException(getResources(req).getMessage(locale, "sys.entryNotAvailable"),"id = " + f.getInteractionListId(),null,null);
    }
   
View Full Code Here


   */
  public ActionForward enter(ActionMapping mapping, ActionForm form,HttpServletRequest req, HttpServletResponse resp)  {
    FragmentInteractionEnterOrEditForm f = (FragmentInteractionEnterOrEditForm)form;
    f.setSortLabel(sortLabelProposalFromSession(req));
    f.setFragmentId(-1)// none selected yet
    SmsDbManager smsDbManager = new SmsDbManager(locale,session);
    req.getSession().setAttribute("fragments", smsDbManager.getFragments(groupFromSession(req)));
    req.getSession().setAttribute("enterOrEdit", "enter");
    req.getSession().setAttribute("formActionPath", req.getParameter("formActionPath"));
    return mapping.findForward("enter");
  }
View Full Code Here

    if(commandEntry == null){
      throw new InputException(resources.getMessage(locale, "smssvc.editedInteractionDoesNotExistAnymore"));
    }
    checkAccessRights(req, commandEntry.getGroup());
    fragmentForm.initialize(commandEntry, locale, session, getResources(req));
    SmsDbManager smsDbManager = new SmsDbManager(locale,session);
    req.getSession().setAttribute("fragments", smsDbManager.getFragments(groupFromSession(req)));
    req.getSession().setAttribute("enterOrEdit", "edit");
    req.getSession().setAttribute("formActionPath", req.getParameter("formActionPath"));
    return mapping.findForward("edit");
  }
View Full Code Here

    Group groupToDisplay = getCurrentGroup(req);
    if (Boolean.TRUE.equals(f.getAllGroups()) && UserManager.isUserInRole(webUser, UserManagerBase.ADMINISTRATOR)) {
      groupToDisplay = null;
    }
   
    SmsDbManager smsDbManager = new SmsDbManager(locale, session);
    List<AllowedInvocation> allowedAllowedInvocations = smsDbManager.getAllowedInvocations(groupToDisplay);
    for (AllowedInvocation allowedInvocation : allowedAllowedInvocations) {
      Hibernate.initialize(allowedInvocation.getGroup());
    }
    req.setAttribute("allowedInvocations", allowedAllowedInvocations);
    return mapping.findForward("list");
View Full Code Here

   * @param id  allowedInvocation ID
   * @return allowedInvocation entry; null if not found
   */
  @Override
  protected AllowedInvocation entryFromDatabase(long id) {
    SmsDbManager smsDbManager = new SmsDbManager(locale,session);
    return smsDbManager.getAllowedInvocation(id);
  }
View Full Code Here

    entry.setGroup(group);
    if (f.getSortLabel() == null ||  f.getSortLabel().equals("")){
      throw new InputException(resources.getMessage(locale, "smssvc.labelMustBeProvided"));
    }
    entry.setSortLabel(f.getSortLabel());
    SmsDbManager smsDbManager = new SmsDbManager(locale,session);
    Fragment fragment = smsDbManager.getFragment(f.getFragmentId());
    if (fragment == null || fragment.getGroup() != entry.getGroup()){
      throw new InputException(resources.getMessage(locale, "smssvc.selectedFragmentDoesNotExistAnymore"));
    }
    entry.setFragment(fragment);
    entry.setOperationPrefix(f.getOperationPrefix().trim().length() == 0 ? null : f.getOperationPrefix());
View Full Code Here

  /**
   * @see evolaris.framework.sys.web.form.EnterEditDuplicateForm#createEntry(java.lang.Object, java.util.Locale, org.hibernate.Session)
   */
  @Override
  public void createEntry(AllowedInvocation allowedAllowedInvocation, Locale locale, Session session) {
    SmsDbManager smsDbManager = new SmsDbManager(locale,session);
    smsDbManager.createAllowedInvocation(allowedAllowedInvocation);
       }
View Full Code Here

  /**
   * @see evolaris.framework.sys.web.form.EnterEditDuplicateForm#modifyEntry(java.lang.Object, java.util.Locale, org.hibernate.Session)
   */
  @Override
  public void modifyEntry(AllowedInvocation allowedAllowedInvocation, Locale locale, Session session) {
    SmsDbManager smsDbManager = new SmsDbManager(locale,session);
    smsDbManager.modifyAllowedInvocation(allowedAllowedInvocation);
  }
View Full Code Here

  /* (non-Javadoc)
   * @see evolaris.framework.sys.web.form.EnterEditDuplicateForm#delete(java.lang.Object, java.util.Locale, org.hibernate.Session, org.apache.struts.util.MessageResources)
   */
  @Override
  public void deleteEntry(AllowedInvocation entry, Locale locale, Session session, MessageResources resources) {
    SmsDbManager mgr = new SmsDbManager(locale,session);
    mgr.deleteAllowedInvocation(entry);
       }
View Full Code Here

  /**
   * @see evolaris.framework.sys.web.form.EnterEditDuplicateForm#createEntry(java.lang.Object, java.util.Locale, org.hibernate.Session)
   */
  @Override
  public void createEntry(Invocation invocation, Locale locale, Session session) {
    SmsDbManager smsDbManager = new SmsDbManager(locale,session);
    smsDbManager.createInvocation(invocation);
       }
View Full Code Here

TOP

Related Classes of evolaris.framework.async.business.SmsDbManager

Copyright © 2018 www.massapicom. 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.