Class LivelinkConnector.CategoryPathAccumulator
- java.lang.Object
-
- org.apache.manifoldcf.crawler.connectors.livelink.LivelinkConnector.CategoryPathAccumulator
-
- Enclosing class:
- LivelinkConnector
protected class LivelinkConnector.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.Integer,java.lang.String[]>attributeMapprotected java.util.Map<java.lang.Integer,java.lang.String>categoryPathMapprotected LivelinkConnector.LivelinkContextllc
-
Constructor Summary
Constructors Constructor Description CategoryPathAccumulator(LivelinkConnector.LivelinkContext 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(int catID)Find a category path given a category IDjava.lang.String[]getCategoryPathsAttributeNames(int[] catIDs)Get a specified set of packed category paths with attribute names, given the category identifiersprotected java.lang.StringgetObjectPath(LivelinkConnector.ObjectInformation currentObject)Get the complete path for an object.
-
-
-
Field Detail
-
llc
protected final LivelinkConnector.LivelinkContext llc
-
categoryPathMap
protected final java.util.Map<java.lang.Integer,java.lang.String> categoryPathMap
-
attributeMap
protected final java.util.Map<java.lang.Integer,java.lang.String[]> attributeMap
-
-
Constructor Detail
-
CategoryPathAccumulator
public CategoryPathAccumulator(LivelinkConnector.LivelinkContext llc)
Constructor
-
-
Method Detail
-
getCategoryPathsAttributeNames
public java.lang.String[] getCategoryPathsAttributeNames(int[] 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(int 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(LivelinkConnector.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
-
-