Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.filemanager.service.extension
Class AbstractCreationContainerListProvider

java.lang.Object
  extended by org.nuxeo.ecm.platform.filemanager.service.extension.AbstractCreationContainerListProvider
All Implemented Interfaces:
CreationContainerListProvider
Direct Known Subclasses:
DefaultCreationContainerListProvider

public abstract class AbstractCreationContainerListProvider
extends java.lang.Object
implements CreationContainerListProvider

Helper class to contribute CreationContainerListProvider implementation to the FileManagerService.

Author:
Olivier Grisel (ogrisel@nuxeo.com)

Constructor Summary
AbstractCreationContainerListProvider()
           
 
Method Summary
 boolean accept(java.lang.String docType)
          Tell whether docType is handled by the provider.
 boolean equals(java.lang.Object o)
           
 java.lang.String[] getDocTypes()
          Arrays of the document types accepted by the CreationContainerListProvider instance. null or empty array mean any document type is accepted.
 java.lang.String getName()
          Unique name of the CreationContainerListProvider.
 int hashCode()
           
 void setDocTypes(java.lang.String[] docTypes)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuxeo.ecm.platform.filemanager.service.extension.CreationContainerListProvider
getCreationContainerList
 

Constructor Detail

AbstractCreationContainerListProvider

public AbstractCreationContainerListProvider()
Method Detail

accept

public boolean accept(java.lang.String docType)
Description copied from interface: CreationContainerListProvider
Tell whether docType is handled by the provider.

Specified by:
accept in interface CreationContainerListProvider
Parameters:
docType - name of the document core type
Returns:
true is the docType is accepted

getName

public java.lang.String getName()
Description copied from interface: CreationContainerListProvider
Unique name of the CreationContainerListProvider. The name of a provider should be used for the equals.

Specified by:
getName in interface CreationContainerListProvider
Returns:
the name

setName

public void setName(java.lang.String name)
Specified by:
setName in interface CreationContainerListProvider

getDocTypes

public java.lang.String[] getDocTypes()
Description copied from interface: CreationContainerListProvider
Arrays of the document types accepted by the CreationContainerListProvider instance. null or empty array mean any document type is accepted.

Specified by:
getDocTypes in interface CreationContainerListProvider
Returns:
arrays of document types

setDocTypes

public void setDocTypes(java.lang.String[] docTypes)
Specified by:
setDocTypes in interface CreationContainerListProvider

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.