Nuxeo Enterprise Platform 5.4

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 org.nuxeo.ecm.core.api.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(org.nuxeo.ecm.core.api.CoreSession session, String pattern, String type)
           
 
Method Summary
 List<Mailbox> getMailboxes()
           
 void run()
           
 
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(org.nuxeo.ecm.core.api.CoreSession session,
                                   String pattern,
                                   String type)
Method Detail

run

public void run()
         throws org.nuxeo.ecm.core.api.ClientException
Specified by:
run in class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
Throws:
org.nuxeo.ecm.core.api.ClientException

getMailboxes

public List<Mailbox> getMailboxes()

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.