public final class JpaTicketRegistry extends AbstractDistributedTicketRegistry
TicketRegistry. This implementation of
ticket registry is suitable for HA environments.logger| Constructor and Description |
|---|
JpaTicketRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTicket(Ticket ticket)
Add a ticket to the registry.
|
boolean |
deleteTicket(String ticketId)
Remove a specific ticket from the registry.
|
Ticket |
getTicket(String ticketId)
Retrieve a ticket from the registry.
|
Collection<Ticket> |
getTickets()
Retrieve all tickets from the registry.
|
protected boolean |
needsCallback() |
int |
serviceTicketCount()
Computes the number of service tickets stored in the ticket registry.
|
int |
sessionCount()
Computes the number of SSO sessions stored in the ticket registry.
|
void |
setTicketGrantingTicketPrefix(String ticketGrantingTicketPrefix) |
protected void |
updateTicket(Ticket ticket) |
getProxiedTicketInstancegetTicketprotected void updateTicket(Ticket ticket)
updateTicket in class AbstractDistributedTicketRegistry@Transactional(readOnly=false) public void addTicket(Ticket ticket)
TicketRegistryticket - The ticket we wish to add to the cache.@Transactional(readOnly=false) public boolean deleteTicket(String ticketId)
TicketRegistryticketId - The id of the ticket to delete.@Transactional(readOnly=true) public Ticket getTicket(String ticketId)
TicketRegistryticketId - the id of the ticket we wish to retrieve@Transactional(readOnly=true) public Collection<Ticket> getTickets()
TicketRegistrypublic void setTicketGrantingTicketPrefix(String ticketGrantingTicketPrefix)
protected boolean needsCallback()
needsCallback in class AbstractDistributedTicketRegistry@Transactional(readOnly=true) public int sessionCount()
TicketRegistryStatesessionCount in interface TicketRegistryStatesessionCount in class AbstractTicketRegistryInteger.MIN_VALUE if unknown.@Transactional(readOnly=true) public int serviceTicketCount()
TicketRegistryStateserviceTicketCount in interface TicketRegistryStateserviceTicketCount in class AbstractTicketRegistryInteger.MIN_VALUE if unknown.Copyright © 2004-2015 Apereo. All Rights Reserved.