|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.cas.ticket.registry.AbstractTicketRegistry
org.jasig.cas.ticket.registry.AbstractDistributedTicketRegistry
org.jasig.cas.ticket.registry.JpaTicketRegistry
public final class JpaTicketRegistry
JPA implementation of a CAS TicketRegistry. This implementation of
ticket registry is suitable for HA environments.
| Field Summary |
|---|
| Fields inherited from class org.jasig.cas.ticket.registry.AbstractTicketRegistry |
|---|
log |
| Constructor Summary | |
|---|---|
JpaTicketRegistry()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.jasig.cas.ticket.registry.AbstractDistributedTicketRegistry |
|---|
getProxiedTicketInstance |
| Methods inherited from class org.jasig.cas.ticket.registry.AbstractTicketRegistry |
|---|
getTicket |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JpaTicketRegistry()
| Method Detail |
|---|
protected void updateTicket(Ticket ticket)
updateTicket in class AbstractDistributedTicketRegistry@Transactional(readOnly=false) public void addTicket(Ticket ticket)
TicketRegistry
ticket - The ticket we wish to add to the cache.@Transactional(readOnly=false) public boolean deleteTicket(String ticketId)
TicketRegistry
ticketId - The id of the ticket to delete.
@Transactional(readOnly=true) public Ticket getTicket(String ticketId)
TicketRegistry
ticketId - the id of the ticket we wish to retrieve
@Transactional(readOnly=true) public Collection<Ticket> getTickets()
TicketRegistry
public void setTicketGrantingTicketPrefix(String ticketGrantingTicketPrefix)
protected boolean needsCallback()
needsCallback in class AbstractDistributedTicketRegistry@Transactional(readOnly=true) public int sessionCount()
TicketRegistryState
sessionCount in interface TicketRegistryStatesessionCount in class AbstractTicketRegistryInteger.MIN_VALUE if unknown.@Transactional(readOnly=true) public int serviceTicketCount()
TicketRegistryState
serviceTicketCount in interface TicketRegistryStateserviceTicketCount in class AbstractTicketRegistryInteger.MIN_VALUE if unknown.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||