Class RevisionService

java.lang.Object
fr.paris.lutece.plugins.wiki.service.RevisionService

public final class RevisionService extends Object
  • Method Details

    • findById

      public static Revision findById(int revisionId)
      Finds a revision by its ID
      Parameters:
      revisionId - the revision identifier
      Returns:
      the revision if found, null otherwise
    • getCurrentRevision

      public static Revision getCurrentRevision(int entityId)
      Gets the current revision for an entity
      Parameters:
      entityId - the entity identifier
      Returns:
      the current revision if exists, null otherwise
    • getRevisionHistory

      public static List<Revision> getRevisionHistory(int entityId)
      Gets the revision history for an entity
      Parameters:
      entityId - the entity identifier
      Returns:
      list of revisions for the entity
    • create

      public static Revision create(Revision revision)
      Creates a new revision
      Parameters:
      revision - the revision to create
      Returns:
      the created revision
    • restoreRevision

      public static void restoreRevision(int revisionId, String author)
      Restores a specific revision
      Parameters:
      revisionId - the revision identifier to restore
      author - the author performing the restoration