public class SearchMailboxesHeadersUnrestricted extends SearchMailboxesUnrestricted
Mailboxes have to be searchable to be able to select recipients, but senders may not have access to them.
isUnrestricted
Constructor and Description |
---|
SearchMailboxesHeadersUnrestricted(CoreSession session,
String pattern,
String type) |
Modifier and Type | Method and Description |
---|---|
List<MailboxHeader> |
getMailboxesHeaders() |
void |
run()
This method will be called by
UnrestrictedSessionRunner.runUnrestricted() with
UnrestrictedSessionRunner.session available as an unrestricted session. |
getMailboxes
getOriginatingUsername, runUnrestricted, setOriginatingUsername
public SearchMailboxesHeadersUnrestricted(CoreSession session, String pattern, String type)
public void run() throws ClientException
UnrestrictedSessionRunner
UnrestrictedSessionRunner.runUnrestricted()
with
UnrestrictedSessionRunner.session
available as an unrestricted session.
It can also be called directly in which case the UnrestrictedSessionRunner.session
available will be the one passed to
#UnrestrictedSessionRunner(CoreSession)
.
run
in class SearchMailboxesUnrestricted
ClientException
public List<MailboxHeader> getMailboxesHeaders()
Copyright © 2013 Nuxeo SA. All Rights Reserved.