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

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


        int limit = 0;

        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);
        logger.finest("resultElement: "
View Full Code Here


    try {
      ArrayList<MyLeadQueryResultItem> projects = new ArrayList<MyLeadQueryResultItem>();
     
      ContextQueryRequestDocument cqrdoc = ContextQueryRequestDocument.Factory
          .newInstance();
      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);
     
View Full Code Here

      workflows = new ArrayList<MyleadWorkflowMetadata>();

      try {
        ContextQueryRequestDocument query = ContextQueryRequestDocument.Factory
            .newInstance();
        ContextQueryRequestType params = query
            .addNewContextQueryRequest();
        QueryObjectType target = params.addNewQueryTarget();
        target.setAggrType(CatalogAggregationType.COLLECTION);

        ContextQueryType context = params.addNewContextQuery();
        QueryComponentType parentCollection = context
            .addNewQueryComponent();
        parentCollection.setAggrType(CatalogAggregationType.COLLECTION);
        parentCollection.setRelation(ContextType.DIRECT_PARENT);

        QueryPropertyType titleProperty = parentCollection
            .addNewQueryProperty();
        titleProperty.setName("citation");
        titleProperty.setSource("LEAD");
        QueryElementType titleElement = titleProperty
            .addNewQueryElement();
        titleElement.setName("title");
        titleElement.setSource("LEAD");
        QueryTextElementType textCriteria = titleElement
            .addNewQueryTextElement();
        textCriteria.setCompare(TextComparisonType.EXACT);
        textCriteria.setValue(WORKFLOW_TEMPLATES_COLLECTION);
        QueryComponentType project = parentCollection
            .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();
View Full Code Here

      String projectID) throws MyLeadException {
    String wfTempCollectionId = null;
    try {
      ContextQueryRequestDocument query = ContextQueryRequestDocument.Factory
          .newInstance();
      ContextQueryRequestType params = query.addNewContextQueryRequest();
      QueryObjectType target = params.addNewQueryTarget();
      target.setAggrType(CatalogAggregationType.COLLECTION);

      ContextQueryType context = params.addNewContextQuery();
      QueryComponentType parentCollection = context
          .addNewQueryComponent();
      parentCollection.setAggrType(CatalogAggregationType.PROJECT);
      parentCollection.setRelation(ContextType.PARENT);
      parentCollection.setObjectId(projectID);

      QueryPropertyType titleProperty = target.addNewQueryProperty();

      titleProperty.setName("citation");
      titleProperty.setSource("LEAD");
      QueryElementType titleElement = titleProperty.addNewQueryElement();
      titleElement.setName("title");
      titleElement.setSource("LEAD");
      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;
View Full Code Here

TOP

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

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.