Class CswsConnector.CategoryPathAccumulator
- java.lang.Object
-
- org.apache.manifoldcf.crawler.connectors.csws.CswsConnector.CategoryPathAccumulator
-
- Enclosing class:
- CswsConnector
protected class CswsConnector.CategoryPathAccumulator extends java.lang.ObjectThis class caches the category path strings associated with a given category object identifier. The goal is to allow reasonably speedy lookup of the path name, so we can put it into the metadata part of the version string.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.Long,java.lang.String[]>attributeMapprotected java.util.Map<java.lang.Long,java.lang.String>categoryPathMapprotected CswsConnector.CswsContextllc
-
Constructor Summary
Constructors Constructor Description CategoryPathAccumulator(CswsConnector.CswsContext llc)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String[]findAttributes(int catID)Find a set of attributes given a category IDprotected java.lang.StringfindPath(long catID)Find a category path given a category IDjava.lang.String[]getCategoryPathsAttributeNames(long[] catIDs)Get a specified set of packed category paths with attribute names, given the category identifiersprotected java.lang.StringgetObjectPath(CswsConnector.ObjectInformation currentObject)Get the complete path for an object.
-
-
-
Field Detail
-
llc
protected final CswsConnector.CswsContext llc
-
categoryPathMap
protected final java.util.Map<java.lang.Long,java.lang.String> categoryPathMap
-
attributeMap
protected final java.util.Map<java.lang.Long,java.lang.String[]> attributeMap
-
-
Constructor Detail
-
CategoryPathAccumulator
public CategoryPathAccumulator(CswsConnector.CswsContext llc)
Constructor
-
-
Method Detail
-
getCategoryPathsAttributeNames
public java.lang.String[] getCategoryPathsAttributeNames(long[] catIDs) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruptionGet a specified set of packed category paths with attribute names, given the category identifiers- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
findPath
protected java.lang.String findPath(long catID) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruptionFind a category path given a category ID- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
getObjectPath
protected java.lang.String getObjectPath(CswsConnector.ObjectInformation currentObject) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruption
Get the complete path for an object.- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
findAttributes
protected java.lang.String[] findAttributes(int catID) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruptionFind a set of attributes given a category ID- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
-