Examples of executeGet()


Examples of com.esri.gpt.catalog.arcims.GetDocumentRequest.executeGet()

      ImsMetadataAdminDao adminDao = new ImsMetadataAdminDao(getRequestContext());
      String acl = adminDao.queryAclByUUID(uuid);
     
      // determine the xml and update date
      GetDocumentRequest ims = new GetDocumentRequest(getRequestContext(),publisher);
      ims.executeGet(uuid);
      Timestamp updateDate = ims.getUpdateDate();
      String xml = ims.getXml();
     
      // build the schema
      MetadataDocument mdDoc = new MetadataDocument();
View Full Code Here

Examples of com.esri.gpt.catalog.arcims.GetDocumentRequest.executeGet()

                                   String uuid)
    throws ImsServiceException, SchemaException {
   
    try {
      GetDocumentRequest imsRequest = new GetDocumentRequest(context,publisher);
      imsRequest.executeGet(uuid);
      String sXml = imsRequest.getXml();
      Document dom = loadDom(sXml);
      String sEnclosedXml = lookForEnclosure(dom);
      if (sEnclosedXml.length() > 0) {
        return sEnclosedXml;
View Full Code Here

Examples of com.esri.gpt.catalog.arcims.GetDocumentRequest.executeGet()

                               Publisher publisher,
                               String uuid)
    throws ImsServiceException, SchemaException {
    try {
      GetDocumentRequest imsRequest = new GetDocumentRequest(context,publisher);
      imsRequest.executeGet(uuid);
      String sXml = imsRequest.getXml();
      return evaluateSchema(context,sXml,true);   
    } catch (TransformerException e) {
      throw new SchemaException("Unable to transform document.",e);
    }
View Full Code Here

Examples of com.restfb.ClasspathWebRequestor.executeGet()

    return sdf;
  }

  private static FacebookClient createFixedResponseFacebookClient(String pathToJson) throws IOException {
    WebRequestor wr = new ClasspathWebRequestor(JSON_RESOURCES_PREFIX + pathToJson);
    String jsonBody = wr.executeGet(null).getBody();
    Assert.assertTrue("path to json not found:" + JSON_RESOURCES_PREFIX + pathToJson,
      (jsonBody != null) && (jsonBody.length() > 0));
    return new DefaultFacebookClient(null, wr, new DefaultJsonMapper());
  }
View Full Code Here

Examples of com.restfb.WebRequestor.executeGet()

    return sdf;
  }

  private static FacebookClient createFixedResponseFacebookClient(String pathToJson) throws IOException {
    WebRequestor wr = new ClasspathWebRequestor(JSON_RESOURCES_PREFIX + pathToJson);
    String jsonBody = wr.executeGet(null).getBody();
    Assert.assertTrue("path to json not found:" + JSON_RESOURCES_PREFIX + pathToJson,
      (jsonBody != null) && (jsonBody.length() > 0));
    return new DefaultFacebookClient(null, wr, new DefaultJsonMapper());
  }
View Full Code Here

Examples of org.apache.oozie.service.JPAService.executeGet()

    @Override
    public SLARegistrationBean get(SLARegQuery namedQuery, Object... parameters) throws JPAExecutorException {
        JPAService jpaService = Services.get().get(JPAService.class);
        EntityManager em = jpaService.getEntityManager();
        Query query = getSelectQuery(namedQuery, em, parameters);
        Object ret = jpaService.executeGet(namedQuery.name(), query, em);
        if (ret == null && !namedQuery.equals(SLARegQuery.GET_SLA_REG_ALL)) {
            throw new JPAExecutorException(ErrorCode.E0604, query.toString());
        }
        SLARegistrationBean bean = constructBean(namedQuery, ret, parameters);
        return bean;
View Full Code Here

Examples of org.apache.oozie.service.JPAService.executeGet()

    @Override
    public WorkflowActionBean get(WorkflowActionQuery namedQuery, Object... parameters) throws JPAExecutorException {
        JPAService jpaService = Services.get().get(JPAService.class);
        EntityManager em = jpaService.getEntityManager();
        Query query = getSelectQuery(namedQuery, em, parameters);
        Object ret = jpaService.executeGet(namedQuery.name(), query, em);
        if (ret == null) {
            throw new JPAExecutorException(ErrorCode.E0605, query.toString());
        }
        WorkflowActionBean bean = constructBean(namedQuery, ret);
        return bean;
View Full Code Here

Examples of org.apache.oozie.service.JPAService.executeGet()

    @Override
    public CoordinatorJobBean get(CoordJobQuery namedQuery, Object... parameters) throws JPAExecutorException {
        JPAService jpaService = Services.get().get(JPAService.class);
        EntityManager em = jpaService.getEntityManager();
        Query query = getSelectQuery(namedQuery, em, parameters);
        Object ret = jpaService.executeGet(namedQuery.name(), query, em);
        if (ret == null) {
            throw new JPAExecutorException(ErrorCode.E0604, query.toString());
        }
        CoordinatorJobBean bean = constructBean(namedQuery, ret, parameters);
        return bean;
View Full Code Here

Examples of org.apache.oozie.service.JPAService.executeGet()

    @Override
    public BundleJobBean get(BundleJobQuery namedQuery, Object... parameters) throws JPAExecutorException {
        JPAService jpaService = Services.get().get(JPAService.class);
        EntityManager em = jpaService.getEntityManager();
        Query query = getSelectQuery(namedQuery, em, parameters);
        Object ret = jpaService.executeGet(namedQuery.name(), query, em);
        if (ret == null) {
            throw new JPAExecutorException(ErrorCode.E0604, query.toString());
        }
        BundleJobBean bean = constructBean(namedQuery, ret, parameters);
        return bean;
View Full Code Here

Examples of org.apache.oozie.service.JPAService.executeGet()

    @Override
    public WorkflowJobBean get(WorkflowJobQuery namedQuery, Object... parameters) throws JPAExecutorException {
        JPAService jpaService = Services.get().get(JPAService.class);
        EntityManager em = jpaService.getEntityManager();
        Query query = getSelectQuery(namedQuery, em, parameters);
        Object ret = jpaService.executeGet(namedQuery.name(), query, em);
        if (ret == null) {
            throw new JPAExecutorException(ErrorCode.E0604, query.toString());
        }
        WorkflowJobBean bean = constructBean(namedQuery, ret, parameters);
        return bean;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.