3  + + +  + + + + + + +  + +  + + + + + + +    ! !  ! ' +     + +     + + + + +    S !" X# $ %& %' %( X)*+,- . X/012 X3 g 4 g567 89:; q q< +=>? +@ vA vB gC  DEF GHIJ KLM +NAOPQR STU V WX Y Z[\]^_  g`ab cd efg h ij iklm cKnop gq !rs +t uv wxyz{|}~ v +            !   containsExtendedSQLZcontainsPredicates meta_file_idLjava/lang/String; queryTitle returnDocListLjava/util/Vector; filterDocListreturnFieldListreturnFieldListWithPredicates ownerListquery#Ledu/ucsb/nceas/metacat/QueryGroup;xmlLjava/lang/StringBuffer; elementStackLjava/util/Stack; queryStack currentValuecurrentPathexpr parserNameaccNumberSeparatorpercentageSearchuserNamePUBLIC ConstantValuegroup[Ljava/lang/String;ATTRIBUTESYMBOLPREDICATE_STARTC[ PREDICATE_END] textBuffer logMetacatLorg/apache/log4j/Logger;7(Ljava/io/Reader;Ljava/lang/String;Ljava/lang/String;)VCodeLineNumberTableLocalVariableTableseLorg/xml/sax/SAXException;this+Ledu/ucsb/nceas/metacat/QuerySpecification; queryspecLjava/io/Reader;parserLorg/xml/sax/XMLReader; StackMapTableR Exceptions9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V(Ljava/lang/String;)V setUserNamemyNamesetGroup([Ljava/lang/String;)VmyGroupisPercentageSearch()ZcreateOwnerQuery()Ljava/lang/String; ownerQuerycreateAllowRuleQuery allowQuery allowStringconstructAllowString groupUintiIcreateDenyRuleQuery denyQuery denyStringconstructDenyStringgetAccessQuery accessQueryownerallowdeny getIdentifier setIdentifierid getQueryTitle setQueryTitletitlegetReturnDocList()Ljava/util/Vector;setReturnDocList(Ljava/util/Vector;)VgetFilterDocListsetFilterDocListgetReturnFieldListsetReturnFieldList getOwnerList setOwnerList getQueryGroup%()Ledu/ucsb/nceas/metacat/QueryGroup; setQueryGroup&(Ledu/ucsb/nceas/metacat/QueryGroup;)VsetContainsExtenedSQL(Z)VhasExtenedQueryinitializeParser()Lorg/xml/sax/XMLReader;eLjava/lang/Exception; startElementQ(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lorg/xml/sax/Attributes;)Vlen parentGroup currentGroupuri localNameqNameattsLorg/xml/sax/Attributes; currentNode"Ledu/ucsb/nceas/metacat/BasicNode;"1 endElementisCaseSensitive currentTerm"Ledu/ucsb/nceas/metacat/QueryTerm;leaving normalizedXML>getNormalizedXMLQuery characters([CII)Vch[CstartlengthtexthandleReturnField predicateEnd inputString attributePospredicateStart hasPredicateprintSQL%(ZLjava/util/List;)Ljava/lang/String;queryFromQueryGroupcurrentDoctype firstdoctypeenLjava/util/Enumeration;currentfirst useXMLIndexparameterValuesLjava/util/List;self queryString groupValuesLocalVariableTypeTable$Ljava/util/List; Signature9(ZLjava/util/List;)Ljava/lang/String;printExtendedSQLG(Ljava/lang/String;ZLjava/util/List;Ljava/util/List;)Ljava/lang/String;pathnestedParameterValues nestedQuery firstfieldqueryFromWithoutPrecidatesdoclist allValues docListValueso(Ljava/lang/String;ZLjava/util/List;Ljava/util/List;)Ljava/lang/String;returnFieldIsAttribute(Ljava/lang/String;)Z slashIndex isAttributeF(Ljava/lang/String;Ljava/util/List;Ljava/util/List;)Ljava/lang/String;mue4Ledu/ucsb/nceas/metacat/shared/MetacatUtilException; returnFieldj firstElementfirstAttributevalues elementVectorattributeVector usePathIndex&Ljava/util/Vector;n(Ljava/lang/String;Ljava/util/List;Ljava/util/List;)Ljava/lang/String;getSortedReturnFieldString returnFields tempVectoritLjava/util/Iterator;printRelationSQL&(Ljava/lang/String;)Ljava/lang/String;docidprintGetDocByDoctypeSQLtoString!newPathExpressionWithOutAttributepathExpressionindex newExpressiongetAttributeNamesize attributeName()V SourceFileQuerySpecification.java  java/lang/StringBuffer      java/util/Vector java/util/Stack [\  3;QuerySpecification.constructAllowString - allow string is: >2$SELECT guid from xml_access WHERE ( ) 7QuerySpecification.createDenyRuleQuery - denyquery is: H) AND perm_type = 'deny' AND perm_order ='allowFirst' AND permission > 39QuerySpecification.constructDenyString - deny string is: 12 42 ;2 AND (xml_documents.docid IN ( OR (identifier.guid IN () AND identifier.guid NOT IN ())) AND (identifier.guid IN ())5QuerySpecification.getAccessQuery - access query is:    java/lang/Exception+QuerySpecification.getAccessQuery - Error: 0QuerySpecification.startElement - start element  edu/ucsb/nceas/metacat/BasicNode<      ="">  2 querygroup!edu/ucsb/nceas/metacat/QueryGroupoperator   W6QuerySpecification.startElement - ending startElement +QuerySpecification.endElement - endElement  querytermjava/lang/Boolean casesensitive 0  edu/ucsb/nceas/metacat/QueryTerm searchmode     2 querytitlevalue pathexpr returndoctype  filterdoctype returnfield })2QuerySpecification.endElement - before normalize: 0QuerySpecification.endElement - after normalize QuerySpecification.returnFieldIsAttribute - it is an attribute9QuerySpecification.printExtendedSQL - in printExtendedSQL  K2edu/ucsb/nceas/metacat/shared/MetacatUtilExceptionAQuerySpecification.printExtendedSQL - Could not get index paths: =select docid, path, nodedata, parentnodeid, null as nodetype $from xml_path_index where path in ( '' ? , ? ) AND docid in (=select xml_nodes.docid, xml_index.path, xml_nodes.nodedata, !FROM xml_index, xml_nodes WHERE (B (xml_index.nodeid=xml_nodes.parentnodeid AND xml_index.path IN ( ?") AND xml_nodes.nodetype = 'TEXT') OR > (xml_index.nodeid=xml_nodes.nodeid AND ( xml_index.path IN ( () AND xml_nodes.nodetype = 'ATTRIBUTE'))) AND xml_nodes.docid in (  0     |2select subject, relationship, object, subdoctype, objdoctype from xml_relation where docid like 'SELECT docid,docname,doctype,date_created, date_updated #FROM xml_documents WHERE docid IN ( meta_file_id=  _QuerySpecification.newPathExpressionWithOutAttribute - The path expression without attributes: {DQuerySpecification.getAttributeName - The attirbute name from path: "org/xml/sax/helpers/DefaultHandlerjava/io/Readerorg/xml/sax/XMLReaderjava/io/IOExceptionjava/util/Listjava/util/Enumerationjava/util/Iteratororg/apache/log4j/Loggererror(Ljava/lang/Object;)V(Ljava/io/Reader;)Vparse(Lorg/xml/sax/InputSource;)Vappend-(Ljava/lang/String;)Ljava/lang/StringBuilder; getMessage toLowerCaseequalsIgnoreCaseequals(Ljava/lang/Object;)Zinfo$org/xml/sax/helpers/XMLReaderFactorycreateXMLReader+(Ljava/lang/String;)Lorg/xml/sax/XMLReader;setContentHandler(Lorg/xml/sax/ContentHandler;)VsetErrorHandler(Lorg/xml/sax/ErrorHandler;)Vdebug,(Ljava/lang/String;)Ljava/lang/StringBuffer;org/xml/sax/Attributes getLength()I getLocalName(I)Ljava/lang/String;getValue setAttribute'(Ljava/lang/String;Ljava/lang/String;)Vpush&(Ljava/lang/Object;)Ljava/lang/Object; getTagName getAttributepeek()Ljava/lang/Object;addChildpop booleanValue((ZLjava/lang/String;Ljava/lang/String;)V:(ZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V%(Ledu/ucsb/nceas/metacat/QueryTerm;)Vtrim'edu/ucsb/nceas/metacat/util/MetacatUtil normalizeaddindexOf(Ljava/lang/String;)I(II)Iwarn(Ljava/lang/String;I)IaddAll(Ljava/util/Collection;)ZisEmptyelements()Ljava/util/Enumeration;hasMoreElements nextElementgetPercentageSymbolCount(I)Ljava/lang/StringBuilder; elementAt(I)Ljava/lang/Object;useNestedStatements6(Ljava/lang/String;Ljava/util/List;)Ljava/lang/String; lastIndexOf substringcharAt(I)Ccontains&edu/ucsb/nceas/metacat/util/SystemUtilgetPathsForIndexing replaceAll8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;iterator()Ljava/util/Iterator;hasNextnextjava/util/Collectionssort(Ljava/util/List;)V-(Ljava/lang/Object;)Ljava/lang/StringBuilder;(II)Ljava/lang/String; getLogger,(Ljava/lang/Class;)Lorg/apache/log4j/Logger;!+,       -*****Y** * * * *Y *Y*Y*Y*Y*Y*Y*Y*,*- *: Y+":!Y"#$%$& rB E^do#q(s-u2y7BMXcny>? !"##$Q%&'([*'Y+(,-) *&')*****Y** * * * *Y *Y*Y*Y*Y*Y*Y*Y*+ RB E^do#q(s-u2y7BMXcny&'*)_+*+* *+ + ,->*+  . /0/*  12fL* E* ,-9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