Package edu.indiana.dde.mylead.agent.xmlbeans

Examples of edu.indiana.dde.mylead.agent.xmlbeans.QueryResultConfigurationType


        ContentFilterType.Enum cFilter = ContentFilterType.FULL_SCHEMA;
      
        ContextQueryRequestDocument reqDoc = ContextQueryRequestDocument.Factory.newInstance();
    ContextQueryRequestType req = reqDoc.addNewContextQueryRequest();
    QueryResultConfigurationType resultConfig = req.addNewQueryResultConfiguration();
    resultConfig.setContentFilter(cFilter);
    resultConfig.setHierarchyFilter(edu.indiana.dde.metadata.catalog.types.HierarchyFilterType.TARGET);
    resultConfig.setCount(limit);
    resultConfig.setOffset(0);
    req.setQueryTarget(QueryTargetDocument.Factory.parse(quryTargetXml).getQueryTarget());
     
    AgentPortType agentStub = stub.createStub(user);
   
    QueryResponseDocument response = agentStub.queryWithContext(reqDoc);
View Full Code Here


           
      QueryByIDsRequestDocument inputMsg = QueryByIDsRequestDocument.Factory
          .newInstance();
      QueryByIDsRequestType params = inputMsg.addNewQueryByIDsRequest();
      params.addResourceID(collectionID);
      QueryResultConfigurationType queryResultConfigurationType = params
          .addNewQueryResultConfiguration();

            ContentFilterType.Enum cFilter = ContentFilterType.FULL_SCHEMA;
      queryResultConfigurationType.setContentFilter(cFilter);
      queryResultConfigurationType.setCount(0);
      queryResultConfigurationType.setOffset(0);
      queryResultConfigurationType
          .setHierarchyFilter(HierarchyFilterType.TARGET);
      ElementFilterType elemFilter = queryResultConfigurationType
          .addNewElementFilter();
      elemFilter.setElementName("title");
      elemFilter.setElementSource("LEAD");
      elemFilter.setPropertyName("citation");
      elemFilter.setPropertySource("LEAD");
View Full Code Here

      ContextQueryRequestType cqType = cqrdoc.addNewContextQueryRequest();

      QueryObjectType qTarget = cqType.addNewQueryTarget();
      qTarget.setAggrType(CatalogAggregationType.PROJECT);

      QueryResultConfigurationType qrConfig = cqType
          .addNewQueryResultConfiguration();
      qrConfig.setCount(0);
      qrConfig.setOffset(0);
      qrConfig.setHierarchyFilter(HierarchyFilterType.TARGET);
     
      ElementFilterType elementFilterType = qrConfig.addNewElementFilter();
      elementFilterType.setPropertyName("citation");
      elementFilterType.setPropertySource("LEAD");
      elementFilterType.setElementName("title");
      elementFilterType.setElementSource("LEAD");
      elementFilterType.setElementFilter("title");
View Full Code Here

            .addNewQueryComponent();
        project.setAggrType(CatalogAggregationType.PROJECT);
        project.setRelation(ContextType.PARENT);
        project.setObjectId(projectID);

        QueryResultConfigurationType config = params
            .addNewQueryResultConfiguration();
        config.setOffset(0);
        config.setCount(0);
        config.setHierarchyFilter(HierarchyFilterType.TARGET);
        ElementFilterType filterTitle = config.addNewElementFilter();
        filterTitle.setPropertyName("citation");
        filterTitle.setPropertySource("LEAD");
        filterTitle.setElementName("title");
        filterTitle.setElementSource("LEAD");
        filterTitle.setElementFilter("title");
        ElementFilterType filterDesc = config.addNewElementFilter();
        filterDesc.setPropertyName("description");
        filterDesc.setPropertySource("LEAD");
        filterDesc.setElementName("abstract");
        filterDesc.setElementSource("LEAD");
        filterDesc.setElementFilter("abstract");
View Full Code Here

      QueryTextElementType textCriteria = titleElement
          .addNewQueryTextElement();
      textCriteria.setCompare(TextComparisonType.EXACT);
      textCriteria.setValue(WORKFLOW_TEMPLATES_COLLECTION);

      QueryResultConfigurationType config = params
          .addNewQueryResultConfiguration();
      config.setOffset(0);
      config.setCount(0);
      config.setHierarchyFilter(HierarchyFilterType.TARGET);
      ContentFilterType.Enum cFilter = ContentFilterType.ID_ONLY;
      config.setContentFilter(cFilter);
      QueryResponseDocument outputMsg = createStub(userID)
          .queryWithContext(query);
      QueryResponseType outputType = outputMsg.getQueryResponse();

      StatusEnumType.Enum statusType = outputType.getStatus();
View Full Code Here

TOP

Related Classes of edu.indiana.dde.mylead.agent.xmlbeans.QueryResultConfigurationType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.