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>
This is
TicketDocument. Typed interface to CouchDB.- Since:
- 5.3.0
-
Field Summary
Fields inherited from class org.ektorp.support.CouchDbRepositorySupport
AUTO_UPDATE_VIEW_ON_CHANGE, db, log, stdDesignDocumentId, type -
Constructor Summary
ConstructorsConstructorDescriptionTicketRepository(org.ektorp.CouchDbConnector db) TicketRepository(org.ektorp.CouchDbConnector db, boolean createIfNotExists) -
Method Summary
Modifier and TypeMethodDescriptionlongdelete(List<TicketDocument> ticketDocuments) Delete tickets.Gets current document revision.Methods inherited from class org.ektorp.support.CouchDbRepositorySupport
add, contains, createQuery, debugDesignDoc, get, get, get, getAll, getDesignDocumentFactory, initStandardDesignDocument, queryView, queryView, queryView, queryView, remove, setDesignDocumentFactory, update
-
Constructor Details
-
TicketRepository
public TicketRepository(org.ektorp.CouchDbConnector db) -
TicketRepository
public TicketRepository(org.ektorp.CouchDbConnector db, boolean createIfNotExists)
-
-
Method Details
-
delete
Delete tickets.- Parameters:
ticketDocuments- tickets to be deleted.- Returns:
- number of tickets deleted
-
getCurrentRevision
Gets current document revision.- Parameters:
id- Document id to get revision.- Returns:
- current document revision.
-