public class BaseMailModule extends Object
Constructor and Description |
---|
BaseMailModule() |
Modifier and Type | Method and Description |
---|---|
static NodeMail |
copy(String user,
NodeMail srcMailNode,
String dstPath,
NodeFolder dstFldNode,
ExtendedAttributes extAttr)
Is invoked from DbMailNode and DbFolderNode.
|
static NodeMail |
create(String user,
String parentPath,
NodeFolder parentFolder,
String name,
long size,
String from,
String[] reply,
String[] to,
String[] cc,
String[] bcc,
Calendar sentDate,
Calendar receivedDate,
String subject,
String content,
String mimeType,
Set<String> keywords,
Set<String> categories,
Ref<FileUploadResponse> fuResponse)
Create a new mail
|
static Mail |
getProperties(String user,
NodeMail nMail)
Get folder properties
|
static boolean |
hasLockedNodes(String mailUuid)
Check recursively if the mail contains locked nodes
|
static boolean |
hasWriteAccess(String mailUuid)
Check if a node has removable childs TODO: Is this necessary?
|
public static NodeMail create(String user, String parentPath, NodeFolder parentFolder, String name, long size, String from, String[] reply, String[] to, String[] cc, String[] bcc, Calendar sentDate, Calendar receivedDate, String subject, String content, String mimeType, Set<String> keywords, Set<String> categories, Ref<FileUploadResponse> fuResponse) throws PathNotFoundException, AccessDeniedException, ItemExistsException, AutomationException, DatabaseException
public static Mail getProperties(String user, NodeMail nMail) throws PathNotFoundException, DatabaseException
public static NodeMail copy(String user, NodeMail srcMailNode, String dstPath, NodeFolder dstFldNode, ExtendedAttributes extAttr) throws ItemExistsException, UserQuotaExceededException, PathNotFoundException, AccessDeniedException, AutomationException, DatabaseException, IOException
public static boolean hasLockedNodes(String mailUuid) throws PathNotFoundException, DatabaseException, RepositoryException
public static boolean hasWriteAccess(String mailUuid) throws PathNotFoundException, DatabaseException, RepositoryException
Copyright © 2016. All rights reserved.