org.kuali.rice.krad.service.impl
Class AttachmentServiceImpl

java.lang.Object
  extended by org.kuali.rice.krad.service.impl.AttachmentServiceImpl
All Implemented Interfaces:
org.kuali.rice.krad.service.AttachmentService

@Transactional
public class AttachmentServiceImpl
extends Object
implements org.kuali.rice.krad.service.AttachmentService

Attachment service implementation


Constructor Summary
AttachmentServiceImpl()
           
 
Method Summary
 org.kuali.rice.krad.bo.Attachment createAttachment(org.kuali.rice.krad.bo.PersistableBusinessObject parent, String uploadedFileName, String mimeType, int fileSize, InputStream fileContents, String attachmentTypeCode)
           
 void deleteAttachmentContents(org.kuali.rice.krad.bo.Attachment attachment)
           
 void deletePendingAttachmentsModifiedBefore(long modificationTime)
           
 org.kuali.rice.krad.bo.Attachment getAttachmentByNoteId(Long noteId)
          Retrieves an Attachment by note identifier.
 AttachmentDao getAttachmentDao()
          Retrieves a data access object
 org.kuali.rice.core.api.config.property.ConfigurationService getKualiConfigurationService()
          Gets the configService attribute.
 void moveAttachmentWherePending(org.kuali.rice.krad.bo.Note note)
           
 InputStream retrieveAttachmentContents(org.kuali.rice.krad.bo.Attachment attachment)
          /* (non-Javadoc)
 void setAttachmentDao(AttachmentDao d)
          Sets the data access object
 void setKualiConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService configService)
          Sets the configService attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentServiceImpl

public AttachmentServiceImpl()
Method Detail

getAttachmentByNoteId

public org.kuali.rice.krad.bo.Attachment getAttachmentByNoteId(Long noteId)
Retrieves an Attachment by note identifier.

Specified by:
getAttachmentByNoteId in interface org.kuali.rice.krad.service.AttachmentService
See Also:
AttachmentService.getAttachmentByNoteId(java.lang.Long)

createAttachment

public org.kuali.rice.krad.bo.Attachment createAttachment(org.kuali.rice.krad.bo.PersistableBusinessObject parent,
                                                          String uploadedFileName,
                                                          String mimeType,
                                                          int fileSize,
                                                          InputStream fileContents,
                                                          String attachmentTypeCode)
                                                   throws IOException
Specified by:
createAttachment in interface org.kuali.rice.krad.service.AttachmentService
Throws:
IOException
See Also:
org.kuali.rice.krad.service.DocumentAttachmentService#createAttachment(java.lang.String, java.lang.String, int, java.io.InputStream, Document)

moveAttachmentWherePending

public void moveAttachmentWherePending(org.kuali.rice.krad.bo.Note note)
Specified by:
moveAttachmentWherePending in interface org.kuali.rice.krad.service.AttachmentService

deleteAttachmentContents

public void deleteAttachmentContents(org.kuali.rice.krad.bo.Attachment attachment)
Specified by:
deleteAttachmentContents in interface org.kuali.rice.krad.service.AttachmentService

retrieveAttachmentContents

public InputStream retrieveAttachmentContents(org.kuali.rice.krad.bo.Attachment attachment)
                                       throws IOException
/* (non-Javadoc)

Specified by:
retrieveAttachmentContents in interface org.kuali.rice.krad.service.AttachmentService
Throws:
IOException
See Also:
org.kuali.rice.krad.service.DocumentAttachmentService#retrieveAttachmentContents(org.kuali.rice.krad.document.DocumentAttachment)

deletePendingAttachmentsModifiedBefore

public void deletePendingAttachmentsModifiedBefore(long modificationTime)
Specified by:
deletePendingAttachmentsModifiedBefore in interface org.kuali.rice.krad.service.AttachmentService
See Also:
AttachmentService.deletePendingAttachmentsModifiedBefore(long)

setAttachmentDao

public void setAttachmentDao(AttachmentDao d)
Sets the data access object

Parameters:
d -

getAttachmentDao

public AttachmentDao getAttachmentDao()
Retrieves a data access object


getKualiConfigurationService

public org.kuali.rice.core.api.config.property.ConfigurationService getKualiConfigurationService()
Gets the configService attribute.

Returns:
Returns the configService.

setKualiConfigurationService

public void setKualiConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService configService)
Sets the configService attribute value.

Parameters:
configService - The configService to set.


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.