Class S3AttachmentServiceImpl

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

public class S3AttachmentServiceImpl extends AttachmentServiceImpl
  • Constructor Details

    • S3AttachmentServiceImpl

      public S3AttachmentServiceImpl()
  • Method Details

    • createAttachment

      public org.kuali.rice.krad.bo.Attachment createAttachment(org.kuali.rice.core.api.mo.common.GloballyUnique parent, String uploadedFileName, String mimeType, int fileSize, InputStream fileContents, String attachmentType) throws IOException
      Specified by:
      createAttachment in interface org.kuali.rice.krad.service.AttachmentService
      Overrides:
      createAttachment in class AttachmentServiceImpl
      Throws:
      IOException
      See Also:
      • AttachmentService.createAttachment(GloballyUnique, String, String, int, java.io.InputStream, String)
    • retrieveAttachmentContents

      public InputStream retrieveAttachmentContents(org.kuali.rice.krad.bo.Attachment attachment) throws IOException
      Description copied from class: AttachmentServiceImpl
      /* (non-Javadoc)
      Specified by:
      retrieveAttachmentContents in interface org.kuali.rice.krad.service.AttachmentService
      Overrides:
      retrieveAttachmentContents in class AttachmentServiceImpl
      Throws:
      IOException
      See Also:
      • AttachmentService.retrieveAttachmentContents(org.kuali.rice.krad.bo.Attachment)
    • deleteAttachmentContents

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

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

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

      public org.kuali.rice.krad.bo.Attachment getAttachmentByNoteId(Long noteId)
      Description copied from class: AttachmentServiceImpl
      Retrieves an Attachment by note identifier.
      Specified by:
      getAttachmentByNoteId in interface org.kuali.rice.krad.service.AttachmentService
      Overrides:
      getAttachmentByNoteId in class AttachmentServiceImpl
      See Also:
      • AttachmentService.getAttachmentByNoteId(java.lang.Long)
    • isS3IntegrationEnabled

      protected boolean isS3IntegrationEnabled()
    • isS3DualSaveEnabled

      protected boolean isS3DualSaveEnabled()
    • isS3DualRetrieveEnabled

      protected boolean isS3DualRetrieveEnabled()
    • getRiceS3FileService

      public co.kuali.rice.coreservice.api.attachment.S3FileService getRiceS3FileService()
    • setRiceS3FileService

      public void setRiceS3FileService(co.kuali.rice.coreservice.api.attachment.S3FileService riceS3FileService)
    • getParameterService

      public org.kuali.rice.coreservice.framework.parameter.ParameterService getParameterService()
    • setParameterService

      public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)