@Service(value="squashtest.tm.service.AttachmentManagerService") public class AttachmentManagerServiceImpl extends Object implements AttachmentManagerService
| Constructor and Description |
|---|
AttachmentManagerServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Long |
addAttachment(long attachmentListId,
RawAttachment rawAttachment) |
org.squashtest.tm.domain.attachment.Attachment |
findAttachment(Long attachmentId) |
Set<org.squashtest.tm.domain.attachment.Attachment> |
findAttachments(Long attachmentListId) |
String |
findAttachmentShortName(Long attachmentId) |
org.springframework.data.domain.Page<org.squashtest.tm.domain.attachment.Attachment> |
findPagedAttachments(org.squashtest.tm.domain.attachment.AttachmentHolder attached,
org.springframework.data.domain.Pageable pas) |
org.springframework.data.domain.Page<org.squashtest.tm.domain.attachment.Attachment> |
findPagedAttachments(long attachmentListId,
org.springframework.data.domain.Pageable pageable) |
void |
removeAttachmentFromList(long attachmentListId,
long attachmentId) |
void |
removeListOfAttachments(long attachmentListId,
List<Long> attachmentIds) |
void |
renameAttachment(long attachmentId,
String newName) |
void |
writeContent(long attachmentId,
OutputStream outStream)
Writes attachment content into the given stream.
|
public Long addAttachment(long attachmentListId, RawAttachment rawAttachment)
addAttachment in interface AttachmentManagerServicepublic org.squashtest.tm.domain.attachment.Attachment findAttachment(Long attachmentId)
findAttachment in interface AttachmentFinderServicepublic Set<org.squashtest.tm.domain.attachment.Attachment> findAttachments(Long attachmentListId)
findAttachments in interface AttachmentFinderServicepublic void removeAttachmentFromList(long attachmentListId,
long attachmentId)
removeAttachmentFromList in interface AttachmentManagerServicepublic void removeListOfAttachments(long attachmentListId,
List<Long> attachmentIds)
removeListOfAttachments in interface AttachmentManagerServicepublic void renameAttachment(long attachmentId,
String newName)
renameAttachment in interface AttachmentManagerServicepublic String findAttachmentShortName(Long attachmentId)
findAttachmentShortName in interface AttachmentFinderServicepublic org.springframework.data.domain.Page<org.squashtest.tm.domain.attachment.Attachment> findPagedAttachments(long attachmentListId,
org.springframework.data.domain.Pageable pageable)
findPagedAttachments in interface AttachmentFinderServicepublic org.springframework.data.domain.Page<org.squashtest.tm.domain.attachment.Attachment> findPagedAttachments(org.squashtest.tm.domain.attachment.AttachmentHolder attached,
org.springframework.data.domain.Pageable pas)
findPagedAttachments in interface AttachmentFinderServicepublic void writeContent(long attachmentId,
OutputStream outStream)
throws IOException
AttachmentManagerServicewriteContent in interface AttachmentManagerServiceIOExceptionorg.squashtest.tm.service.attachment.AttachmentManagerService#writeContent(long,
javax.servlet.ServletOutputStream)Copyright © 2010–2017 Henix, henix.fr. All rights reserved.