Examples of Operations


Examples of com.atlassian.jira.rest.client.api.domain.Operations

  }

  @Test
  public void testParseIssueWithOperations() throws JSONException {
    final Issue issue = parseIssue("/json/issue/valid-5.0-with-operations.json");
    assertThat(issue.getOperations(), is(new Operations(Collections.singleton(new OperationGroup(
        "opsbar-transitions",
        Collections.singleton(new OperationLink("action_id_4", "issueaction-workflow-transition",
            "Start Progress", "Start work on the issue", "/secure/WorkflowUIDispatcher.jspa?id=93813&action=4&atl_token=",
            10, null)),
        Collections.singleton(new OperationGroup(
View Full Code Here

Examples of com.atlassian.jira.rest.client.api.domain.Operations

public class OperationsJsonParserTest {
  @Test
  public void testParse() throws Exception {
    OperationsJsonParser parser = new OperationsJsonParser();
    Operations actual = parser.parse(ResourceUtil.getJsonObjectFromResource("/json/operations/valid.json"));
    assertThat(actual, is(new Operations(Collections.singleton(new OperationGroup(
        "opsbar-transitions",
        Collections.singleton(new OperationLink("action_id_4", "issueaction-workflow-transition",
            "Start Progress", "Start work on the issue", "/secure/WorkflowUIDispatcher.jspa?id=93813&action=4&atl_token=",
            10, null)),
        Collections.singleton(new OperationGroup(
View Full Code Here

Examples of com.atlassian.jira.rest.client.api.domain.Operations

          new ChangelogItem(FieldType.CUSTOM, "project3", null, null, "10000", "Test Project"),
          new ChangelogItem(FieldType.CUSTOM, "My Number Field New", null, null, null, "1.45")
      );
      assertEquals(expected, chg2.getItems());
    }
    final Operations operations = issueWithChangelogAndOperations.getOperations();
    if (isJira5xOrNewer()) {
      assertThat(operations, notNullValue());
      assertThat(operations.getOperationById("log-work"), allOf(
              instanceOf(OperationLink.class),
              hasProperty("id", is("log-work"))
          )
      );
    }
View Full Code Here

Examples of com.atlassian.jira.rest.client.api.domain.Operations

    final Set<String> labels = Sets
        .newHashSet(parseOptionalArrayNotNullable(issueJson, jsonWeakParserForString, FIELDS, LABELS_FIELD.id));

    final Collection<ChangelogGroup> changelog = parseOptionalArray(
        issueJson, new JsonWeakParserForJsonObject<ChangelogGroup>(changelogJsonParser), "changelog", "histories");
    final Operations operations = parseOptionalJsonObject(issueJson, "operations", operationsJsonParser);

    return new Issue(summary, selfUri, basicIssue.getKey(), basicIssue.getId(), project, issueType, status,
        description, priority, resolution, attachments, reporter, assignee, creationDate, updateDate,
        dueDate, affectedVersions, fixVersions, components, timeTracking, fields, comments,
        transitionsUri, issueLinks,
View Full Code Here

Examples of com.atlassian.jira.rest.client.api.domain.Operations

  private final JsonObjectParser<OperationGroup> groupParser = new OperationGroupJsonParser();

  @Override
  public Operations parse(final JSONObject json) throws JSONException {
    final Collection<OperationGroup> linkGroups = JsonParseUtil.parseJsonArray(json.getJSONArray("linkGroups"), groupParser);
    return new Operations(linkGroups);
  }
View Full Code Here

Examples of org.geotools.coverage.processing.Operations

    GridCoverage2D coverage = (GridCoverage2D) factory.create("GridCoverage", image, ref); //$NON-NLS-1$

    // resample the new image with the world CRS
    GridCoverage2D warpedCoverage = null;
    try {
      Operations ops = new Operations(null);
      Coverage resample = ops.resample(coverage, this.crsTarget);
      warpedCoverage = (GridCoverage2D) resample;
      saveImage(warpedCoverage);

    } catch (Exception e) {
     
View Full Code Here

Examples of org.geotools.coverage.processing.Operations

            // url = new File("/media/sda5/Dokumenty/geodata/rasters/Mane_3_1_4.tif").toURI().toURL();

            /* Open the file with Image */
            WorldImageReader reader = new WorldImageReader(url);
            Operations operations = new Operations(null);
            GridCoverage2D coverage = (GridCoverage2D) reader.read(null);
            Envelope env = coverage.getEnvelope();

            //coverage = GridCoverageExamples.getExample(0);

View Full Code Here

Examples of org.geotools.coverage.processing.Operations

    double minY = fullEnvelope.getMinimum(1);
    double offsetX = fullEnvelope.getSpan(0) / 5;
    double offsetY = fullEnvelope.getSpan(1) / 5;
    subset.setEnvelope(minX + offsetX, minY + offsetY, minX + offsetX * 2,
        minY + offsetY * 2);
    gc = (GridCoverage2D) new Operations(null).crop(gc, subset);
    return gc;
  }
View Full Code Here

Examples of org.geotools.coverage.processing.Operations

        double minX = fullEnvelope.getMinimum(0);
        double minY = fullEnvelope.getMinimum(1);
        double offsetX = fullEnvelope.getSpan(0) / 5;
        double offsetY = fullEnvelope.getSpan(1) / 5;
        subset.setEnvelope(minX + offsetX, minY + offsetY, minX + offsetX * 2, minY + offsetY * 2);
        gc = (GridCoverage2D) new Operations(null).crop(gc, subset);
       
        scheduleForDisposal(gc);
       
        return gc;
    }
View Full Code Here

Examples of org.omg.CosCollection.Operations

        }
        Integer   size = pm.find_ulong_param( CollectionService.EXP_SIZE );
        if ( size == null ) {
            size = new Integer(10);
        }
        Operations ops = pm.find_operations_param( CollectionService.OPERATIONS );
        if ( ops == null ) {
            String ops_class = pm.find_string_param( CollectionService.OPERATIONS_CLASS );
            if( ops_class == null ){
                throw new ParameterInvalid( pm.find_param_idx(CollectionService.OPERATIONS), "CollectionFactory: OPERATION object not defined" );
            }
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.