Examples of entityChanged()


Examples of com.opengamma.core.change.BasicChangeManager.entityChanged()

          s_logger.info("Cycle completed");
        }
        // Signal change ...
        s_logger.debug("Signalling change");
        resolutions.put(new ComputationTargetSpecification(ComputationTargetType.PORTFOLIO, UniqueId.of("Test", "0")), UniqueId.of("Test", "0", Integer.toString(j + 1)));
        changeManager.entityChanged(ChangeType.CHANGED, ObjectId.of("Test", "0"), Instant.now(), Instant.now(), Instant.now());
        s_logger.info("Change signalled");
        // ... and expect a view definition compiled to interrupt the sequence
        String event = context.event();
        for (int i = 0; i < 20; i++) {
          if (event.equals("cycle started")) {
View Full Code Here

Examples of com.opengamma.core.change.BasicChangeManager.entityChanged()

      }

      @Override
      public D add(D document) {
        D doc = underlying.add(document);
        _changeManager.entityChanged(ChangeType.CHANGED, doc.getObjectId(), doc.getVersionFromInstant(), doc.getVersionToInstant(), Instant.now(clock));
        return doc;
      }

      @Override
      public UniqueId addVersion(ObjectIdentifiable objectId, D documentToAdd) {
View Full Code Here

Examples of com.opengamma.core.change.BasicChangeManager.entityChanged()

      }

      @Override
      public UniqueId addVersion(ObjectIdentifiable objectId, D documentToAdd) {
        UniqueId uid = underlying.addVersion(objectId, documentToAdd);
        _changeManager.entityChanged(ChangeType.ADDED, uid.getObjectId(), null, null, Instant.now(clock));
        return uid;
      }

      @Override
      public D correct(D document) {
View Full Code Here

Examples of com.opengamma.core.change.BasicChangeManager.entityChanged()

      }

      @Override
      public D correct(D document) {
        D doc = underlying.correct(document);
        _changeManager.entityChanged(ChangeType.CHANGED, doc.getObjectId(), doc.getVersionFromInstant(), doc.getVersionToInstant(), Instant.now(clock));
        return doc;
      }

      @Override
      public D get(ObjectIdentifiable objectId, VersionCorrection versionCorrection) {
View Full Code Here

Examples of com.opengamma.core.change.BasicChangeManager.entityChanged()

      }

      @Override
      public void remove(ObjectIdentifiable objectIdentifiable) {
        underlying.remove(objectIdentifiable);
        _changeManager.entityChanged(ChangeType.REMOVED, objectIdentifiable.getObjectId(), null, null, Instant.now(clock));
      }

      @Override
      public void removeVersion(UniqueId uniqueId) {
        underlying.removeVersion(uniqueId);
View Full Code Here

Examples of com.opengamma.core.change.BasicChangeManager.entityChanged()

      }

      @Override
      public void removeVersion(UniqueId uniqueId) {
        underlying.removeVersion(uniqueId);
        _changeManager.entityChanged(ChangeType.REMOVED, uniqueId.getObjectId(), null, null, Instant.now(clock));
      }

      @Override
      public List<UniqueId> replaceAllVersions(ObjectIdentifiable objectId, List<D> replacementDocuments) {
        List<UniqueId> removed = underlying.replaceAllVersions(objectId, replacementDocuments);
View Full Code Here

Examples of com.opengamma.core.change.BasicChangeManager.entityChanged()

      }

      @Override
      public List<UniqueId> replaceAllVersions(ObjectIdentifiable objectId, List<D> replacementDocuments) {
        List<UniqueId> removed = underlying.replaceAllVersions(objectId, replacementDocuments);
        _changeManager.entityChanged(ChangeType.REMOVED, objectId.getObjectId(), null, null, Instant.now(clock));
        return removed;
      }

      @Override
      public UniqueId replaceVersion(D replacementDocument) {
View Full Code Here

Examples of com.opengamma.core.change.BasicChangeManager.entityChanged()

      }

      @Override
      public UniqueId replaceVersion(D replacementDocument) {
        UniqueId uid = underlying.replaceVersion(replacementDocument);
        _changeManager.entityChanged(ChangeType.CHANGED, uid.getObjectId(), null, null, Instant.now(clock));
        return uid;
      }

      @Override
      public List<UniqueId> replaceVersion(UniqueId uniqueId, List<D> replacementDocuments) {
View Full Code Here

Examples of com.opengamma.core.change.BasicChangeManager.entityChanged()

      }

      @Override
      public List<UniqueId> replaceVersion(UniqueId uniqueId, List<D> replacementDocuments) {
        List<UniqueId> replaced = underlying.replaceVersion(uniqueId, replacementDocuments);
        _changeManager.entityChanged(ChangeType.CHANGED, uniqueId.getObjectId(), null, null, Instant.now(clock));
        return replaced;
      }

      @Override
      public List<UniqueId> replaceVersions(ObjectIdentifiable objectId, List<D> replacementDocuments) {
View Full Code Here

Examples of com.opengamma.core.change.BasicChangeManager.entityChanged()

      }

      @Override
      public List<UniqueId> replaceVersions(ObjectIdentifiable objectId, List<D> replacementDocuments) {
        List<UniqueId> replaced = underlying.replaceVersions(objectId, replacementDocuments);
        _changeManager.entityChanged(ChangeType.CHANGED, objectId.getObjectId(), null, null, Instant.now(clock));
        return replaced;
      }

      @Override
      public D update(D document) {
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.