Interface VersionedAttachmentsList

All Known Implementing Classes:
FileNameBasedVersionedAttachmentsList

public interface VersionedAttachmentsList
Represents a list of attachments that contains several versions of the same file.

This class is responsible for determining what attachments represent a different version of the same file, and offering clients methods to query version information for attachments.

Since:
v4.2
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the underlying list of attachments.
    boolean
    Determines whether the specified attachment represents the latest version of the corresponding file.
  • Method Details

    • asList

      List<Attachment> asList()
      Returns the underlying list of attachments.
      Returns:
      A List of Attachment.
    • isLatestVersion

      boolean isLatestVersion(Attachment attachment)
      Determines whether the specified attachment represents the latest version of the corresponding file.
      Parameters:
      attachment - The attachment in play.
      Returns:
      true if this is the latest (or only) version of the file in question; otherwise false.