@Transactional public class AttachmentServiceImpl extends Object implements AttachmentService
| Modifier and Type | Field and Description |
|---|---|
protected org.kuali.rice.krad.data.DataObjectService |
dataObjectService |
protected org.kuali.rice.core.api.config.property.ConfigurationService |
kualiConfigurationService |
| Constructor and Description |
|---|
AttachmentServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Attachment |
createAttachment(org.kuali.rice.core.api.mo.common.GloballyUnique 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.
|
org.kuali.rice.core.api.config.property.ConfigurationService |
getKualiConfigurationService()
Gets the configService attribute.
|
void |
moveAttachmentWherePending(Note note) |
InputStream |
retrieveAttachmentContents(Attachment attachment)
/* (non-Javadoc)
|
void |
setDataObjectService(org.kuali.rice.krad.data.DataObjectService dataObjectService) |
void |
setKualiConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService configService)
Sets the configService attribute value.
|
protected org.kuali.rice.core.api.config.property.ConfigurationService kualiConfigurationService
protected org.kuali.rice.krad.data.DataObjectService dataObjectService
public AttachmentServiceImpl()
public Attachment getAttachmentByNoteId(Long noteId)
getAttachmentByNoteId in interface AttachmentServiceAttachmentService.getAttachmentByNoteId(java.lang.Long)public Attachment createAttachment(org.kuali.rice.core.api.mo.common.GloballyUnique parent, String uploadedFileName, String mimeType, int fileSize, InputStream fileContents, String attachmentTypeCode) throws IOException
createAttachment in interface AttachmentServiceIOExceptionAttachmentService.createAttachment(GloballyUnique,
String, String, int, java.io.InputStream, String)public 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 AttachmentServiceIOExceptionAttachmentService.retrieveAttachmentContents(org.kuali.rice.krad.bo.Attachment)public void deletePendingAttachmentsModifiedBefore(long modificationTime)
deletePendingAttachmentsModifiedBefore in interface AttachmentServiceAttachmentService.deletePendingAttachmentsModifiedBefore(long)public org.kuali.rice.core.api.config.property.ConfigurationService getKualiConfigurationService()
public void setKualiConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService configService)
configService - The configService to set.public void setDataObjectService(org.kuali.rice.krad.data.DataObjectService dataObjectService)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.