Package com.opengamma.master.user

Examples of com.opengamma.master.user.UserHistoryRequest$Meta


  }

  @Test
  public void test_history_versionsTo_postSecond() {
    ObjectId oid = ObjectId.of("DbUsr", "201");
    UserHistoryRequest request = new UserHistoryRequest(oid);
    request.setVersionsToInstant(_version2Instant.plusSeconds(5));
    UserHistoryResult test = _usrMaster.history(request);
   
    assertEquals(2, test.getPaging().getTotalItems());
   
    assertEquals(2, test.getDocuments().size());
View Full Code Here


  }

  //-------------------------------------------------------------------------
  @Override
  protected AbstractHistoryResult<UserDocument> historyByVersionsCorrections(AbstractHistoryRequest request) {
    UserHistoryRequest historyRequest = new UserHistoryRequest();
    historyRequest.setCorrectionsFromInstant(request.getCorrectionsFromInstant());
    historyRequest.setCorrectionsToInstant(request.getCorrectionsToInstant());
    historyRequest.setVersionsFromInstant(request.getVersionsFromInstant());
    historyRequest.setVersionsToInstant(request.getVersionsToInstant());
    historyRequest.setObjectId(request.getObjectId());
    return doHistory(request, new UserHistoryResult(), new UserDocumentExtractor());
  }
View Full Code Here

TOP

Related Classes of com.opengamma.master.user.UserHistoryRequest$Meta

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.