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:
org.kuali.rice.krad.service.AttachmentService
-
Field Summary
Fields inherited from class org.kuali.rice.krad.service.impl.AttachmentServiceImpl
dataObjectService, kualiConfigurationService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kuali.rice.krad.bo.AttachmentcreateAttachment(org.kuali.rice.core.api.mo.common.GloballyUnique parent, String uploadedFileName, String mimeType, int fileSize, InputStream fileContents, String attachmentType) voiddeleteAttachmentContents(org.kuali.rice.krad.bo.Attachment attachment) voiddeletePendingAttachmentsModifiedBefore(long modificationTime) org.kuali.rice.krad.bo.AttachmentgetAttachmentByNoteId(Long noteId) Retrieves an Attachment by note identifier.org.kuali.rice.coreservice.framework.parameter.ParameterServiceco.kuali.rice.coreservice.api.attachment.S3FileServiceprotected booleanprotected booleanprotected booleanvoidmoveAttachmentWherePending(org.kuali.rice.krad.bo.Note note) retrieveAttachmentContents(org.kuali.rice.krad.bo.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 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:
createAttachmentin interfaceorg.kuali.rice.krad.service.AttachmentService- Overrides:
createAttachmentin classAttachmentServiceImpl- Throws:
IOException- See Also:
-
retrieveAttachmentContents
public InputStream retrieveAttachmentContents(org.kuali.rice.krad.bo.Attachment attachment) throws IOException Description copied from class:AttachmentServiceImpl/* (non-Javadoc)- Specified by:
retrieveAttachmentContentsin interfaceorg.kuali.rice.krad.service.AttachmentService- Overrides:
retrieveAttachmentContentsin classAttachmentServiceImpl- Throws:
IOException- See Also:
-
deleteAttachmentContents
public void deleteAttachmentContents(org.kuali.rice.krad.bo.Attachment attachment) - Specified by:
deleteAttachmentContentsin interfaceorg.kuali.rice.krad.service.AttachmentService- Overrides:
deleteAttachmentContentsin classAttachmentServiceImpl
-
moveAttachmentWherePending
public void moveAttachmentWherePending(org.kuali.rice.krad.bo.Note note) - Specified by:
moveAttachmentWherePendingin interfaceorg.kuali.rice.krad.service.AttachmentService- Overrides:
moveAttachmentWherePendingin classAttachmentServiceImpl
-
deletePendingAttachmentsModifiedBefore
public void deletePendingAttachmentsModifiedBefore(long modificationTime) - Specified by:
deletePendingAttachmentsModifiedBeforein interfaceorg.kuali.rice.krad.service.AttachmentService- Overrides:
deletePendingAttachmentsModifiedBeforein classAttachmentServiceImpl- See Also:
-
getAttachmentByNoteId
Description copied from class:AttachmentServiceImplRetrieves an Attachment by note identifier.- Specified by:
getAttachmentByNoteIdin interfaceorg.kuali.rice.krad.service.AttachmentService- 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)
-