public class ClassificationServiceImpl extends DefaultComponent implements ClassificationService
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
static String |
TYPES_XP |
| Constructor and Description |
|---|
ClassificationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(ComponentContext context)
Activates the component.
|
void |
deactivate(ComponentContext context)
Deactivates the component.
|
List<String> |
getClassifiableDocumentTypes()
This will return only the document types that was contributed as
classifiable.
|
boolean |
isClassifiable(DocumentModel doc)
If this document is classifiable
|
boolean |
isClassifiable(String docType)
If this type of document is classifiable.
|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
applicationStarted, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterContribution, unregisterExtensionpublic static final String NAME
public static final String TYPES_XP
public void activate(ComponentContext context)
ComponentThis method is called by the runtime when a component is activated.
activate in interface Componentactivate in class DefaultComponentcontext - the runtime contextpublic void deactivate(ComponentContext context)
ComponentThis method is called by the runtime when a component is deactivated.
deactivate in interface Componentdeactivate in class DefaultComponentcontext - the runtime contextpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution in class DefaultComponentpublic List<String> getClassifiableDocumentTypes()
ClassificationServicegetClassifiableDocumentTypes in interface ClassificationServicepublic boolean isClassifiable(String docType)
ClassificationServiceClassificationService.isClassifiable(DocumentModel) and to add the facet Classifiable
to the classifiable document instead of use the contribution.isClassifiable in interface ClassificationServicepublic boolean isClassifiable(DocumentModel doc)
ClassificationServiceisClassifiable in interface ClassificationServiceCopyright © 2012 Nuxeo SA. All Rights Reserved.