Class QueryCollectionImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      QueryCollectionImpl​(java.lang.String name, java.util.Map<org.alfresco.service.namespace.QName,​org.alfresco.service.cmr.search.QueryParameterDefinition> parameters, org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsParameterDefinition​(org.alfresco.service.namespace.QName qName)
      Does this collection contain a query for the given QName?
      boolean containsQueryDefinition​(org.alfresco.service.namespace.QName qName)
      Does this collection contain a query for the given QName?
      static QueryCollection createQueryCollection​(org.dom4j.Element element, org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, org.alfresco.service.namespace.NamespacePrefixResolver nspr)  
      java.lang.String getName()
      The name of the query collection
      org.alfresco.service.namespace.NamespacePrefixResolver getNamespacePrefixResolver()
      Return the mechanism that this query definition uses to map namespace prefixes to URIs.
      org.alfresco.service.cmr.search.QueryParameterDefinition getParameterDefinition​(org.alfresco.service.namespace.QName qName)
      Get a query definition by QName.
      CannedQueryDef getQueryDefinition​(org.alfresco.service.namespace.QName qName)
      Get a query definition by QName.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QueryCollectionImpl

        public QueryCollectionImpl​(java.lang.String name,
                                   java.util.Map<org.alfresco.service.namespace.QName,​org.alfresco.service.cmr.search.QueryParameterDefinition> parameters,
                                   org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver)
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: QueryCollection
        The name of the query collection
        Specified by:
        getName in interface QueryCollection
        Returns:
        String
      • containsQueryDefinition

        public boolean containsQueryDefinition​(org.alfresco.service.namespace.QName qName)
        Description copied from interface: QueryCollection
        Does this collection contain a query for the given QName?
        Specified by:
        containsQueryDefinition in interface QueryCollection
        Parameters:
        qName - QName
        Returns:
        boolean
      • getQueryDefinition

        public CannedQueryDef getQueryDefinition​(org.alfresco.service.namespace.QName qName)
        Description copied from interface: QueryCollection
        Get a query definition by QName.
        Specified by:
        getQueryDefinition in interface QueryCollection
        Parameters:
        qName - QName
        Returns:
        CannedQueryDef
      • containsParameterDefinition

        public boolean containsParameterDefinition​(org.alfresco.service.namespace.QName qName)
        Description copied from interface: QueryCollection
        Does this collection contain a query for the given QName?
        Specified by:
        containsParameterDefinition in interface QueryCollection
        Parameters:
        qName - QName
        Returns:
        boolean
      • getParameterDefinition

        public org.alfresco.service.cmr.search.QueryParameterDefinition getParameterDefinition​(org.alfresco.service.namespace.QName qName)
        Description copied from interface: QueryCollection
        Get a query definition by QName.
        Specified by:
        getParameterDefinition in interface QueryCollection
        Parameters:
        qName - QName
        Returns:
        QueryParameterDefinition
      • getNamespacePrefixResolver

        public org.alfresco.service.namespace.NamespacePrefixResolver getNamespacePrefixResolver()
        Description copied from interface: QueryCollection
        Return the mechanism that this query definition uses to map namespace prefixes to URIs. A query may use a predefined set of prefixes for known URIs. I would be unwise to rely on the defaults.
        Specified by:
        getNamespacePrefixResolver in interface QueryCollection
        Returns:
        NamespacePrefixResolver
      • createQueryCollection

        public static QueryCollection createQueryCollection​(org.dom4j.Element element,
                                                            org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService,
                                                            org.alfresco.service.namespace.NamespacePrefixResolver nspr)