| org.kuali.core.service.AttachmentService
All known Subclasses: org.kuali.core.service.impl.AttachmentServiceImpl,
AttachmentService | public interface AttachmentService (Code) | | Defines the methods common to all AttachmentService implementations
|
deleteAttachmentContents | public void deleteAttachmentContents(Attachment attachment)(Code) | | Deletes a given DocumentAttachment contents from the corresponding Attachment object
Parameters: documentAttachment - |
deletePendingAttachmentsModifiedBefore | public void deletePendingAttachmentsModifiedBefore(long modificationTime)(Code) | | Deletes pending attachments that were last modified before the given time. Java does not have easy access to a file's creation
time, so we use modification time instead.
Parameters: modificationTime - the number of milliseconds since "the epoch" (i.e.January 1, 1970, 00:00:00 GMT). java.util.Date and java.util.Calendar'smethods return time in this format. If a pending attachment was modified before this time, then it will be deleted (unless an error occurs) |
moveAttachmentsWherePending | public void moveAttachmentsWherePending(List notes, String objectId)(Code) | | Moves attachments on notes from the pending directory to the real one
Parameters: notes - Parameters: objectId - |
retrieveAttachmentContents | public InputStream retrieveAttachmentContents(Attachment attachment) throws IOException(Code) | | Retrieves a given Attachments contents from the corresponding Attachment object
Parameters: documentAttachment - OutputStream throws: IOException - |
|
|