public class DataProcessor extends Object implements IDataProcessor
| Modifier and Type | Class and Description |
|---|---|
static class |
DataProcessor.ProcessorStatus |
| Modifier and Type | Field and Description |
|---|---|
protected AclSummaryExtractor |
acl |
protected Collection<DocumentSummary> |
allDocuments |
protected int |
documentMinDepth |
protected int |
documentTreeDepth |
protected IContentFilter |
filter |
protected String |
information |
protected static org.apache.commons.logging.Log |
log |
protected int |
n |
protected SortedSet<String> |
permissions |
protected DataProcessor.ProcessorStatus |
status |
protected TicToc |
t |
protected SortedSet<String> |
userAndGroups |
| Constructor and Description |
|---|
DataProcessor(IContentFilter filter) |
| Modifier and Type | Method and Description |
|---|---|
void |
analyze(CoreSession session) |
void |
analyze(CoreSession session,
DocumentModel doc,
int timeout) |
protected int |
computeDepth(DocumentModel m) |
protected void |
computeGlobalAclSummary(DocumentModel doc)
store set of users and set of permission types
|
protected DocumentSummary |
computeSummary(DocumentModel doc)
Extract usefull document information for report rendering
|
protected void |
doAnalyze(CoreSession session,
DocumentModel root,
int timeout) |
Collection<DocumentSummary> |
getAllDocuments()
Ranked so that appear like a tree.
|
int |
getDocumentTreeMaxDepth()
The maximum doc tree depth
|
int |
getDocumentTreeMinDepth()
The minimum doc tree depth, 0 if analysis was run on repository root, >0
if the analysis was run on a child document of repository root.
|
String |
getInformation()
Some text information related to the status
|
int |
getNumberOfDocuments() |
Set<String> |
getPermissions() |
DataProcessor.ProcessorStatus |
getStatus()
A status concerning data analysis
|
Set<String> |
getUserAndGroups() |
void |
init() |
protected void |
initSummarySet() |
void |
log() |
protected void |
processDocument(DocumentModel doc)
Extract relevant information from document model, to only keep a
DocumentSummary and a few general informations about the document
repository. |
protected int |
updateTreeSize(DocumentSummary da)
report global tree size
|
protected static org.apache.commons.logging.Log log
protected int documentMinDepth
protected int documentTreeDepth
protected DataProcessor.ProcessorStatus status
protected String information
protected Collection<DocumentSummary> allDocuments
protected IContentFilter filter
protected AclSummaryExtractor acl
protected int n
protected TicToc t
public DataProcessor(IContentFilter filter)
public void analyze(CoreSession session) throws ClientException
analyze in interface IDataProcessorClientExceptionpublic void analyze(CoreSession session, DocumentModel doc, int timeout) throws ClientException
analyze in interface IDataProcessorClientExceptionpublic void init()
protected void doAnalyze(CoreSession session, DocumentModel root, int timeout) throws ClientException
ClientExceptionprotected void initSummarySet()
protected void processDocument(DocumentModel doc) throws ClientException
DocumentSummary and a few general informations about the document
repository.ClientExceptionprotected DocumentSummary computeSummary(DocumentModel doc) throws ClientException
ClientExceptionprotected int computeDepth(DocumentModel m)
protected int updateTreeSize(DocumentSummary da)
protected void computeGlobalAclSummary(DocumentModel doc) throws ClientException
ClientExceptionpublic Collection<DocumentSummary> getAllDocuments()
getAllDocuments in interface IDataProcessorpublic Set<String> getUserAndGroups()
getUserAndGroups in interface IDataProcessorpublic Set<String> getPermissions()
getPermissions in interface IDataProcessorpublic int getDocumentTreeMaxDepth()
IDataProcessorgetDocumentTreeMaxDepth in interface IDataProcessorpublic int getDocumentTreeMinDepth()
IDataProcessorgetDocumentTreeMinDepth in interface IDataProcessorpublic int getNumberOfDocuments()
getNumberOfDocuments in interface IDataProcessorpublic DataProcessor.ProcessorStatus getStatus()
IDataProcessorgetStatus in interface IDataProcessorpublic String getInformation()
IDataProcessorgetInformation in interface IDataProcessorpublic void log()
Copyright © 2020 Nuxeo SA. All rights reserved.