Package com.atlassian.jira.rest.client.internal.json

Examples of com.atlassian.jira.rest.client.internal.json.VersionJsonParser


      public JSONObject generate(URI uri) throws JSONException {
        final JSONObject res = new JSONObject();
        res.put("after", uri);
        return res;
      }
    }, afterVersionUri), new VersionJsonParser(), progressMonitor);
  }
View Full Code Here


  @Override
  public Version moveVersion(URI versionUri, final VersionPosition versionPosition, ProgressMonitor progressMonitor) {
    final URI moveUri = getMoveVersionUri(versionUri);
    return postAndParse(moveUri, InputGeneratorCallable.create(new VersionPositionInputGenerator(), versionPosition),
        new VersionJsonParser(), progressMonitor);
  }
View Full Code Here

    versionRootUri = UriBuilder.fromUri(baseUri).path("version").build();
  }

  @Override
  public Version createVersion(final VersionInput version, ProgressMonitor progressMonitor) {
    return postAndParse(versionRootUri, InputGeneratorCallable.create(new VersionInputJsonGenerator(), version), new VersionJsonParser(), progressMonitor);
  }
View Full Code Here

    return postAndParse(versionRootUri, InputGeneratorCallable.create(new VersionInputJsonGenerator(), version), new VersionJsonParser(), progressMonitor);
  }

  @Override
  public Version updateVersion(URI versionUri, final VersionInput version, ProgressMonitor progressMonitor) {
    return putAndParse(versionUri, InputGeneratorCallable.create(new VersionInputJsonGenerator(), version), new VersionJsonParser(), progressMonitor);
  }
View Full Code Here

    delete(uriBuilder.build(), progressMonitor);
  }

  @Override
  public Version getVersion(URI versionUri, ProgressMonitor progressMonitor) {
    return getAndParse(versionUri, new VersionJsonParser(), progressMonitor);
  }
View Full Code Here

    versionRootUri = UriBuilder.fromUri(baseUri).path("version").build();
  }

  @Override
  public Promise<Version> getVersion(final URI versionUri) {
    return getAndParse(versionUri, new VersionJsonParser());
  }
View Full Code Here

    return getAndParse(versionUri, new VersionJsonParser());
  }

  @Override
  public Promise<Version> createVersion(final VersionInput versionInput) {
    return postAndParse(versionRootUri, versionInput, new VersionInputJsonGenerator(), new VersionJsonParser());
  }
View Full Code Here

    return postAndParse(versionRootUri, versionInput, new VersionInputJsonGenerator(), new VersionJsonParser());
  }

  @Override
  public Promise<Version> updateVersion(final URI versionUri, final VersionInput versionInput) {
    return putAndParse(versionUri, versionInput, new VersionInputJsonGenerator(), new VersionJsonParser());
  }
View Full Code Here

      public JSONObject generate(final URI uri) throws JSONException {
        final JSONObject res = new JSONObject();
        res.put("after", uri);
        return res;
      }
    }, new VersionJsonParser());
  }
View Full Code Here

  }

  @Override
  public Promise<Version> moveVersion(final URI versionUri, final VersionPosition versionPosition) {
    final URI moveUri = getMoveVersionUri(versionUri);
    return postAndParse(moveUri, versionPosition, new VersionPositionInputGenerator(), new VersionJsonParser());
  }
View Full Code Here

TOP

Related Classes of com.atlassian.jira.rest.client.internal.json.VersionJsonParser

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.