Class Attachment
java.lang.Object
ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.Attachment
- All Implemented Interfaces:
Serializable,Comparable<Attachment>
@JsonObject("Attachment")
public class Attachment
extends Object
implements Serializable, Comparable<Attachment>
Immutable value object representing an attachment.
- Since:
- 1.22
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanReturns the id of the entity holding this attachment.Returns the description given by the user when uploading this attachment.Returns the download link.Returns the file name of this attachment.Return the registration details.getTitle()Returns the title given by the user when uploading this attachment.intReturns the version of this attachment.inthashCode()toString()
-
Constructor Details
-
Method Details
-
getAttachmentHolderId
Returns the id of the entity holding this attachment. This will be the id which has been used to retrieve this attachment. -
getFileName
Returns the file name of this attachment. -
getVersion
public int getVersion()Returns the version of this attachment. Starts with 1 and is increased by 1 whenever a user uploads a new version of the same file. -
getTitle
Returns the title given by the user when uploading this attachment. -
getDescription
Returns the description given by the user when uploading this attachment. -
getRegistrationDetails
Return the registration details. -
getDownloadLink
Returns the download link. In combination with the basic URL (containing host name and port) it can be used to create a URL for downloading the attachment file. -
hashCode
public int hashCode() -
equals
-
toString
-