Package com.intel.mountwilson.util

Examples of com.intel.mountwilson.util.JSONView


   * @return
   */
  public ModelAndView getDashBoardData(HttpServletRequest req,HttpServletResponse res) {
    log.info("DemoPortalDataController.getDashBoardData >>");
    Map<Integer, List<HostDetailsEntityVO>> map =null;
    ModelAndView responseView = new ModelAndView(new JSONView());
    try {
      //Get map view for All Host based on the value of Page_NO(this values is available from TDPConfig)
      map = getAllHostDetailsFromDB(req);
     
      //calling into a Service layer to get trust status for Host on Page No 1(using map.get(1)).
View Full Code Here


   * @param res
   * @return
   */
  public ModelAndView getHostTrustSatusForPageNo(HttpServletRequest req,HttpServletResponse res) {
    log.info("DemoPortalDataController.getHostTrustSatusForPageNo >>");
    ModelAndView responseView = new ModelAndView(new JSONView());
    try {
      //getting selected Page No.
      int selectedPage = Integer.parseInt(req.getParameter("pageNo"));
      HttpSession session = req.getSession();
      @SuppressWarnings("unchecked")
View Full Code Here

   * @param res (HttpServletResponse Object)
   * @return
   */
  public ModelAndView getHostTrustStatus(HttpServletRequest req,HttpServletResponse res) {
    log.info("DemoPortalDataController.getHostTrustStatus >>");
    ModelAndView responseView = new ModelAndView(new JSONView());
    try {
      responseView.addObject("hostVo", demoPortalServices.getSingleHostTrust(req.getParameter("hostName"),getAttestationService(req,AttestationService.class),getTrustedCertificates(req)));
    } catch (DemoPortalException e) {
      log.error("getHostTrustStatus: " + e.toString());
      e.printStackTrace();
View Full Code Here

   * @param res (HttpServletResponse Object)
   * @return
   */
  public ModelAndView getAllOemInfo(HttpServletRequest req,HttpServletResponse res) {
    log.info("DemoPortalDataController.getAllOemInfo >>");
    ModelAndView responseView = new ModelAndView(new JSONView());
    try {
      responseView.addObject("oemInfo", demoPortalServices.getAllOemInfo(getAttestationService(req,ApiClient.class)));
    } catch (DemoPortalException e) {
      log.error(e.toString());
      e.printStackTrace();
View Full Code Here

   * @param res (HttpServletResponse Object)
   * @return
   */
  public ModelAndView getOSVMMInfo(HttpServletRequest req,HttpServletResponse res) {
    log.info("DemoPortalDataController.getOSVMMInfo >>");
    ModelAndView responseView = new ModelAndView(new JSONView());
    try {
      responseView.addObject("osInfo", demoPortalServices.getOSAndVMMInfo(getAttestationService(req,ApiClient.class)));
    } catch (DemoPortalException e) {
      log.error(e.toString());
      e.printStackTrace();
View Full Code Here

    return responseView;
  }
 
  public ModelAndView saveNewHostInfo(HttpServletRequest req,HttpServletResponse res) {
    log.info("WLMDataController.saveNewHostInfo >>");
    ModelAndView responseView = new ModelAndView(new JSONView());
    String hostObject = null;
    boolean newhost = false;
      try {
        hostObject = req.getParameter("hostObject");
        newhost = Boolean.parseBoolean(req.getParameter("newhost"));
View Full Code Here

   * @param res (HttpServletResponse Object)
   * @return
   */
  public ModelAndView getInfoForHostID(HttpServletRequest req,HttpServletResponse res) {
    log.info("DemoPortalDataController.getInfoForHostID >>");
    ModelAndView responseView = new ModelAndView(new JSONView());
    try {
      String hostName = req.getParameter("hostName");
      responseView.addObject("hostData", demoPortalServices.getSingleHostDetailFromDB(hostName,getAttestationService(req,AttestationService.class)));
    } catch (Exception e) {
      log.error(e.toString());
View Full Code Here

   * @param res (HttpServletResponse Object)
   * @return
   */
  public ModelAndView deleteHostDetails(HttpServletRequest req,HttpServletResponse res) {
    log.info("DemoPortalDataController.deleteHostDetails >>");
    ModelAndView responseView = new ModelAndView(new JSONView());
    int selectedPage ;
    try {
      selectedPage = Integer.parseInt(req.getParameter("selectedPageNo"));
      boolean updateDone = demoPortalServices.deleteHostDetails(req.getParameter("hostID"),req.getParameter("hostName"),getAttestationService(req,AttestationService.class));
      if (updateDone) {
View Full Code Here

   * @return
   */
  public ModelAndView getAllHostForView(HttpServletRequest req,HttpServletResponse res) {
    log.info("DemoPortalDataController.getAllHostForView >>");
    Map<Integer, List<HostDetailsEntityVO>> map =null;
    ModelAndView responseView = new ModelAndView(new JSONView());
    try {
      map = getAllHostDetailsFromDB(req);
     
      responseView.addObject("hostVo",map.get(1));
      responseView.addObject("noOfPages", map.size());
View Full Code Here

   * @param res (HttpServletResponse Object)
   * @return
   */
  public ModelAndView getHostForViewForPage(HttpServletRequest req,HttpServletResponse res) {
    log.info("DemoPortalDataController.getHostForViewForPage >>");
    ModelAndView responseView = new ModelAndView(new JSONView());
    try {
      int selectedPage = Integer.parseInt(req.getParameter("pageNo"));
      HttpSession session = req.getSession();
      @SuppressWarnings("unchecked")
      Map<Integer, List<HostDetailsEntityVO>> mapOfData  = (Map<Integer, List<HostDetailsEntityVO>>) session.getAttribute("HostVoList");
View Full Code Here

TOP

Related Classes of com.intel.mountwilson.util.JSONView

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.