Package com.centraview.valuelist

Examples of com.centraview.valuelist.ValueListVO


      System.out.println("[execute] Exception thrown."+ e);
      throw new ServletException(e);
    }
    valueList.setDataSource(dataSource);
   
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);

    // Got the list now set the display preferences on the ValueListDisplay Object.
    ArrayList buttonList = new ArrayList();
    buttonList.add(new Button("New View", "newCustomView", "c_goTo('/administration/new_custom_view.do?moduleName=" + moduleName +  "');", false));
    buttonList.add(new Button("Delete", "deleteTemplate", "vl_deleteList();", false));

    request.setAttribute("showNewButton", new Boolean(false));
   
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, true, false, true, true, true, true);
    listObject.setDisplay(displayParameters);
    request.setAttribute("valueList", listObject);

    return mapping.findForward(".view.administration.list_custom_view");
  }
View Full Code Here


      System.out.println("[execute] Exception thrown."+ e);
      throw new ServletException(e);
    }
    valueList.setDataSource(dataSource);
   
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);

    // Got the list now set the display preferences on the ValueListDisplay Object.
    ArrayList buttonList = new ArrayList();
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, true, false, true, true, true, true);
    listObject.setDisplay(displayParameters);

    request.setAttribute("valueList", listObject);
   
    return mapping.findForward(".view.administration.history_list");
  }
View Full Code Here

    } catch (CreateException e) {
      logger.error("[execute] Exception thrown." + e.getMessage(), e);
      throw new ServletException(e);
    }
    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
    // Got the list now set the display preferences on the ValueListDisplay
    // Object.
    ValueListDisplay displayParameters = new ValueListDisplay(new ArrayList(), false, false, true, true, true, true);
    listObject.setDisplay(displayParameters);
    request.setAttribute("showAdvancedSearch", new Boolean(false));
    request.setAttribute("listType", "CustomFields");
    request.setAttribute("showCustomViews", new Boolean(false));
    request.setAttribute("valueList", listObject);
    return mapping.findForward(".view.administration.list_custom_fields");
View Full Code Here

      valueList = (ValueList)CVUtility.setupEJB("ValueList", "com.centraview.valuelist.ValueListHome", dataSource);
    } catch (Exception e) {
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
    }
    ValueListVO listObject = valueList.getValueList(0, listParameters);
    ArrayList buttonList = new ArrayList();
    buttonList.add(new Button("Select", "select", "lu_addSelectedItemsToParent();", false));
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, false, false);
    // hack alert: radio is false checkboxes is true but we are relying on the "lookupType" listObject attribute
    // to print the right kinda checkboxes.
    displayParameters.setRadio(false);
    displayParameters.setCheckboxes(true);
    displayParameters.setPagingBar(true);
    listObject.setLookup(true);
    listObject.setLookupType("SecurityProfile");
    listObject.setDisplay(displayParameters);
    request.setAttribute("dynamicTitle", "Security Profile");
    request.setAttribute("lookupType", "Security Profile");
    request.setAttribute("hideSearch", new Boolean(true));
    request.setAttribute("hideMarketingList", new Boolean(true));
    request.setAttribute("customHeader", "Lookup: Security Profile");
View Full Code Here

      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
    }

    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
    listObject.setCurrentPageParameters(ValueListConstants.AMP+"rowId="+marketingListId);
    ArrayList buttonList = new ArrayList();

    ValueListDisplay displayParameters = null;
   listObject.setMoveTo(false);
     buttonList.add(new Button("Import Members", "Import Members", "vl_addMembers();", false));
  buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
  displayParameters = new ValueListDisplay(buttonList, true, true);

    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    listObject.setDisplay(displayParameters);
    // Stick the list on the request and then the custom list tag will handle
    // it.
    if (logger.isDebugEnabled()) {
      long debugTime = (System.currentTimeMillis() - start);
      logger.debug("[execute] End to End: " + debugTime + " ms");
      listObject.getParameters().setDebugTime(debugTime);
    }
    request.setAttribute("valueList", listObject);
    request.setAttribute("listType", "MarketingListMembers");
  } //end of buildSubList method
View Full Code Here

    } catch (CreateException e) {
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
    }
    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
    ArrayList buttonList = new ArrayList();

    ValueListDisplay displayParameters = null;
    if (actionType != null && actionType.equals("lookup")) {
    } else {
        buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
        buttonList.add(new Button("Duplicate", "duplicate", "vl_duplicateList();", false));
        displayParameters = new ValueListDisplay(buttonList, true, true);
    }

    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    listObject.setDisplay(displayParameters);
    // Stick the list on the request and then the custom list tag will handle
    // it.
    if (logger.isDebugEnabled()) {
      long debugTime = (System.currentTimeMillis() - start);
      logger.debug("[execute] End to End: " + debugTime + " ms");
      listObject.getParameters().setDebugTime(debugTime);
    }
    request.setAttribute("valueList", listObject);
    // For the searchBar
    String moduleID = (String)moduleList.get("InvoiceHistory");
    request.setAttribute("moduleId", moduleID);
View Full Code Here

    } catch (CreateException e) {
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
    }
    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
    ArrayList buttonList = new ArrayList();

    ValueListDisplay displayParameters = null;
    if (actionType != null && actionType.equals("lookup")) {
    } else {
      buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
      buttonList.add(new Button("Duplicate", "duplicate", "vl_duplicateList();", false));     
      displayParameters = new ValueListDisplay(buttonList, true, true);
    }
    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    listObject.setDisplay(displayParameters);
    // Stick the list on the request and then the custom list tag will handle
    // it.
    if (logger.isDebugEnabled()) {
      long debugTime = (System.currentTimeMillis() - start);
      logger.debug("[execute] End to End: " + debugTime + " ms");
      listObject.getParameters().setDebugTime(debugTime);
    }
    request.setAttribute("valueList", listObject);
    // For the searchBar
    String moduleID = (String)moduleList.get("Time Slips");
    request.setAttribute("moduleId", moduleID);
View Full Code Here

    } catch (CreateException e) {
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
    }
    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
    // Got the list now set the display preferences on the ValueListDisplay Object.
    ArrayList buttonList = new ArrayList();
    buttonList.add(new Button("New Template", "newTemplate", "c_goTo('/administration/new_template.do');", false));
    buttonList.add(new Button("Delete", "deleteTemplate", "vl_deleteList();", false));
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, true, false, true, true, true, true);
    listObject.setDisplay(displayParameters);
    request.setAttribute("valueList", listObject);
    TemplateUtil.setNavigation(request, "list");
    return mapping.findForward(".view.administration.template_list");
  }
View Full Code Here

      cvdl.executeUpdate();
    } finally {
      cvdl.destroy();
      cvdl = null;
    }
    return new ValueListVO(list, parameters);
  }
View Full Code Here

      cvdl.setSqlQuery("DROP TABLE listfilter");
      cvdl.executeUpdate();
    }
    cvdl.destroy();
    cvdl = null;
    return new ValueListVO(list, parameters);
  }   // end getInvoiceValueList() method
View Full Code Here

TOP

Related Classes of com.centraview.valuelist.ValueListVO

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.