Package org.apereo.cas.couchdb.tickets
Class TicketRepository
- java.lang.Object
-
- org.ektorp.support.CouchDbRepositorySupport<TicketDocument>
-
- org.apereo.cas.couchdb.tickets.TicketRepository
-
- All Implemented Interfaces:
org.ektorp.support.GenericRepository<TicketDocument>
public class TicketRepository extends org.ektorp.support.CouchDbRepositorySupport<TicketDocument>
This isTicketDocument. Typed interface to CouchDB.- Since:
- 5.3.0
-
-
Constructor Summary
Constructors Constructor Description TicketRepository(org.ektorp.CouchDbConnector db)TicketRepository(org.ektorp.CouchDbConnector db, boolean createIfNotExists)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longdelete(java.util.List<TicketDocument> ticketDocuments)Delete tickets.java.lang.StringgetCurrentRevision(java.lang.String id)Gets current document revision.
-
-
-
Method Detail
-
delete
public long delete(java.util.List<TicketDocument> ticketDocuments)
Delete tickets.- Parameters:
ticketDocuments- tickets to be deleted.- Returns:
- number of tickets deleted
-
getCurrentRevision
public java.lang.String getCurrentRevision(java.lang.String id)
Gets current document revision.- Parameters:
id- Document id to get revision.- Returns:
- current document revision.
-
-