public class SearchMailboxesUnrestricted extends UnrestrictedSessionRunner
Mailboxes have to be searchable to be able to select recipients, but senders may not have access to them.
isUnrestricted| Constructor and Description |
|---|
SearchMailboxesUnrestricted(CoreSession session,
String pattern,
String type) |
| Modifier and Type | Method and Description |
|---|---|
List<Mailbox> |
getMailboxes() |
void |
run()
This method will be called by
UnrestrictedSessionRunner.runUnrestricted() with
UnrestrictedSessionRunner.session available as an unrestricted session. |
getOriginatingUsername, runUnrestricted, setOriginatingUsernamepublic SearchMailboxesUnrestricted(CoreSession session, String pattern, String type)
public void run()
throws ClientException
UnrestrictedSessionRunnerUnrestrictedSessionRunner.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 UnrestrictedSessionRunnerClientExceptionCopyright © 2012 Nuxeo SA. All Rights Reserved.