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)
IAttachment
share
in interface IAttachment
name
- the filenamedocument
- Stream
of the file dataAttachedFile
containg informations about the shared filepublic AttachedFile shareDedup(java.lang.String extension, Stream document)
IAttachment
shareDedup
in interface IAttachment
extension
- 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)
IAttachment
unShare
in interface IAttachment
url
- Link to the shared filepublic Configuration getConfiguration()
IAttachment
getConfiguration
in interface IAttachment
Copyright © 2021. All Rights Reserved.