Class HistoryEventDAO

java.lang.Object
fr.paris.lutece.plugins.document.business.history.HistoryEventDAO
All Implemented Interfaces:
IHistoryEventDAO

@ApplicationScoped public final class HistoryEventDAO extends Object implements IHistoryEventDAO
This class provides Data Access methods for HistoryEvent objects
  • Constructor Details

    • HistoryEventDAO

      public HistoryEventDAO()
  • Method Details

    • insert

      public void insert(HistoryEvent historyEvent)
      Insert a new record in the table.
      Specified by:
      insert in interface IHistoryEventDAO
      Parameters:
      historyEvent - The historyEvent object
    • delete

      public void delete(int nDocumentId)
      Delete a record from the table
      Specified by:
      delete in interface IHistoryEventDAO
      Parameters:
      nDocumentId - The id of the document
    • selectEventListByDocument

      public List<HistoryEvent> selectEventListByDocument(int nDocumentId)
      Load the list of historyEvents
      Specified by:
      selectEventListByDocument in interface IHistoryEventDAO
      Parameters:
      nDocumentId - The document Id
      Returns:
      The Collection of the HistoryEvents
    • selectEventListByUser

      public Collection<HistoryEvent> selectEventListByUser(String strUserId)
      Load the list of historyEvents
      Specified by:
      selectEventListByUser in interface IHistoryEventDAO
      Parameters:
      strUserId - The UserId
      Returns:
      The Collection of the HistoryEvents