/** * Gets non expired ticket granting tickets. * * @return the non expired ticket granting tickets */ private Collection<Ticket> getNonExpiredTicketGrantingTickets() { return this.centralAuthenticationService.getTickets(ticket -> ticket instanceof TicketGrantingTicket && !ticket.isExpired()); }
/** * Gets non expired ticket granting tickets. * * @return the non expired ticket granting tickets */ private Collection<Ticket> getNonExpiredTicketGrantingTickets() { return this.centralAuthenticationService.getTickets(ticket -> { if (ticket instanceof TicketGrantingTicket) { return !ticket.isExpired(); } return false; }); }
val expiredSts = new AtomicInteger(); val tickets = this.centralAuthenticationService.getTickets(ticket -> true); tickets.forEach(ticket -> { if (ticket instanceof ServiceTicket) {
final Collection<Ticket> tickets = this.centralAuthenticationService.getTickets(Predicates.<Ticket>alwaysTrue());
Collection<Ticket> tickets = this.service.getTickets(ticket -> { if(ticket instanceof TicketGrantingTicket) { TicketGrantingTicket t = ((TicketGrantingTicket)ticket).getRoot();