Class CswsConnector.SystemMetadataDescription

  • Enclosing class:
    CswsConnector

    protected class CswsConnector.SystemMetadataDescription
    extends java.lang.Object
    Class that tracks paths associated with nodes, and also keeps track of the name of the metadata attribute to use for the path.
    • Field Detail

      • pathAttributeName

        protected final java.lang.String pathAttributeName
      • pathSeparator

        protected final java.lang.String pathSeparator
      • pathMap

        protected final java.util.Map<java.lang.String,​java.lang.String> pathMap
      • matchMap

        protected final MatchMap matchMap
      • aclMap

        protected final java.util.Set<java.lang.String> aclMap
      • securityOn

        protected final boolean securityOn
      • filterString

        protected final java.lang.String filterString
      • holder

        protected final java.util.Set<java.lang.String> holder
      • includeAllMetadata

        protected final boolean includeAllMetadata
    • Constructor Detail

      • SystemMetadataDescription

        public SystemMetadataDescription​(CswsConnector.CswsContext llc,
                                         org.apache.manifoldcf.core.interfaces.Specification spec)
                                  throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
                                         org.apache.manifoldcf.agents.interfaces.ServiceInterruption
        Constructor
        Throws:
        org.apache.manifoldcf.core.interfaces.ManifoldCFException
        org.apache.manifoldcf.agents.interfaces.ServiceInterruption
    • Method Detail

      • includeAllMetadata

        public boolean includeAllMetadata()
      • getMetadataAttributes

        public java.lang.String[] getMetadataAttributes()
      • getFilterString

        public java.lang.String getFilterString()
      • getAcls

        public java.lang.String[] getAcls()
      • getPathAttributeName

        public java.lang.String getPathAttributeName()
        Get the path attribute name.
        Returns:
        the path attribute name, or null if none specified.
      • getPathSeparator

        public java.lang.String getPathSeparator()
        Get the path separator.
      • getPathAttributeValue

        public java.lang.String getPathAttributeValue​(java.lang.String documentIdentifier)
                                               throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
                                                      org.apache.manifoldcf.agents.interfaces.ServiceInterruption
        Given an identifier, get the translated string that goes into the metadata.
        Throws:
        org.apache.manifoldcf.core.interfaces.ManifoldCFException
        org.apache.manifoldcf.agents.interfaces.ServiceInterruption
      • getMatchMapString

        public java.lang.String getMatchMapString()
        Get the matchmap string.
      • getNodePathString

        public java.lang.String getNodePathString​(java.lang.String documentIdentifier)
                                           throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
                                                  org.apache.manifoldcf.agents.interfaces.ServiceInterruption
        For a given node, get its path.
        Throws:
        org.apache.manifoldcf.core.interfaces.ManifoldCFException
        org.apache.manifoldcf.agents.interfaces.ServiceInterruption