Package evolaris.framework.sys.business.exception

Examples of evolaris.framework.sys.business.exception.BugException


   
    ServiceConfirmationForm f = (ServiceConfirmationForm)form;
   
    String serviceType = f.getServiceType();
    if(serviceType == null || serviceType.equals("")){
      throw new BugException("invalid service type");
    }
   
    if(InteractionLogManager.EVENT_TIMER_SIMULATED.equals(serviceType)){
      if(f.getServiceId() != null && f.getServiceId().length() > 0){
        req.setAttribute("id", f.getServiceId());
        return mapping.findForward("timerEventInteractionsList");
      } else {
        return mapping.findForward("timerEventList");
      }
    } else if(InteractionLogManager.EVENT_SMS_SIMULATED.equals(serviceType)){
      if(f.getServiceId() != null && f.getServiceId().length() > 0){
        req.setAttribute("id", f.getServiceId());
        return mapping.findForward("backToInteractionsList");
      } else {
        return mapping.findForward("smsServiceList");
      }
    } else {
      throw new BugException("invalid service type");
    }
  }
View Full Code Here


   * @return the created or modified command entry
   */
  protected CommandEntry commandEntryFromRequest(HttpServletRequest req, CommandEntryManager commandEntryManager) {
    Object commandEntryParameter = req.getAttribute("commandEntry");
    if (commandEntryParameter == null || !(commandEntryParameter instanceof CommandEntry)){
      throw new BugException("no command entry returned by the interaction enter action");
    }
    CommandEntry commandEntry = (CommandEntry)commandEntryParameter;
    CommandEntryExtender commandEntryExtender = commandEntryManager.createCommandEntryExtender(commandEntry);
    commandEntryExtender.reloadReferences()// reload outdated references
    // check access rights
View Full Code Here

  public InteractionList interactionListFromSession(HttpServletRequest req) {
    // get the current event from the session
    Object interactionListIdParam = req.getSession().getAttribute("interactionListId");
    if (interactionListIdParam == null || !(interactionListIdParam instanceof Long)) {
      throw new BugException("no interactionList id found for association");
    }
    long interactionListId = ((Long)interactionListIdParam).longValue();
    if (interactionListId == -1) {
      throw new BugException("interactionList id -1 in session");
    }
    SmsDbManager smsDbManager = new SmsDbManager(locale,session);
    InteractionList interactionList = smsDbManager.getInteractionList(interactionListId);
    if(interactionList == null) {
      throw new ConfigurationException("There is no interactionList with id: " + interactionListId + " -> cannot add a new interaction");
View Full Code Here

  protected ActionForward duplicateBasedOnMappingSet(ActionMapping mapping, ActionForm form,HttpServletRequest req, HttpServletResponse resp){
    TimerEventEnterOrEditForm f = (TimerEventEnterOrEditForm)form;
    // get mappings from session
    Object mappingSetFromSession = req.getSession().getAttribute("mappingSet");
    if (!(mappingSetFromSession instanceof MappingSet)) {
      throw new BugException("invalid mappingSet parameter: " + mappingSetFromSession);
    }
    MappingSet mappingSet = (MappingSet) mappingSetFromSession;
    mappingSet.reload(locale, session);
   
    Object oldTimerEventId = req.getSession().getAttribute("oldInteractionListId");
View Full Code Here

TOP

Related Classes of evolaris.framework.sys.business.exception.BugException

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.