Package com.intel.mountwilson.datamodel

Examples of com.intel.mountwilson.datamodel.OSDataVO


   * @return
   */
  public static List<OSDataVO> getListToOSDataVO(List<OsData> osListFromApiClient){
    List<OSDataVO> list = new ArrayList<OSDataVO>();
    for (OsData data : osListFromApiClient) {
      OSDataVO osVo = new OSDataVO();
      osVo.setOsName(data.getName());
      osVo.setOsVersion(data.getVersion());
      osVo.setOsDescription(data.getDescription());
      list.add(osVo);
    }
    return list;
  }
View Full Code Here


   */
  public ModelAndView addOSData(HttpServletRequest req,HttpServletResponse res) {
    log.info("WLMDataController.addOSData >>");
    ModelAndView responseView = new ModelAndView(new JSONView());
    try {
      OSDataVO dataVONew = new OSDataVO();
     
      //Getting OS data from request parameter
      dataVONew.setOsName(req.getParameter("osName"));
      dataVONew.setOsVersion(req.getParameter("osVersion"));
      dataVONew.setOsDescription(req.getParameter("osDescription"));
     
      //Calling into Service Layer(OSClientServiceImpl) to add OS Data.
      responseView.addObject("result",osClientService.addOSInfo(dataVONew,getWhitelistService(req)));
    } catch (WLMPortalException e) {
      log.error("Error Wile Adding OS Data. Root cause "+e.getMessage());
View Full Code Here

     
      //Get Current select page no used in pagination.
      selectedPage = Integer.parseInt(req.getParameter("selectedPageNo"));
     
      //Get updated OS data from req object and create OSDataVO Object from it.
      OSDataVO dataVONew = new OSDataVO();
      dataVONew.setOsName(req.getParameter("osName"));
      dataVONew.setOsVersion(req.getParameter("osVer"));
      dataVONew.setOsDescription(req.getParameter("inputDec"));
     
      //Calling into Service Layer(OSClientServiceImpl) to update OS Data.
      boolean updateDone = osClientService.updateOSInfo(dataVONew,getWhitelistService(req));
     
      // Once OS data is updated, get List of all OS for a current page to show while pagination. 
View Full Code Here

    log.info("WLMDataController.deleteOSData >>");
    ModelAndView responseView = new ModelAndView(new JSONView());
    int selectedPage ;
    try {
      selectedPage = Integer.parseInt(req.getParameter("selectedPageNo"));
      OSDataVO dataVONew = new OSDataVO();
      dataVONew.setOsName(req.getParameter("osName"));
      dataVONew.setOsVersion(req.getParameter("osVer"));
      dataVONew.setOsDescription(req.getParameter("inputDec"));
     
      boolean updateDone = osClientService.deleteOS(dataVONew,getWhitelistService(req));
      if (updateDone) {
        Map<Integer, List<OSDataVO>> mapOfData = getPartitionListOfAllOS(req);
       
View Full Code Here

TOP

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

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.