public Attachment getAttachmentMetaData ( String assetId , String attachmentId ) throws IOException , BadVersionException , RequestFailureException { // At the moment can only get all attachments Asset ass = getAsset ( assetId ) ; List < Attachment > allAttachments = ass . getAttachments ( ) ; for ( Attachment attachment : allAttachments ) { if ( attachmentId . equals ( attachment . get_id ( ) ) ) { return attachment ; } } // Didn't find it so just return null return null ; }
Returns the meta data about an attachment