Class RevisionService
java.lang.Object
fr.paris.lutece.plugins.wiki.service.RevisionService
-
Method Summary
Modifier and TypeMethodDescriptionstatic RevisionCreates a new revisionstatic RevisionfindById(int revisionId) Finds a revision by its IDstatic RevisiongetCurrentRevision(int entityId) Gets the current revision for an entitygetRevisionHistory(int entityId) Gets the revision history for an entitystatic voidrestoreRevision(int revisionId, String author) Restores a specific revision
-
Method Details
-
findById
Finds a revision by its ID- Parameters:
revisionId- the revision identifier- Returns:
- the revision if found, null otherwise
-
getCurrentRevision
Gets the current revision for an entity- Parameters:
entityId- the entity identifier- Returns:
- the current revision if exists, null otherwise
-
getRevisionHistory
Gets the revision history for an entity- Parameters:
entityId- the entity identifier- Returns:
- list of revisions for the entity
-
create
Creates a new revision- Parameters:
revision- the revision to create- Returns:
- the created revision
-
restoreRevision
Restores a specific revision- Parameters:
revisionId- the revision identifier to restoreauthor- the author performing the restoration
-