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  DocumentSummaryand 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 SortedSet<String> userAndGroups
protected SortedSet<String> permissions
protected DataProcessor.ProcessorStatus status
protected String information
protected Collection<DocumentSummary> allDocuments
protected IContentFilter filter
protected AclSummaryExtractor acl
protected int n
public DataProcessor(IContentFilter filter)
public void analyze(CoreSession session)
analyze in interface IDataProcessorpublic void analyze(CoreSession session, DocumentModel doc, int timeout)
analyze in interface IDataProcessorpublic void init()
protected void doAnalyze(CoreSession session, DocumentModel root, int timeout)
protected void initSummarySet()
protected void processDocument(DocumentModel doc)
DocumentSummary and a few general
 informations about the document repository.protected DocumentSummary computeSummary(DocumentModel doc)
protected int computeDepth(DocumentModel m)
protected int updateTreeSize(DocumentSummary da)
protected void computeGlobalAclSummary(DocumentModel doc)
public 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 © 2018 Nuxeo. All rights reserved.