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, setOriginatingUsername
public SearchMailboxesUnrestricted(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 UnrestrictedSessionRunner
ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.