Package evolaris.framework.smsservices.business

Examples of evolaris.framework.smsservices.business.CommandEntryManager.evict()


      throw new InputException(getResources(req).getMessage(locale, "smssvc.editedInteractionDoesNotExistAnymore"))// may have been deleted
    }
   
    HttpCommandEntry httpCommandEntry = (HttpCommandEntry)commandEntry;
    checkAccessRights(req, httpCommandEntry.getGroup());
    commandEntryManager.evict(httpCommandEntry)// do not modify in this session yet (might be erroneous)

    httpCommandEntry.setSortLabel(f.getSortLabel());
    httpCommandEntry.setUrl(f.getUrl());
    httpCommandEntry.setNofEvaluatedResponseLetters(Integer.parseInt(f.getNofEvaluatedResponseLetters()))
    LOGGER.info("User " + UserManagerBase.toString(webUser) + ": http interaction entry with id: " + commandEntryId + " has been modified");
View Full Code Here


      throw new InputException(getResources(req).getMessage(locale, "smssvc.editedInteractionDoesNotExistAnymore"))// may have been deleted
    }
   
    BlogCommandEntry blogCommandEntry = (BlogCommandEntry)commandEntry;
    checkAccessRights(req, blogCommandEntry.getGroup());
    commandEntryManager.evict(blogCommandEntry)// do not modify in this session yet (might be erroneous)

    blogCommandEntry.setSortLabel(f.getSortLabel());
    if (f.getBlogId() > 0) {
      BlogManager blogMgr = new BlogManager(locale, session);
      Blog blog = blogMgr.getBlog(f.getBlogId());
View Full Code Here

    if (commandEntry == null || !(commandEntry instanceof IterateCommandEntry)){
      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

    if (commandEntry == null || !(commandEntry instanceof FragmentCommandEntry)){
      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

      throw new InputException(getResources(req).getMessage(locale, "smssvc.editedInteractionDoesNotExistAnymore"))// may have been deleted
    }

    BreakCommandEntry breakCommandEntry = (BreakCommandEntry)commandEntry;
    checkAccessRights(req, breakCommandEntry.getGroup());
    commandEntryManager.evict(breakCommandEntry)// do not modify in this session yet (might be erroneous)

    breakCommandEntry.setSortLabel(breakInteractionEnterOrEditForm.getSortLabel());
    breakCommandEntry.setResultString(breakInteractionEnterOrEditForm.getResultString().length() == 0?null:breakInteractionEnterOrEditForm.getResultString());
    breakCommandEntry.setTypeOfBreak(breakInteractionEnterOrEditForm.getTypeOfBreak());
    LOGGER.info("User " + req.getUserPrincipal().getName().toLowerCase() + ": Break  entry #" + commandEntryId + " has been modified to result value: " + breakCommandEntry.getResultString());
View Full Code Here

      throw new InputException(getResources(req).getMessage(locale, "smssvc.editedInteractionDoesNotExistAnymore"))// may have been deleted
    }
   
    UpcallCommandEntry upcallCommandEntry = (UpcallCommandEntry)commandEntry;
    checkAccessRights(req, upcallCommandEntry.getGroup());
    commandEntryManager.evict(upcallCommandEntry)// do not modify in this session yet (might be erroneous)
   
    upcallCommandEntry.setSortLabel(upcallForm.getSortLabel());
    upcallCommandEntry.setJndiName(upcallForm.getJndiName());
    upcallCommandEntry.setParameter1(upcallForm.getParameter1());
    upcallCommandEntry.setParameter2(upcallForm.getParameter2());
View Full Code Here

      throw new InputException(getResources(req).getMessage(locale, "smssvc.editedInteractionDoesNotExistAnymore"))// may have been deleted
    }

    ContentParseCommandEntry contentCommandEntry = (ContentParseCommandEntry)commandEntry;
    checkAccessRights(req, contentCommandEntry.getGroup());
    commandEntryManager.evict(contentCommandEntry)// do not modify in this session yet (might be erroneous)
    transferFormValuesIntoCommandEntry(f, contentCommandEntry);
    LOGGER.info("User " + req.getUserPrincipal().getName().toLowerCase() + ": modified content parser request entry #"+contentCommandEntry.getId());
    setCommandEntryInRequest(req, contentCommandEntry);
    return mapping.findForward("modified");
  }
View Full Code Here

      throw new InputException(getResources(req).getMessage(locale, "smssvc.editedInteractionDoesNotExistAnymore"))// may have been deleted
    }
    SmsCommandEntry smsCommandEntry = (SmsCommandEntry)commandEntry;
    Group group = smsCommandEntry.getGroup();
    checkAccessRights(req, group);
    commandEntryManager.evict(smsCommandEntry)// do not modify in this session yet (might be erroneous)

    String messageText = msgForm.getMessage();
    if (grossSmsMessageLength(messageText) > MAX_MESSAGE_TEXT_LENGTH){
      throw new InputException(getResources(req).getMessage(locale,"smssvc.messageLongerThan450characters"));
    }
View Full Code Here

      throw new InputException(getResources(req).getMessage(locale, "smssvc.editedInteractionDoesNotExistAnymore"))// may have been deleted
    }

    CommentCommandEntry commentCommandEntry = (CommentCommandEntry)commandEntry;
    checkAccessRights(req, commentCommandEntry.getGroup());
    commandEntryManager.evict(commentCommandEntry)// do not modify in this session yet (might be erroneous)

    commentCommandEntry.setSortLabel(f.getSortLabel());
    commentCommandEntry.setDescription(f.getComment().length() == 0?null:f.getComment());
    LOGGER.info("User " + req.getUserPrincipal().getName().toLowerCase() + ": comment entry #" + commandEntryId + " has been modified to comment value: " + commentCommandEntry.getDescription());
    setCommandEntryInRequest(req, commentCommandEntry);
View Full Code Here

      throw new InputException(getResources(req).getMessage(locale, "smssvc.editedInteractionDoesNotExistAnymore"))// may have been deleted
    }

    InteractionLogCommandEntry interactionLogCommandEntry = (InteractionLogCommandEntry)commandEntry;
    checkAccessRights(req, interactionLogCommandEntry.getGroup());
    commandEntryManager.evict(interactionLogCommandEntry)// do not modify in this session yet (might be erroneous)

    evaluateForm(req, interactionLogForm, interactionLogCommandEntry);
    LOGGER.info("User " + req.getUserPrincipal().getName().toLowerCase() + ": Interaction Log  entry #" + commandEntryId + " has been modified to operation: " + interactionLogCommandEntry.getOperation() + "; parameter: " + interactionLogCommandEntry.getParameter());
    setCommandEntryInRequest(req, interactionLogCommandEntry);
    return mapping.findForward("modified");
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.