Class HistoryEventHome
- java.lang.Object
-
- fr.paris.lutece.plugins.document.business.history.HistoryEventHome
-
public final class HistoryEventHome extends Object
This class provides instances management methods (create, find, ...) for HistoryEvent objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HistoryEventcreate(HistoryEvent historyEvent)Creation of an instance of historyEventstatic List<HistoryEvent>findByDocument(int nDocumentId, Locale locale)Returns a collection of historyEvents objectsstatic Collection<HistoryEvent>findByUser(String strUser, Locale locale)Returns a collection of historyEvents objectsstatic voidremove(int nDocumentId)Remove the HistoryEvent whose identifier is specified in parameter
-
-
-
Method Detail
-
create
public static HistoryEvent create(HistoryEvent historyEvent)
Creation of an instance of historyEvent- Parameters:
historyEvent- The instance of the historyEvent which contains the informations to store- Returns:
- The instance of historyEvent which has been created with its primary key.
-
remove
public static void remove(int nDocumentId)
Remove the HistoryEvent whose identifier is specified in parameter- Parameters:
nDocumentId- The document Id
-
findByDocument
public static List<HistoryEvent> findByDocument(int nDocumentId, Locale locale)
Returns a collection of historyEvents objects- Parameters:
nDocumentId- The document Idlocale- The current locale- Returns:
- A collection of historyEvents
-
findByUser
public static Collection<HistoryEvent> findByUser(String strUser, Locale locale)
Returns a collection of historyEvents objects- Parameters:
strUser- The user Idlocale- The current locale- Returns:
- A collection of historyEvents
-
-