Class LivelinkConnector.CategoryPathAccumulator

  • Enclosing class:
    LivelinkConnector

    protected class LivelinkConnector.CategoryPathAccumulator
    extends java.lang.Object
    This 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 Detail

      • 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
    • Method Detail

      • getCategoryPathsAttributeNames

        public java.lang.String[] getCategoryPathsAttributeNames​(int[] catIDs)
                                                          throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
                                                                 org.apache.manifoldcf.agents.interfaces.ServiceInterruption
        Get a specified set of packed category paths with attribute names, given the category identifiers
        Throws:
        org.apache.manifoldcf.core.interfaces.ManifoldCFException
        org.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.ServiceInterruption
        Find a category path given a category ID
        Throws:
        org.apache.manifoldcf.core.interfaces.ManifoldCFException
        org.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.ManifoldCFException
        org.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.ServiceInterruption
        Find a set of attributes given a category ID
        Throws:
        org.apache.manifoldcf.core.interfaces.ManifoldCFException
        org.apache.manifoldcf.agents.interfaces.ServiceInterruption