public class AttachmentService extends java.lang.Object implements IAttachment
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FOLDER |
| Constructor and Description |
|---|
AttachmentService(SecurityContext securityContext,
java.lang.String domainUid) |
| Modifier and Type | Method and Description |
|---|---|
Configuration |
getConfiguration()
Retrieves the configuration
|
AttachedFile |
share(java.lang.String name,
Stream document)
Share a mail attachment
|
AttachedFile |
shareDedup(java.lang.String extension,
Stream document)
Share a mail attachment.
|
void |
unShare(java.lang.String url)
Deactivate a link to a shared file
|
public static final java.lang.String FOLDER
public AttachmentService(SecurityContext securityContext, java.lang.String domainUid)
public AttachedFile share(java.lang.String name, Stream document)
IAttachmentshare in interface IAttachmentname - the filenamedocument - Stream of the file dataAttachedFile containg informations about the shared filepublic AttachedFile shareDedup(java.lang.String extension, Stream document)
IAttachmentshareDedup in interface IAttachmentextension - the extension to use for the file (eg. 'png')document - Stream of the file dataAttachedFile containg informations about the shared filepublic void unShare(java.lang.String url)
IAttachmentunShare in interface IAttachmenturl - Link to the shared filepublic Configuration getConfiguration()
IAttachmentgetConfiguration in interface IAttachmentCopyright © 2024. All Rights Reserved.