Examples of TicketLocalHome


Examples of com.centraview.support.ticket.TicketLocalHome

  public void duplicateTicket(int userId, TicketVO tv)
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      TicketLocalHome home = (TicketLocalHome) ic.lookup("local/Ticket");
      TicketLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      ctx.getUserTransaction().begin();
      remote.duplicateTicket(userId, tv);
      ctx.getUserTransaction().commit();
    } catch (Exception e) {
View Full Code Here

Examples of com.centraview.support.ticket.TicketLocalHome

  {
    int tktID = 0;

    try {
      InitialContext ic = CVUtility.getInitialContext();
      TicketLocalHome home = (TicketLocalHome) ic.lookup("local/Ticket");
      TicketLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      ctx.getUserTransaction().begin();
      tktID = remote.addTicket(userId, tv);
      ctx.getUserTransaction().commit();
    } catch (Exception e) {
View Full Code Here

Examples of com.centraview.support.ticket.TicketLocalHome

  public int addThread(int userId, ThreadVO thvo)
  {
    int returnCode = 1;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      TicketLocalHome home = (TicketLocalHome) ic.lookup("local/Ticket");
      TicketLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      remote.addThread(userId, thvo);
      returnCode = 0;
    } catch (Exception e) {
      logger.error("[addThread]: Exception", e);
View Full Code Here

Examples of com.centraview.support.ticket.TicketLocalHome

  public ThreadVO getThread(int userId, int threadId)
  {
    ThreadVO thVO = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      TicketLocalHome home = (TicketLocalHome) ic.lookup("local/Ticket");
      TicketLocal remote = home.create();
      ctx.getUserTransaction().begin();
      remote.setDataSource(this.dataSource);
      thVO = remote.getThread(userId, threadId);
      ctx.getUserTransaction().commit();
    } catch (Exception e) {
View Full Code Here

Examples of com.centraview.support.ticket.TicketLocalHome

  public TicketVO getTicketBasicRelations(int userId, int ticketId) throws TicketException, AuthorizationFailedException
  {
    TicketVO tv = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      TicketLocalHome home = (TicketLocalHome) ic.lookup("local/Ticket");
      TicketLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      tv = remote.getTicketBasicRelations(userId, ticketId);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
View Full Code Here

Examples of com.centraview.support.ticket.TicketLocalHome

  public void updateTicket(int userId, TicketVO tv)
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      TicketLocalHome home = (TicketLocalHome) ic.lookup("local/Ticket");
      TicketLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      ctx.getUserTransaction().begin();
      remote.updateTicket(userId, tv);
      ctx.getUserTransaction().commit();
    } catch (Exception e) {
View Full Code Here

Examples of com.centraview.support.ticket.TicketLocalHome

  public TicketVO getTicketBasic(int userId, int ticketId)
  {
    TicketVO tv = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      TicketLocalHome home = (TicketLocalHome) ic.lookup("local/Ticket");
      TicketLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      tv = remote.getTicketBasic(userId, ticketId);
    } catch (Exception e) {
      logger.error("[getTicketBasic]: Exception", e);
    }
View Full Code Here

Examples of com.centraview.support.ticket.TicketLocalHome

  public void delete(int userId, int ticketID) throws AuthorizationFailedException
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      TicketLocalHome home = (TicketLocalHome) ic.lookup("local/Ticket");
      TicketLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      remote.deleteTicket(userId, ticketID);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
View Full Code Here

Examples of com.centraview.support.ticket.TicketLocalHome

  public void addFile(int ticketId, int[] fileId)
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      TicketLocalHome home = (TicketLocalHome) ic.lookup("local/Ticket");
      TicketLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      remote.addTicketLink(ticketId, fileId, 33);
    } catch (Exception e) {
      logger.error("[addFile]: Exception", e);
    }
View Full Code Here

Examples of com.centraview.support.ticket.TicketLocalHome

  public void addExpense(int ticketId, int[] expenseId)
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      TicketLocalHome home = (TicketLocalHome) ic.lookup("local/Ticket");
      TicketLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      remote.addTicketLink(ticketId, expenseId, 89);
    } catch (Exception e) {
      logger.error("[addExpense]: Exception", e);
    }
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.