Nuxeo Enterprise Platform 5.4

org.nuxeo.cm.core.adapter
Class MailboxAdapterFactory

java.lang.Object
  extended by org.nuxeo.cm.core.adapter.MailboxAdapterFactory
All Implemented Interfaces:
org.nuxeo.ecm.core.api.adapter.DocumentAdapterFactory

public class MailboxAdapterFactory
extends Object
implements org.nuxeo.ecm.core.api.adapter.DocumentAdapterFactory

Author:
arussel

Constructor Summary
MailboxAdapterFactory()
           
 
Method Summary
static boolean checkDocument(org.nuxeo.ecm.core.api.DocumentModel doc)
          Returns false if document does not have MailboxConstants.MAILBOX_FACET
 Object getAdapter(org.nuxeo.ecm.core.api.DocumentModel doc, Class arg1)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailboxAdapterFactory

public MailboxAdapterFactory()
Method Detail

getAdapter

public Object getAdapter(org.nuxeo.ecm.core.api.DocumentModel doc,
                         Class arg1)
Specified by:
getAdapter in interface org.nuxeo.ecm.core.api.adapter.DocumentAdapterFactory

checkDocument

public static boolean checkDocument(org.nuxeo.ecm.core.api.DocumentModel doc)
Returns false if document does not have MailboxConstants.MAILBOX_FACET

Parameters:
doc -
Throws:
org.nuxeo.ecm.core.api.ClientRuntimeException - if document has the required facet but does not have the required MailboxConstants.MAILBOX_SCHEMA

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.