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 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

    Constructors
    Constructor
    Description
    TicketRepository(org.ektorp.CouchDbConnector db)
     
    TicketRepository(org.ektorp.CouchDbConnector db, boolean createIfNotExists)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    delete(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TicketRepository

      public TicketRepository(org.ektorp.CouchDbConnector db)
    • TicketRepository

      public TicketRepository(org.ektorp.CouchDbConnector db, boolean createIfNotExists)
  • Method Details

    • delete

      public long delete(List<TicketDocument> ticketDocuments)
      Delete tickets.
      Parameters:
      ticketDocuments - tickets to be deleted.
      Returns:
      number of tickets deleted
    • getCurrentRevision

      public String getCurrentRevision(String id)
      Gets current document revision.
      Parameters:
      id - Document id to get revision.
      Returns:
      current document revision.