Package com.centraview.support.supportfacade

Examples of com.centraview.support.supportfacade.SupportFacadeHome


      HttpSession session = request.getSession();
      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


      Ticket remoteTicket = th.create();
      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

      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

    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

    * @return resultDeleteLog A Collection of the Error Message while deleting a particular record.
    */
  public ArrayList deleteElement(int individualID, String recordID[]) throws CommunicationException,NamingException,RemoteException
  {
    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

      UserObject userObject = (UserObject) session.getAttribute("userobject");
      int individualID = userObject.getIndividualID();
      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

      HttpSession session = request.getSession();
      UserObject userObject = (UserObject) session.getAttribute("userobject");
      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

      UserObject userObject = (UserObject) session.getAttribute("userobject");
      int individualID = userObject.getIndividualID();
      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);

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

  public ActionForward execute(ActionMapping mapping, ActionForm form,
    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();
      CategoryForm catForm = (CategoryForm) form;

      int catid = 1;
      String rowId = request.getParameter("rowId");
      if (rowId != null && !rowId.equals("")) {
        if (rowId.indexOf("*") > -1) {
          String elements[] = rowId.split("\\*");
          if (elements.length != 2)
            throw new Exception("No row selected.");
          catid = Integer.parseInt(elements[0]);
        } else {
          catid = Integer.parseInt(rowId);
        }
      }

      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

      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);

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