Package com.intel.mountwilson.datamodel

Examples of com.intel.mountwilson.datamodel.OEMDataVO


  }

  public static List<OEMDataVO> getListToOEMDataVO(List<OemData> oemList) {
    List<OEMDataVO> list = new ArrayList<OEMDataVO>();
    for (OemData data : oemList) {
      OEMDataVO osVo = new OEMDataVO();
      osVo.setOemName(data.getName());
      osVo.setOemDescription(data.getDescription());
      list.add(osVo);
    }
    return list;
  }
View Full Code Here


  public ModelAndView addOEMData(HttpServletRequest req,HttpServletResponse res) {
    log.info("WLMDataController.addOEMData>>");
    ModelAndView responseView = new ModelAndView(new JSONView());
   
    try {
      OEMDataVO dataVONew = new OEMDataVO();
      dataVONew.setOemName(req.getParameter("oemName"));
      dataVONew.setOemDescription(req.getParameter("oemDescription"));
     
      System.out.println("New OEM data >>> "+dataVONew.toString());
      responseView.addObject("result",oemClientService.addOEMInfo(dataVONew,getWhitelistService(req)));
     
    } catch (WLMPortalException e) {
      log.error("Error Wile Adding OEM Data. Root cause "+e.getStackTrace());
      responseView.addObject("result",false);
View Full Code Here

    log.info("WLMDataController.updateOEMData >>");
    ModelAndView responseView = new ModelAndView(new JSONView());
    int selectedPage ;
    try {
      selectedPage = Integer.parseInt(req.getParameter("selectedPageNo"));
      OEMDataVO dataVONew = new OEMDataVO();
      dataVONew.setOemName(req.getParameter("oemName"));
      dataVONew.setOemDescription(req.getParameter("inputDec"));
      boolean updateDone = oemClientService.updateOEMInfo(dataVONew,getWhitelistService(req));
      if (updateDone) {
        Map<Integer, List<OEMDataVO>> mapOfData = getPartitionListOfAllOEM(req);
       
        responseView.addObject("OEMDataVo", mapOfData.get(selectedPage));
View Full Code Here

    log.info("WLMDataController.deleteOEMData >>");
    ModelAndView responseView = new ModelAndView(new JSONView());
    int selectedPage ;
    try {
      selectedPage = Integer.parseInt(req.getParameter("selectedPageNo"));
      OEMDataVO dataVONew = new OEMDataVO();
      dataVONew.setOemName(req.getParameter("oemName"));
      //dataVONew.setOemDescription(req.getParameter("inputDec"));
      boolean updateDone = oemClientService.deleteOEM(dataVONew,getWhitelistService(req));
      if (updateDone) {
        Map<Integer, List<OEMDataVO>> mapOfData = getPartitionListOfAllOEM(req);
       
View Full Code Here

TOP

Related Classes of com.intel.mountwilson.datamodel.OEMDataVO

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.