com.atlassian.jira.bc.issue.attachment
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
 java.util.List<Attachment> asList()
          Returns the underlying list of attachments.
 boolean isLatestVersion(Attachment attachment)
          Determines whether the specified attachment represents the latest version of the corresponding file.
 

Method Detail

asList

java.util.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.


Copyright © 2002-2010 Atlassian. All Rights Reserved.