public interface CreationContainerListProvider
The provider should tell for a given (handled) document type the list of candidate container the user can create new document in.
Modifier and Type | Method and Description |
---|---|
boolean |
accept(String docType)
Tell whether docType is handled by the provider.
|
DocumentModelList |
getCreationContainerList(CoreSession documentManager,
String docType)
Build the list of candidate containers for the given document type and
session.
|
String[] |
getDocTypes()
Arrays of the document types accepted by the
CreationContainerListProvider instance.
|
String |
getName()
Unique name of the CreationContainerListProvider.
|
void |
setDocTypes(String[] docTypes) |
void |
setName(String name) |
String getName()
void setName(String name)
String[] getDocTypes()
void setDocTypes(String[] docTypes)
boolean accept(String docType)
docType
- name of the document core typeDocumentModelList getCreationContainerList(CoreSession documentManager, String docType) throws Exception
documentManager
- the current session contextdocType
- the type of document to createException
Copyright © 2011 Nuxeo SA. All Rights Reserved.