Examples of Ticket


Examples of org.apache.harmony.auth.internal.kerberos.v5.Ticket

        PrincipalName krbtgt = new PrincipalName(PrincipalName.NT_SRV_XHST, new String[] {
                "krbtgt", realm }); //$NON-NLS-1$

        try {
            Ticket ticket = KrbClient.doAS(InetAddress.getByName(kdc), port, cname, realm,
                    krbtgt);

            return true; //FIXME
        } catch (Exception e) {
            LoginException ex = new LoginException();
View Full Code Here

Examples of org.hibernate.test.annotations.Ticket

  public void testSimpleOneToManySet() throws Exception {
    Session s;
    Transaction tx;
    s = openSession();
    tx = s.beginTransaction();
    Ticket t = new Ticket();
    t.setNumber( "33A" );
    Ticket t2 = new Ticket();
    t2.setNumber( "234ER" );
    Customer c = new Customer();
    s.persist( c );
    //s.persist(t);
    SortedSet<Ticket> tickets = new TreeSet<Ticket>( new TicketComparator() );
    tickets.add( t );
    tickets.add( t2 );
    c.setTickets( tickets );

    tx.commit();
    s.close();

    s = openSession();
    tx = s.beginTransaction();
    c = ( Customer ) s.load( Customer.class, c.getId() );
    assertNotNull( c );
    assertTrue( Hibernate.isInitialized( c.getTickets() ) );
    assertNotNull( c.getTickets() );
    tickets = c.getTickets();
    assertTrue( tickets.size() > 0 );
    assertEquals( t2.getNumber(), c.getTickets().first().getNumber() );
    tx.commit();
    s.close();
  }
View Full Code Here

Examples of org.jasig.cas.ticket.Ticket

    protected String resolveFromInternal(final JoinPoint joinPoint) {
        final Object arg1 = joinPoint.getArgs()[0];
        if (arg1 instanceof Credentials) {
           return arg1.toString();
        } else if (arg1 instanceof String) {
            final Ticket ticket = this.ticketRegistry.getTicket((String) arg1);
            if (ticket instanceof ServiceTicket) {
                final ServiceTicket serviceTicket = (ServiceTicket) ticket;
                return serviceTicket.getGrantingTicket().getAuthentication().getPrincipal().getId();
            } else if (ticket instanceof TicketGrantingTicket) {
                final TicketGrantingTicket tgt = (TicketGrantingTicket) ticket;
View Full Code Here

Examples of org.jboss.as.test.integration.jpa.hibernate.entity.Ticket

    @PersistenceContext(unitName = "entity_pc", type = PersistenceContextType.EXTENDED)
    private Session session;

    public Customer oneToManyCreate() throws Exception {
        Ticket t = new Ticket();
        t.setNumber("111");

        Customer c = new Customer();
        Set<Ticket> tickets = new HashSet<Ticket>();

        tickets.add(t);
        t.setCustomer(c);
        c.setTickets(tickets);

        session.save(c);

        return c;
View Full Code Here

Examples of org.mule.example.sla.Ticket

    }

    public void testSla() throws Exception
    {
        MuleClient client = new MuleClient();
        client.dispatch("vm://incoming.tickets", new Ticket("Customer A"), null);
        client.dispatch("vm://incoming.tickets", new Ticket("Customer B"), null);
        client.dispatch("vm://incoming.tickets", new Ticket("Customer C"), null);
        client.dispatch("vm://incoming.tickets", new Ticket("Customer D"), null);
       
        Thread.sleep(1000000);
    }
View Full Code Here

Examples of org.trzcinka.intellitrac.dto.Ticket

    }
    return result;
  }

  public Ticket retrieveTicket(int ticketId) throws ConnectionFailedException, TracError {
    Ticket ticket = null;
    try {
      Object response = retrieveClient().execute("ticket.get", new Object[]{ticketId});
      ticket = new TicketAdapter(response);
      ticket.setChanges(retrieveTicketChanges(ticketId));
      ticket.setAttachments(retrieveAttachments(ticketId));
    } catch (XmlRpcException e) {
      handleException(e);
    }
    return ticket;
  }
View Full Code Here

Examples of sun.security.krb5.internal.Ticket

        }

        EncryptionKey sessionKey = null;

        try {
            Ticket t = new Ticket(encodedTicket);

            EncryptedData encPart = t.encPart;
            PrincipalName ticketSname = t.sname;
            Realm ticketRealm = t.realm;
View Full Code Here

Examples of web.rechelper.Ticket

        if(model.size() != 1) {
            errors.reject("reception.incorrect.time");
            return showForm(request, errors, getFormView());
        }
        WeekDay weekDay = model.get(0);
        Ticket ticket = null;
        if(weekDay.getTickets() != null) {
            for(Ticket t: weekDay.getTickets()) {
                long ticketTime = t.getTime();
                if(ticketTime == dto.getTime()) {
                    ticket = t;
                    break;
                }
            }
        }
        if(ticket == null) {
            errors.reject("reception.incorrect.time");
            return showForm(request, errors, getFormView());
        }
        if(ticket.isBuzy()) {
            errors.reject("reception.buzy");
            return showForm(request, errors, getFormView());
        }

        if(dto.getClient() == null) {
            return new ModelAndView("redirect:/operator/chooseclient.htm"
                    + "?type=" + dto.getType().getId()
                    + "&lpu=" + dto.getLpu().getId()
                    + "&collaborator=" + dto.getCollaborator().getId()
                    + "&time=" + dto.getTime()
                    );
        }

        //проверка для автоматического подтверждения
        //В один день нельзя записываться к сотрудникам с одинаковыми типами работ 2 раза
        Date thisDate = DateTimeUtils.getDateOnly(cal).getTime();
        Date nextDate = DateTimeUtils.getDateOnly(cal).getTime();
        boolean autoconfirm = true;
        DetachedCriteria queryCriteria = DetachedCriteria.forClass(SheduleReception.class)
                .add(Property.forName("register").ge(thisDate))
                .add(Property.forName("register").lt(nextDate))
                .add(Property.forName("client").eq(dto.getClient()))
                .add(Property.forName("workType").eq(dto.getType()));
        List<SheduleReception> conflictList = getDao().getList(queryCriteria, 0, 0);
        if (conflictList.size() > 0) {
            autoconfirm = false;
            //т.к. это рабочее место оператора, то посылать сообщение пользователю ненадо
        }

        SheduleReception reception = new SheduleReception();
        reception.setAuthor(getDao().getById(Collaborator.class, getUserInfo().getCurrentCollaboratorId()));
        reception.setCollaborator(dto.getCollaborator());
        reception.setBegin(cal.getTime());
        reception.setClient(dto.getClient());
        reception.setDuration(ticket.getDuration());
        reception.setDescription(dto.getType().getDescription());
        reception.setConfirmed(autoconfirm);
        reception.setRegister(new Date());
        reception.setWorkType(dto.getType());
        getDao().save(reception);

        ticket.setBuzy(true);
        updater.addTicketP(dto.getCollaborator(), dto.getType(), ticket);

        String date = Converter.dateToString(cal.getTime());
        String time = Converter.dateToString(cal.getTime(), "HH:mm");
        return new ModelAndView("redirect:/operator/complete.htm"
View Full Code Here

Examples of zendeskapi.models.tickets.Ticket

  public JobStatusResponse bulkUpdate(List<Long> ids, BulkUpdate info) throws ZendeskApiException {
    StringBuilder csvs = new StringBuilder();
    for (Long id : ids) {
      csvs.append(id.toString()).append(",");
    }
    Ticket ticket = convertBulkUpdateToTicket(info);
    try {
      return genericPut("tickets/update_many.json?ids=" + csvs.toString(), ticket, JobStatusResponse.class);
    } catch (Exception e) {
      throw new ZendeskApiException(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.