Nuxeo ECM Projects 5.6-RC1

org.nuxeo.cm.core.service
Class SearchMailboxesUnrestricted

java.lang.Object
  extended by org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
      extended by org.nuxeo.cm.core.service.SearchMailboxesUnrestricted
Direct Known Subclasses:
SearchMailboxesHeadersUnrestricted

public class SearchMailboxesUnrestricted
extends UnrestrictedSessionRunner

Searches mailboxes using an unrestricted session

Mailboxes have to be searchable to be able to select recipients, but senders may not have access to them.

Author:
Anahide Tchertchian, Laurent Doguin

Field Summary
 
Fields inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
isUnrestricted
 
Constructor Summary
SearchMailboxesUnrestricted(CoreSession session, String pattern, String type)
           
 
Method Summary
 List<Mailbox> getMailboxes()
           
 void run()
          This method will be called by UnrestrictedSessionRunner.runUnrestricted() with UnrestrictedSessionRunner.session available as an unrestricted session.
 
Methods inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
getOriginatingUsername, runUnrestricted, setOriginatingUsername
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchMailboxesUnrestricted

public SearchMailboxesUnrestricted(CoreSession session,
                                   String pattern,
                                   String type)
Method Detail

run

public void run()
         throws ClientException
Description copied from class: UnrestrictedSessionRunner
This method will be called by 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).

Specified by:
run in class UnrestrictedSessionRunner
Throws:
ClientException

getMailboxes

public List<Mailbox> getMailboxes()

Nuxeo ECM Projects 5.6-RC1

Copyright © 2012 Nuxeo SA. All Rights Reserved.