org.jasig.cas.ticket.registry
Class JpaTicketRegistry
java.lang.Object
org.jasig.cas.ticket.registry.AbstractTicketRegistry
org.jasig.cas.ticket.registry.AbstractDistributedTicketRegistry
org.jasig.cas.ticket.registry.JpaTicketRegistry
- All Implemented Interfaces:
- TicketRegistry
public final class JpaTicketRegistry
- extends AbstractDistributedTicketRegistry
- Since:
- 3.2.1
- Version:
- $Revision: 1.1 $ $Date: 2005/08/19 18:27:17 $
- Author:
- Scott Battaglia
|
Constructor Summary |
JpaTicketRegistry(javax.persistence.EntityManagerFactory factory)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JpaTicketRegistry
public JpaTicketRegistry(javax.persistence.EntityManagerFactory factory)
updateTicket
protected void updateTicket(Ticket ticket)
- Specified by:
updateTicket in class AbstractDistributedTicketRegistry
addTicket
public void addTicket(Ticket ticket)
- Description copied from interface:
TicketRegistry
- Add a ticket to the registry. Ticket storage is based on the ticket id.
- Parameters:
ticket - The ticket we wish to add to the cache.
deleteTicket
@Transactional(readOnly=false)
public boolean deleteTicket(java.lang.String ticketId)
- Description copied from interface:
TicketRegistry
- Remove a specific ticket from the registry.
- Parameters:
ticketId - The id of the ticket to delete.
- Returns:
- true if the ticket was removed and false if the ticket did not
exist.
getTicket
public Ticket getTicket(java.lang.String ticketId)
- Description copied from interface:
TicketRegistry
- Retrieve a ticket from the registry.
- Parameters:
ticketId - the id of the ticket we wish to retrieve
- Returns:
- the requested ticket.
getTickets
@Transactional(readOnly=true)
public java.util.Collection<Ticket> getTickets()
- Description copied from interface:
TicketRegistry
- Retrieve all tickets from the registry.
- Returns:
- collection of tickets currently stored in the registry. Tickets
might or might not be valid i.e. expired.
setTicketGrantingTicketPrefix
public void setTicketGrantingTicketPrefix(java.lang.String ticketGrantingTicketPrefix)
Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.