Package com.centraview.support.supportfacade

Examples of com.centraview.support.supportfacade.SupportFacadeHome


      tVO.setTicketId(Integer.parseInt(request.getParameter("ticketId")));
      tVO.setPriorityId(Integer.parseInt((dynaForm.get("priority")).toString()));
      tVO.setCreatedBy(individualID);
      tVO.setOwner(individualID);
     
      SupportFacadeHome sfh = (SupportFacadeHome)CVUtility.getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome", "SupportFacade");
      SupportFacade remote = (SupportFacade) sfh.create();
      remote.setDataSource(dataSource);
     
      remote.addThread(individualID, tVO);
     
      String closeornew = (String) request.getParameter("closeornew");
View Full Code Here


  }

  private void setSupportLists()
  {
    try {
      SupportFacadeHome cfh = (SupportFacadeHome)CVUtility.getHomeObject(
          "com.centraview.support.supportfacade.SupportFacadeHome", "SupportFacade");
      SupportFacade remote = cfh.create();
      remote.setDataSource(this.dataSource);
      supportStatusList = remote.getStatusList();
      supportPriorityList = remote.getPriorityList();
    } catch (Exception e) {
      logger.error("[setSupportLists] Exception thrown.", e);
View Full Code Here

      request.setAttribute("action", "view");
      HttpSession session = request.getSession();
      UserObject userObject = (UserObject) session.getAttribute("userobject");
      int individualID = userObject.getIndividualID();

      SupportFacadeHome sfh = (SupportFacadeHome) CVUtility.getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome", "SupportFacade");
      SupportFacade remote = sfh.create();
      remote.setDataSource(dataSource);

      ThreadVO tVO = null;

      if (request.getParameter("rowId") != null) {
View Full Code Here

      tVO.setPriorityId(Integer.parseInt((dynaForm.get("priority")).toString()));
      tVO.setDetail((String)dynaForm.get("threaddetail"));
      tVO.setCreatedBy(individualId);
      tVO.setOwner(individualId);

      SupportFacadeHome sfh = (SupportFacadeHome)CVUtility.getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome", "SupportFacade");
      SupportFacade remote = (SupportFacade)sfh.create();
      remote.setDataSource(dataSource);

      remote.addThread(individualId, tVO);

      FORWARD_final = FORWARD_savenewthread;
View Full Code Here

    try {
      HttpSession session = request.getSession();
      int individualId = ((UserObject)session.getAttribute("userobject")).getIndividualID();

      SupportFacadeHome sfh = (SupportFacadeHome)CVUtility.getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome", "SupportFacade");
      SupportFacade remote = (SupportFacade)sfh.create();
      remote.setDataSource(dataSource);
      ThreadVO tVO = null;
     
      if (request.getParameter("rowId") != null) {
        tVO = remote.getThread(individualId, Integer.parseInt(request.getParameter("rowId")));
View Full Code Here

      String fileIds = "";
      if (request.getParameter("fileIds") != null) {
        fileIds = (String)request.getParameter("fileIds");
      }
     
      SupportFacadeHome supportFacade = (SupportFacadeHome)CVUtility.getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome", "SupportFacade");
      SupportFacade remote = (SupportFacade)supportFacade.create();
      remote.setDataSource(dataSource);

      // split string into array
      String[] fileIdArray = fileIds.split(",");
     
View Full Code Here

  public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException, CommunicationException, NamingException
  {
    int rowID=0;
    SupportFacadeHome supportFacade = (SupportFacadeHome)CVUtility.getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome","SupportFacade");
    try {

      HttpSession session = request.getSession();
      int userId = ((UserObject)session.getAttribute("userobject")).getIndividualID();

      // call ejb to insert record
      // initialize file vo
      CategoryVO categoryVO = new CategoryVO();
      CategoryForm catForm = (CategoryForm)form;


      SupportFacade remote =(SupportFacade)supportFacade.create();

      // set the VO from form bean data
      // set the CategoryVO
      if((String)catForm.getCategoryname() != null)
        categoryVO.setTitle((String)catForm.getCategoryname());
View Full Code Here

      int individualID = userObject.getIndividualID();
      DynaActionForm qForm = (DynaActionForm) form;
      QuestionVO QVO = null;

      if (request.getParameter(Constants.TYPEOFOPERATION).equals(SupportConstantKeys.EDIT)) {
        SupportFacadeHome sfh = (SupportFacadeHome) CVUtility.getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome",
            "SupportFacade");
        SupportFacade remote = (SupportFacade) sfh.create();
        remote.setDataSource(dataSource);
        QVO = remote.getQuestion(individualID, Integer.parseInt(request.getParameter("rowId")));
        qForm.set("title", QVO.getQuestion());
        qForm.set("answer", QVO.getAnswer());
        qForm.set("faqid", new Integer(QVO.getFaqId()).toString());
View Full Code Here

        // if kb ID is set on the form properly, then set
        // the int representation for use in the code below
        kbID = formKbID.intValue();
      }
     
      SupportFacadeHome supportFacade = (SupportFacadeHome)CVUtility.getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome", "SupportFacade");
      SupportFacade remote = (SupportFacade)supportFacade.create();
      remote.setDataSource(dataSource);

      KnowledgeVO kbVO = remote.getKB(individualID, kbID);
     
      kbForm.set("title", kbVO.getTitle());
View Full Code Here

     
      FaqVO faqDetail = remote.getFaq(individualID, faqID);

      faqForm.set("title", faqDetail.getTitle());
     
      SupportFacadeHome supFacade = (SupportFacadeHome)CVUtility.getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome", "SupportFacade");
      SupportFacade supRemote = supFacade.create();
      supRemote.setDataSource(dataSource);
     
      QuestionList questionList = supRemote.getQuestionList(individualID, faqID);

      ArrayList qList = new ArrayList();
View Full Code Here

TOP

Related Classes of com.centraview.support.supportfacade.SupportFacadeHome

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.