Class AbstractCreationContainerListProvider
- java.lang.Object
-
- org.nuxeo.ecm.platform.filemanager.service.extension.AbstractCreationContainerListProvider
-
- All Implemented Interfaces:
CreationContainerListProvider
- Direct Known Subclasses:
DefaultCreationContainerListProvider
public abstract class AbstractCreationContainerListProvider extends Object implements CreationContainerListProvider
Helper class to contribute CreationContainerListProvider implementation to the FileManagerService.- Author:
- Olivier Grisel (ogrisel@nuxeo.com)
-
-
Constructor Summary
Constructors Constructor Description AbstractCreationContainerListProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(String docType)Tell whether docType is handled by the provider.booleanequals(Object o)String[]getDocTypes()Arrays of the document types accepted by the CreationContainerListProvider instance.StringgetName()Unique name of the CreationContainerListProvider.inthashCode()voidsetDocTypes(String[] docTypes)voidsetName(String name)-
Methods inherited from class java.lang.Object
clone, finalize, 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(String docType)
Description copied from interface:CreationContainerListProviderTell whether docType is handled by the provider.- Specified by:
acceptin interfaceCreationContainerListProvider- Parameters:
docType- name of the document core type- Returns:
- true is the docType is accepted
-
getName
public String getName()
Description copied from interface:CreationContainerListProviderUnique name of the CreationContainerListProvider. The name of a provider should be used for the equals.- Specified by:
getNamein interfaceCreationContainerListProvider- Returns:
- the name
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceCreationContainerListProvider
-
getDocTypes
public String[] getDocTypes()
Description copied from interface:CreationContainerListProviderArrays of the document types accepted by the CreationContainerListProvider instance. null or empty array mean any document type is accepted.- Specified by:
getDocTypesin interfaceCreationContainerListProvider- Returns:
- arrays of document types
-
setDocTypes
public void setDocTypes(String[] docTypes)
- Specified by:
setDocTypesin interfaceCreationContainerListProvider
-
-