Class CannedQueryDefImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      CannedQueryDefImpl​(org.alfresco.service.namespace.QName qName, java.lang.String language, java.lang.String query, java.util.List<org.alfresco.service.cmr.search.QueryParameterDefinition> queryParameterDefs, QueryCollection container)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static CannedQueryDefImpl createCannedQuery​(org.dom4j.Element element, org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, QueryCollection container, org.alfresco.service.namespace.NamespacePrefixResolver nspr)  
      static org.dom4j.QName getElementQName()  
      java.lang.String getLanguage()
      Get the language in which the query is defined.
      org.alfresco.service.namespace.NamespacePrefixResolver getNamespacePrefixResolver()
      Return the mechanism that this query definition uses to map namespace prefixes to URIs.
      org.alfresco.service.namespace.QName getQname()
      Get the unique name for the query
      java.lang.String getQuery()
      Get the query string.
      java.util.Collection<org.alfresco.service.cmr.search.QueryParameterDefinition> getQueryParameterDefs()
      Get the definitions for any query parameters.
      java.util.Map<org.alfresco.service.namespace.QName,​org.alfresco.service.cmr.search.QueryParameterDefinition> getQueryParameterMap()
      Get a map to look up definitions by Qname
      • Methods inherited from class java.lang.Object

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

      • CannedQueryDefImpl

        public CannedQueryDefImpl​(org.alfresco.service.namespace.QName qName,
                                  java.lang.String language,
                                  java.lang.String query,
                                  java.util.List<org.alfresco.service.cmr.search.QueryParameterDefinition> queryParameterDefs,
                                  QueryCollection container)
    • Method Detail

      • getQname

        public org.alfresco.service.namespace.QName getQname()
        Description copied from interface: CannedQueryDef
        Get the unique name for the query
        Specified by:
        getQname in interface CannedQueryDef
        Returns:
        QName
      • getLanguage

        public java.lang.String getLanguage()
        Description copied from interface: CannedQueryDef
        Get the language in which the query is defined.
        Specified by:
        getLanguage in interface CannedQueryDef
        Returns:
        String
      • getQueryParameterDefs

        public java.util.Collection<org.alfresco.service.cmr.search.QueryParameterDefinition> getQueryParameterDefs()
        Description copied from interface: CannedQueryDef
        Get the definitions for any query parameters.
        Specified by:
        getQueryParameterDefs in interface CannedQueryDef
      • getQuery

        public java.lang.String getQuery()
        Description copied from interface: CannedQueryDef
        Get the query string.
        Specified by:
        getQuery in interface CannedQueryDef
        Returns:
        String
      • getNamespacePrefixResolver

        public org.alfresco.service.namespace.NamespacePrefixResolver getNamespacePrefixResolver()
        Description copied from interface: CannedQueryDef
        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 CannedQueryDef
        Returns:
        NamespacePrefixResolver
      • createCannedQuery

        public static CannedQueryDefImpl createCannedQuery​(org.dom4j.Element element,
                                                           org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService,
                                                           QueryCollection container,
                                                           org.alfresco.service.namespace.NamespacePrefixResolver nspr)
      • getElementQName

        public static org.dom4j.QName getElementQName()
      • getQueryParameterMap

        public java.util.Map<org.alfresco.service.namespace.QName,​org.alfresco.service.cmr.search.QueryParameterDefinition> getQueryParameterMap()
        Description copied from interface: CannedQueryDef
        Get a map to look up definitions by Qname
        Specified by:
        getQueryParameterMap in interface CannedQueryDef
        Returns:
        Map