Package com.centraview.support.supportfacade

Examples of com.centraview.support.supportfacade.SupportFacadeHome


      Ticket t = th.create();
      t.setDataSource(dataSource);

      TicketVO tVO = t.getTicketBasicRelations(individualId, ticketId);

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

      CvFileHome fileHome = (CvFileHome)CVUtility.getHomeObject("com.centraview.file.CvFileHome", "CvFile");
      CvFile cvFile = fileHome.create();
      cvFile.setDataSource(dataSource);
View Full Code Here


    //define the delete Action is called from the View screen.
    String windowType = request.getParameter("windowType");
   
    String rowId[] = request.getParameterValues("rowId");
  ArrayList resultDeleteLog = new ArrayList();
  SupportFacadeHome supportFacadeHome=(SupportFacadeHome)CVUtility.getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome","SupportFacade");//call to SupportFacadeEJB
   
    try
    {
     SupportFacade remote=supportFacadeHome.create();
    remote.setDataSource(dataSource);
      for (int i=0; i<rowId.length; i++)
      {
        if(rowId[i] != null && !rowId[i].equals(""))
        {
View Full Code Here

      HttpSession session = request.getSession();
      UserObject userObject = (UserObject) session.getAttribute("userobject");
      int individualID = userObject.getIndividualID();
      DynaActionForm faqForm = (DynaActionForm) form;
      String[] qids = request.getParameterValues("rowId");
      SupportFacadeHome sfh = (SupportFacadeHome) CVUtility.getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome",
          "SupportFacade");
      SupportFacade remote = (SupportFacade) sfh.create();
      remote.setDataSource(dataSource);
      int qid = 0;

      for (int i = 0; i < qids.length; i++)
      {
View Full Code Here

    HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException, CommunicationException, NamingException
  {
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();

    SupportFacadeHome supportFacade = (SupportFacadeHome) CVUtility
      .getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome",
        "SupportFacade");
    try
    {
      HttpSession session = request.getSession();
      UserObject userObject = (UserObject) session.getAttribute("userobject");
      int individualID = userObject.getIndividualID();
      CategoryVO categoryVO = new CategoryVO();
      CategoryForm catForm = (CategoryForm) form;
      int catid;
      String typeOfOperation = (String) request.getParameter(Constants.TYPEOFOPERATION);

      catid = Integer.parseInt(request.getParameter("rowId"));

      if ((typeOfOperation != null)
          && typeOfOperation.equalsIgnoreCase(SupportConstantKeys.DUPLICATE)) {
        categoryVO.setOwner(individualID);
      }

      categoryVO.setCatid(catid);


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

      if ((String) catForm.getCategoryname() != null)
      {
        categoryVO.setTitle((String) catForm.getCategoryname());
View Full Code Here

      UserObject userObject = (UserObject) session.getAttribute("userobject");
      int individualID = userObject.getIndividualID();
      TicketVO ticketVO = new TicketVO();
      TicketForm ticketForm = (TicketForm) form;

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

      ticketVO.setId(Integer.parseInt(ticketForm.getId()));
      ticketVO.setTitle(ticketForm.getSubject());
      ticketVO.setDetail(ticketForm.getDetail());
View Full Code Here

    if (!faqIdStr.equals(""))
    {
      faqVO.setFaqId(Integer.parseInt(faqIdStr));
    }

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

      if (request.getParameter(Constants.TYPEOFOPERATION).equals(SupportConstantKeys.ADD))
      {
        remote.addFaq(individualID, faqVO);
View Full Code Here

      DynaActionForm faqForm = (DynaActionForm) form;
      QuestionVO qVO = new QuestionVO();
      qVO.setQuestion((String) faqForm.get("title"));
      qVO.setAnswer((String) faqForm.get("answer"));

      SupportFacadeHome sfh = (SupportFacadeHome) CVUtility.getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome",
          "SupportFacade");
      SupportFacade remote = (SupportFacade) sfh.create();
      remote.setDataSource(dataSource);
      String typeOfOp = request.getParameter(Constants.TYPEOFOPERATION);

      if (typeOfOp != null) {
        if (typeOfOp.equals(SupportConstantKeys.ADD)) {
View Full Code Here

  {
    //call to EJB server
    int elementID = Integer.parseInt(key);

    try {
      SupportFacadeHome supportFacade = (SupportFacadeHome)CVUtility.getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome","SupportFacade");
      SupportFacade remote =(SupportFacade)supportFacade.create();
      remote.setDataSource(this.dataSource);
      if (typeOfDoc.equals(SupportConstantKeys.KBELEMENT)) {
        remote.deleteKB (userID,elementID);

      }
View Full Code Here

      Values.put("--Details--", detail);
      Values.put("--Contact--", tVO.getRefIndividualName());
      Values.put("--Manager--", tVO.getManagerName());
      Values.put("--AssignedTo--", tVO.getAssignedToName());

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

      ThreadList threadList = remote.getThreadList(individualID, tVO.getId());
      String threadValues = this.setLinksfunction(threadList);
View Full Code Here

      }

      int ownerID = 0;

      FaqVO faqVO = new FaqVO();
      SupportFacadeHome supFacade = (SupportFacadeHome) CVUtility
        .getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome",
          "SupportFacade");

      try
      {
        SupportFacade remote = supFacade.create();
        remote.setDataSource(dataSource);
        FaqVO fVO = remote.getFaq(individualID, faqId);

        dynaForm.set("faqid", new Integer(fVO.getFaqId()).toString());
        dynaForm.set("title", fVO.getTitle());
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.