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 ([email protected])
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Tell whether docType is handled by the provider.boolean
String[]
Arrays of the document types accepted by the CreationContainerListProvider instance. null or empty array mean any document type is accepted.getName()
Unique name of the CreationContainerListProvider.int
hashCode()
void
setDocTypes
(String[] docTypes) void
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 Details
-
AbstractCreationContainerListProvider
public AbstractCreationContainerListProvider()
-
-
Method Details
-
accept
Description copied from interface:CreationContainerListProvider
Tell whether docType is handled by the provider.- Specified by:
accept
in interfaceCreationContainerListProvider
- Parameters:
docType
- name of the document core type- Returns:
- true is the docType is accepted
-
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 interfaceCreationContainerListProvider
- Returns:
- the name
-
setName
- Specified by:
setName
in interfaceCreationContainerListProvider
-
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 interfaceCreationContainerListProvider
- Returns:
- arrays of document types
-
setDocTypes
- Specified by:
setDocTypes
in interfaceCreationContainerListProvider
-
equals
-
hashCode
public int hashCode()
-