Examples of BugException


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

    if (interactionListIdParam == null || !(interactionListIdParam instanceof Long)) {
      return null;
    }
    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

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

   *
   * @see evolaris.framework.sys.web.action.LocalizedAction#defaultMethod(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
   */
  @Override
  protected ActionForward defaultMethod(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) {
    throw new BugException("no default method for interaction action classes available; use enter or edit");
  }
View Full Code Here

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

      req.setAttribute("information1Title", resources.getMessage(locale,"smssvc.FragmentName"));
      req.setAttribute("information1Value",fragment.getFragmentName());
      req.setAttribute("information2Title", null)// second line not used
      req.getSession().setAttribute("interactionListType", "fragment")// required for cancelling
    } else {
      throw new BugException("can't do anything with list of type: " + interactionList.getClass().getName());
    }
   
    req.setAttribute("interactionList", interactionList);
    interactionListForm.setGroupId(interactionList.getGroup().getId());   
    req.getSession().setAttribute("groupId", interactionList.getGroup().getId());
View Full Code Here

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

  @Override
  protected void setNewInteractionAttributes(ActionForm form, HttpServletRequest req, long groupId,long applicationId) {
    InteractionListForm interactionListForm = (InteractionListForm) form;
    Long interactionListId = interactionListForm.getInteractionListId();
    if (interactionListId == null){
      throw new BugException("no interactionList id in form");
    }
    req.getSession().setAttribute("interactionListId", interactionListId);
    req.getSession().setAttribute("groupId", groupId);
    req.getSession().setAttribute("applicationId", applicationId);
    SmsDbManager smsDbManager = new SmsDbManager(locale,session);
View Full Code Here

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

    // get the current keyword/service from the session
    SmsDbManager smsDbManager = new SmsDbManager(locale,session);
    Object interactionListIdParameter = req.getSession().getAttribute("interactionListId");
    if (interactionListIdParameter == null || !(interactionListIdParameter instanceof Long)){
      throw new BugException("no interactionList id found for association");
    }
    long interactionListId = ((Long)interactionListIdParameter).longValue();
    if (interactionListId == -1){
      throw new BugException("interactionList id -1 in 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

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

    interactionListForm.setInteractionListId(null);
    interactionListForm.setInsertCommandEntryId(null);
    interactionListForm.setInsertionType(2);
    Object interactionListType = req.getSession().getAttribute("interactionListType");
    if (interactionListType == null || !(interactionListType instanceof String)){
      throw new BugException("invalid interaction list type");
    }
    // different cancel forwards according to interaction list type; must be extended for new interaction list types!
    if (interactionListType.equals("invocation")){
      return mapping.findForward("cancelledFromInvocationInteractions");
    } else if (interactionListType.equals("fragment")){
      return mapping.findForward("cancelledFromFragmentInteractions");
    } else {
      throw new BugException("invalid interaction list type `" + interactionListType + "`");
    }
  }
View Full Code Here

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

      } else if (sortCriterion.equalsIgnoreCase("operation")){
        sortCriterionDb = "operation";
      } else if (sortCriterion.equalsIgnoreCase("parameter")){
        sortCriterionDb = "parameter";
      } else {
        throw new BugException("can not sort according to criterion `" + sortCriterion + "`");
      }
    }
    List<InteractionLog> interactionLogs = interactionLogManager.getInteractionLogs(groupToDisplay, applicationToDisplay, sortCriterionDb, sortOrderDb);
   
    // paginating
View Full Code Here

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

  protected String stringFieldPropertyValue(String fieldPropertyName) {
    PropertyDescriptor propertyDescriptor;
    try {
      propertyDescriptor = new PropertyDescriptor(fieldPropertyName, this.getClass());
    } catch (IntrospectionException e) {
      throw new BugException("Exception during creation of property descriptor", e);
    }
    Method readMethod = propertyDescriptor.getReadMethod();
    if (readMethod == null || readMethod.getParameterTypes().length != 0 || readMethod.getReturnType() != String.class) {
      throw new BugException("read method of field property `" + fieldPropertyName + "` not usable.");
    }
    try {
      return (String) readMethod.invoke(this);
    } catch (Exception e) {
      throw new BugException("Exception during invocation of read method", e);
    }
  }
View Full Code Here

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

      Group gr = webUser.getGroup();
      Hibernate.initialize(gr);
      groupToDisplay = webUser.getGroup();
      groups[0] = groupToDisplay;
    } else { // role user - must not be allowed in struts-config
      throw new BugException("illegal role");
    }
   
    req.getSession().setAttribute("groups", groups);
    userImportForm.setGroupId(groupToDisplay.getId());
    userImportForm.setGroupName(groupToDisplay.getGroupname());
View Full Code Here

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

  }

  @Override
  public ActionForward cancel(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) {
    // cancel not possible here
    throw new BugException("cancel flag received in home action");
  }
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.