@Transactional public class AttachmentServiceImpl extends Object implements AttachmentService
| Constructor and Description |
|---|
AttachmentServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Attachment |
createAttachment(PersistableBusinessObject parent,
String uploadedFileName,
String mimeType,
int fileSize,
InputStream fileContents,
String attachmentTypeCode) |
void |
deleteAttachmentContents(Attachment attachment) |
void |
deletePendingAttachmentsModifiedBefore(long modificationTime) |
Attachment |
getAttachmentByNoteId(Long noteId)
Retrieves an Attachment by note identifier.
|
AttachmentDao |
getAttachmentDao()
Retrieves a data access object
|
ConfigurationService |
getKualiConfigurationService()
Gets the configService attribute.
|
void |
moveAttachmentWherePending(Note note) |
InputStream |
retrieveAttachmentContents(Attachment attachment)
/* (non-Javadoc)
|
void |
setAttachmentDao(AttachmentDao d)
Sets the data access object
|
void |
setKualiConfigurationService(ConfigurationService configService)
Sets the configService attribute value.
|
public AttachmentServiceImpl()
public Attachment getAttachmentByNoteId(Long noteId)
getAttachmentByNoteId in interface AttachmentServiceAttachmentService.getAttachmentByNoteId(java.lang.Long)public Attachment createAttachment(PersistableBusinessObject parent, String uploadedFileName, String mimeType, int fileSize, InputStream fileContents, String attachmentTypeCode) throws IOException
createAttachment in interface AttachmentServiceIOExceptionDocumentAttachmentServicepublic void moveAttachmentWherePending(Note note)
moveAttachmentWherePending in interface AttachmentServicepublic void deleteAttachmentContents(Attachment attachment)
deleteAttachmentContents in interface AttachmentServicepublic InputStream retrieveAttachmentContents(Attachment attachment) throws IOException
retrieveAttachmentContents in interface AttachmentServiceIOExceptionDocumentAttachmentServicepublic void deletePendingAttachmentsModifiedBefore(long modificationTime)
deletePendingAttachmentsModifiedBefore in interface AttachmentServiceAttachmentService.deletePendingAttachmentsModifiedBefore(long)public void setAttachmentDao(AttachmentDao d)
d - public AttachmentDao getAttachmentDao()
public ConfigurationService getKualiConfigurationService()
public void setKualiConfigurationService(ConfigurationService configService)
configService - The configService to set.Copyright © 2005–2016 The Kuali Foundation. All rights reserved.