org.squashtest.csp.tm.service
Interface AttachmentManagerService

All Known Implementing Classes:
AttachmentManagerServiceImpl

@Transactional
public interface AttachmentManagerService


Method Summary
 Long addAttachment(Long attachmentListId, Attachment attachment)
           
 Attachment findAttachment(Long attachmentId)
           
 Set<Attachment> findAttachments(Long attachmentListId)
           
 String findAttachmentShortName(Long attachmentId)
           
 FilteredCollectionHolder<List<Attachment>> findFilteredAttachmentForList(long attachmentListId, CollectionSorting filter)
           
 InputStream getAttachmentContent(Long attachmentId)
           
 void removeAttachmentFromList(Long attachmentListId, Long attachmentId)
           
 void removeListOfAttachments(Long attachmentListId, List<Long> attachmentIds)
           
 void renameAttachment(Long attachmentId, String newName)
           
 void setAttachmentContent(InputStream stream, Long attachmentId)
           
 

Method Detail

addAttachment

Long addAttachment(Long attachmentListId,
                   Attachment attachment)

findAttachment

Attachment findAttachment(Long attachmentId)

findAttachments

Set<Attachment> findAttachments(Long attachmentListId)

setAttachmentContent

void setAttachmentContent(InputStream stream,
                          Long attachmentId)

getAttachmentContent

InputStream getAttachmentContent(Long attachmentId)

removeAttachmentFromList

void removeAttachmentFromList(Long attachmentListId,
                              Long attachmentId)

removeListOfAttachments

void removeListOfAttachments(Long attachmentListId,
                             List<Long> attachmentIds)

findAttachmentShortName

String findAttachmentShortName(Long attachmentId)

renameAttachment

void renameAttachment(Long attachmentId,
                      String newName)

findFilteredAttachmentForList

FilteredCollectionHolder<List<Attachment>> findFilteredAttachmentForList(long attachmentListId,
                                                                         CollectionSorting filter)


Copyright © 2010-2012 Squashtest TM, Squashtest.org. All Rights Reserved.