public interface ClassificationService
Modifier and Type | Interface and Description |
---|---|
static class |
ClassificationService.CLASSIFY_STATE |
static class |
ClassificationService.UNCLASSIFY_STATE |
Modifier and Type | Method and Description |
---|---|
ClassificationResult<ClassificationService.CLASSIFY_STATE> |
classify(DocumentModel classificationFolder,
Collection<DocumentModel> targetDocs)
Try to classify targets document into the classificationFolder.
|
ClassificationResult<ClassificationService.CLASSIFY_STATE> |
classify(DocumentModel classificationFolder,
String resolver,
Collection<DocumentModel> targetDocs)
Classify a list of documents associated them a resolver to perform complex resolution.
|
List<String> |
getClassifiableDocumentTypes()
Deprecated.
|
boolean |
isClassifiable(DocumentModel doc)
If this document is classifiable
|
boolean |
isClassifiable(String docType)
Deprecated.
|
String |
resolveClassification(CoreSession session,
String name,
String targetDocId)
Resolve the expected document id using the resolver contributed as name.
|
ClassificationResult<ClassificationService.UNCLASSIFY_STATE> |
unClassify(DocumentModel classificationFolder,
Collection<String> targetDocs)
Try to unclassify targets document into the classificationFolder.
|
ClassificationResult<ClassificationService.UNCLASSIFY_STATE> |
unClassifyFrom(Collection<DocumentModel> classificationFolders,
String targetId)
Try to unclassify targetId from classificationFolders.
|
@Deprecated List<String> getClassifiableDocumentTypes()
@Deprecated boolean isClassifiable(String docType)
isClassifiable(DocumentModel)
and to addResolver the facet Classifiable
to the classifiable document instead of use the contribution.docType
- boolean isClassifiable(DocumentModel doc)
doc
- ClassificationResult<ClassificationService.CLASSIFY_STATE> classify(DocumentModel classificationFolder, Collection<DocumentModel> targetDocs) throws ClientException
classificationFolder
- expected classification foldertargetDocs
- documents wanted to be classifiedClientException
ClassificationResult<ClassificationService.CLASSIFY_STATE> classify(DocumentModel classificationFolder, String resolver, Collection<DocumentModel> targetDocs) throws ClientException
ClientException
ClassificationResult<ClassificationService.UNCLASSIFY_STATE> unClassify(DocumentModel classificationFolder, Collection<String> targetDocs) throws ClientException
classificationFolder
- expected classification foldertargetDocs
- documents id wanted to be unclassifiedClientException
ClassificationResult<ClassificationService.UNCLASSIFY_STATE> unClassifyFrom(Collection<DocumentModel> classificationFolders, String targetId) throws ClientException
targetId
- whanted to be unclassified from specific containerClientException
String resolveClassification(CoreSession session, String name, String targetDocId) throws ClientException
ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.