Examples of Checkin


Examples of org.apache.jackrabbit.jcr2spi.operation.Checkin

    public VersionManagerImpl(WorkspaceManager workspaceManager) {
        this.workspaceManager = workspaceManager;
    }

    public NodeEntry checkin(NodeState nodeState) throws RepositoryException {
        Checkin ci = Checkin.create(nodeState, this);
        workspaceManager.execute(ci);
        return workspaceManager.getHierarchyManager().getNodeEntry(ci.getNewVersionId());
    }
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.operation.Checkin

    public VersionManagerImpl(WorkspaceManager workspaceManager) {
        this.workspaceManager = workspaceManager;
    }

    public NodeEntry checkin(NodeState nodeState) throws RepositoryException {
        Checkin ci = Checkin.create(nodeState, this);
        workspaceManager.execute(ci);
        return workspaceManager.getHierarchyManager().getNodeEntry(ci.getNewVersionId());
    }
View Full Code Here

Examples of org.apache.jackrabbit.jcr2spi.operation.Checkin

    public VersionManagerImpl(WorkspaceManager workspaceManager) {
        this.workspaceManager = workspaceManager;
    }

    public NodeEntry checkin(NodeState nodeState) throws RepositoryException {
        Checkin ci = Checkin.create(nodeState, this);
        workspaceManager.execute(ci);
        return workspaceManager.getHierarchyManager().getNodeEntry(ci.getNewVersionId());
    }
View Full Code Here

Examples of org.springframework.social.foursquare.api.Checkin

  public void get() {
    mockServer.expect(requestTo("https://api.foursquare.com/v2/checkins/CHECKIN_ID?oauth_token=ACCESS_TOKEN&v=20110609"))
      .andExpect(method(GET))
      .andRespond(withResponse(new ClassPathResource("testdata/checkin.json", getClass()), responseHeaders));
   
    Checkin checkin = foursquare.checkinOperations().get("CHECKIN_ID");
    assertEquals("4d627f6814963704dc28ff94", checkin.getId());
    mockServer.verify();
  }
View Full Code Here

Examples of org.springframework.social.foursquare.api.Checkin

      .andExpect(method(POST))
      .andExpect(body("venueId=VENUE_ID&shout=SHOUT&broadcast=public&ll=10.0,10.0&llAcc=10&alt=200.0&altAcc=10"))
      .andRespond(withResponse(new ClassPathResource("testdata/checkin.json", getClass()), responseHeaders));
   
    CheckinParams params = new CheckinParams().venueId("VENUE_ID").shout("SHOUT").broadcast("public").latitude(10d).longitude(10d).locationAccuracy(10l).altitude(200d).altitudeAccuracy(10l);
    Checkin checkin = foursquare.checkinOperations().add(params);
    assertEquals("4d627f6814963704dc28ff94", checkin.getId());
    mockServer.verify();
  }
View Full Code Here

Examples of org.springframework.social.foursquare.api.Checkin

    mockServer.expect(requestTo("https://api.foursquare.com/v2/checkins/CHECKIN_ID/deletecomment?oauth_token=ACCESS_TOKEN&v=20110609"))
      .andExpect(method(POST))
      .andExpect(body("commentId=COMMENT_ID"))
      .andRespond(withResponse(new ClassPathResource("testdata/checkin.json", getClass()), responseHeaders));
   
    Checkin checkin = foursquare.checkinOperations().deleteComment("CHECKIN_ID", "COMMENT_ID");
    assertTrue(checkin != null);
    mockServer.verify();
  }
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.