public class MailboxManagementServiceImpl extends Object implements MailboxManagementService
Constructor and Description |
---|
MailboxManagementServiceImpl() |
Modifier and Type | Method and Description |
---|---|
List<Mailbox> |
createPersonalMailboxes(CoreSession session,
String user)
Create the personal Mailbox with the registered
|
Mailbox |
getMailbox(CoreSession session,
String muid)
Returns the mailbox with given unique identifier.
|
List<Mailbox> |
getMailboxes(CoreSession session,
List<String> muids)
Returns the mailboxes with given unique identifiers.
|
List<MailboxHeader> |
getMailboxesHeaders(CoreSession session,
List<String> muids)
Returns the mailboxes with given unique identifiers and a session.
|
MailboxHeader |
getMailboxHeader(CoreSession session,
String muid) |
List<Mailbox> |
getUserMailboxes(CoreSession session,
String user)
Returns all mailboxes for given user.
|
Mailbox |
getUserPersonalMailbox(CoreSession session,
String user)
Returns the personal mailbox of the given user.
|
Mailbox |
getUserPersonalMailboxForEmail(CoreSession session,
String userEmail)
Returns a mailbox for given email
|
String |
getUserPersonalMailboxId(String user)
Retrieves the Personal Mailbox Id from the Mailbox Creator.
|
boolean |
hasMailbox(CoreSession session,
String muid)
Returns true if a mailbox with given id exists
|
boolean |
hasUserPersonalMailbox(CoreSession session,
String userId)
Test if the user has a personal mailbox created
|
List<MailboxHeader> |
searchMailboxes(CoreSession session,
String pattern,
String type)
Search mailboxes with given pattern
|
public Mailbox getMailbox(CoreSession session, String muid)
MailboxManagementService
getMailbox
in interface MailboxManagementService
muid
- User idpublic boolean hasMailbox(CoreSession session, String muid)
MailboxManagementService
hasMailbox
in interface MailboxManagementService
muid
- mailbox idpublic MailboxHeader getMailboxHeader(CoreSession session, String muid)
getMailboxHeader
in interface MailboxManagementService
public List<Mailbox> getMailboxes(CoreSession session, List<String> muids)
MailboxManagementService
getMailboxes
in interface MailboxManagementService
session
- a Core Sessionmuids
- Users idspublic List<MailboxHeader> getMailboxesHeaders(CoreSession session, List<String> muids)
MailboxManagementService
getMailboxesHeaders
in interface MailboxManagementService
public List<Mailbox> getUserMailboxes(CoreSession session, String user)
MailboxManagementService
getUserMailboxes
in interface MailboxManagementService
user
- User idpublic Mailbox getUserPersonalMailbox(CoreSession session, String user)
MailboxManagementService
getUserPersonalMailbox
in interface MailboxManagementService
user
- User idpublic List<Mailbox> createPersonalMailboxes(CoreSession session, String user)
MailboxManagementService
createPersonalMailboxes
in interface MailboxManagementService
public Mailbox getUserPersonalMailboxForEmail(CoreSession session, String userEmail)
MailboxManagementService
getUserPersonalMailboxForEmail
in interface MailboxManagementService
public List<MailboxHeader> searchMailboxes(CoreSession session, String pattern, String type)
MailboxManagementService
searchMailboxes
in interface MailboxManagementService
pattern
- matching the box titletype
- mailbox type (generic, personal, etc... or null to match
all)public boolean hasUserPersonalMailbox(CoreSession session, String userId)
MailboxManagementService
hasUserPersonalMailbox
in interface MailboxManagementService
public String getUserPersonalMailboxId(String user)
getUserPersonalMailboxId
in interface MailboxManagementService
user
- Owner of the mailboxCopyright © 2011 Nuxeo SA. All Rights Reserved.