Package com.centraview.support.supportfacade

Examples of com.centraview.support.supportfacade.SupportFacadeHome.create()


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

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

      if (ticketForm.getSubject() != null) {
        ticketVO.setTitle(ticketForm.getSubject());
      }
View Full Code Here


      remoteTicket.setDataSource(dataSource);
     
      TicketVO tVO = remoteTicket.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 remoteFile = fileHome.create();
      remoteFile.setDataSource(dataSource);
View Full Code Here

      TicketVO ticketVO = new TicketVO();
      TicketForm ticketForm = (TicketForm)form;

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

      if (ticketForm.getSubject() != null) {
        ticketVO.setTitle(ticketForm.getSubject());
      }
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);

      TicketVO tVO = remote.getTicketBasicRelations(individualId, Integer.parseInt(request.getParameter("ticketId").toString()));

      TicketForm ticketForm = (TicketForm)form;
View Full Code Here

   */
  public void  deleteElement( int indvID, String key ) throws CommunicationException,NamingException {
    int elementID = Integer.parseInt(key);
    SupportFacadeHome supportFacadeHome=(SupportFacadeHome)CVUtility.getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome","SupportFacade");//call to SupportFacadeEJB
    try {
      SupportFacade remote=supportFacadeHome.create();
      remote.setDataSource(this.dataSource);
      remote.delete(indvID,elementID);
    }
    catch(Exception e) {
      logger.error("[Exception] TicketList.deleteElement( int indvID, String key )", e);
View Full Code Here

    ArrayList resultDeleteLog = new ArrayList();
    SupportFacadeHome supportFacadeHome=(SupportFacadeHome)CVUtility.getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome","SupportFacade");//call to SupportFacadeEJB
    try
    {
      //call to EJB server
      SupportFacade remote=supportFacadeHome.create();
      remote.setDataSource(this.dataSource);
      for (int i=0; i<recordID.length; i++)
      {
        if(recordID[i] != null && !recordID[i].equals("")){
          int elementID = Integer.parseInt(recordID[i]);
View Full Code Here

      CategoryVO categoryVO = new CategoryVO();
      CategoryForm catForm = (CategoryForm) form;

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

      KnowledgebaseList displaylist = (KnowledgebaseList) session.getAttribute("displaylist");
      int catid = displaylist.getCurrentCategoryID();
      remote.deleteCategory(individualID, catid);
View Full Code Here

      int individualID = userObject.getIndividualID();
      String ticketStatus = request.getParameter("closeorreopen");
      int ticketID = Integer.parseInt(request.getParameter("ticketID"));
      SupportFacadeHome supFacadeHome = (SupportFacadeHome) CVUtility.getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome",
          "SupportFacade");
      SupportFacade supFacadeRemote = supFacadeHome.create();
      supFacadeRemote.setDataSource(dataSource);
      if (ticketStatus.equals(TicketConstantKeys.TK_OCSTATUS_CLOSE)) {
        supFacadeRemote.closeTicket(individualID, ticketID);
        request.setAttribute("OCStatus", TicketConstantKeys.TK_OCSTATUS_CLOSE);
      } else if (ticketStatus.equals(TicketConstantKeys.TK_OCSTATUS_OPEN)) {
View Full Code Here

      CategoryForm catForm = (CategoryForm) form;

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

      String closeornew = (String) request.getParameter("closeornew");
      String saveandclose = null;
      String saveandnew = null;
View Full Code Here

      }

      String categoryId = Integer.toString(catid);
      request.setAttribute("rowId", categoryId);

      SupportFacade remote = (SupportFacade) supportFacade.create();
      remote.setDataSource(dataSource);
      CategoryVO catVO = remote.getCategory(individualID, catid);

      if (catVO == null)
        throw new Exception("Bad category");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.