Package co.kuali.rice.krad.service.impl
Class S3AttachmentServiceImpl
java.lang.Object
org.kuali.rice.krad.service.impl.AttachmentServiceImpl
co.kuali.rice.krad.service.impl.S3AttachmentServiceImpl
- All Implemented Interfaces:
AttachmentService
-
Field Summary
Fields inherited from class org.kuali.rice.krad.service.impl.AttachmentServiceImpl
dataObjectService, kualiConfigurationService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAttachment(org.kuali.rice.core.api.mo.common.GloballyUnique parent, String uploadedFileName, String mimeType, int fileSize, InputStream fileContents, String attachmentType) voiddeleteAttachmentContents(Attachment attachment) voiddeletePendingAttachmentsModifiedBefore(long modificationTime) getAttachmentByNoteId(Long noteId) Retrieves an Attachment by note identifier.org.kuali.rice.coreservice.framework.parameter.ParameterServiceco.kuali.rice.coreservice.api.attachment.S3FileServiceprotected booleanprotected booleanprotected booleanvoidretrieveAttachmentContents(Attachment attachment) /* (non-Javadoc)voidsetParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService) voidsetRiceS3FileService(co.kuali.rice.coreservice.api.attachment.S3FileService riceS3FileService) Methods inherited from class org.kuali.rice.krad.service.impl.AttachmentServiceImpl
getDocumentDirectory, getKualiConfigurationService, moveAttachmentFromPending, setDataObjectService, setKualiConfigurationService, writeInputStreamToFileStorage
-
Constructor Details
-
S3AttachmentServiceImpl
public S3AttachmentServiceImpl()
-
-
Method Details
-
createAttachment
public 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:
createAttachmentin interfaceAttachmentService- Overrides:
createAttachmentin classAttachmentServiceImpl- Throws:
IOException- See Also:
-
retrieveAttachmentContents
Description copied from class:AttachmentServiceImpl/* (non-Javadoc)- Specified by:
retrieveAttachmentContentsin interfaceAttachmentService- Overrides:
retrieveAttachmentContentsin classAttachmentServiceImpl- Throws:
IOException- See Also:
-
deleteAttachmentContents
- Specified by:
deleteAttachmentContentsin interfaceAttachmentService- Overrides:
deleteAttachmentContentsin classAttachmentServiceImpl
-
moveAttachmentWherePending
- Specified by:
moveAttachmentWherePendingin interfaceAttachmentService- Overrides:
moveAttachmentWherePendingin classAttachmentServiceImpl
-
deletePendingAttachmentsModifiedBefore
public void deletePendingAttachmentsModifiedBefore(long modificationTime) - Specified by:
deletePendingAttachmentsModifiedBeforein interfaceAttachmentService- Overrides:
deletePendingAttachmentsModifiedBeforein classAttachmentServiceImpl- See Also:
-
getAttachmentByNoteId
Description copied from class:AttachmentServiceImplRetrieves an Attachment by note identifier.- Specified by:
getAttachmentByNoteIdin interfaceAttachmentService- Overrides:
getAttachmentByNoteIdin classAttachmentServiceImpl- See Also:
-
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)
-