Examples of UniqueID


Examples of aleph.UniqueID

  /**
   * Constructor.
   **/
  public Event (String label) {
    this.label = label;
    id = new UniqueID();
    manager.newEvent(id);
  }
View Full Code Here

Examples of com.cedarsoft.couchdb.UniqueId

   *
   * @noinspection NullableProblems
   */
  @Nonnull
  public UniqueId getCurrent() throws IllegalStateException {
    @Nullable final UniqueId copy = current;
    if ( copy == null ) {
      throw new IllegalStateException( "No current id available" );
    }
    return copy;
  }
View Full Code Here

Examples of com.cedarsoft.couchdb.core.UniqueId

    InputStream entityInputStream = response.getEntityInputStream();

    try {
      //Wrap the input stream
      try ( MaxLengthByteArrayOutputStream teedOut = new MaxLengthByteArrayOutputStream(); TeeInputStream teeInputStream = new TeeInputStream( entityInputStream, teedOut ) ) {
        UniqueId uniqueId = deserialize( teeInputStream );

        return new ActionResponse( uniqueId, response.getStatus(), response.getLocation(), teedOut.toByteArray() );
      }
    } catch ( IOException e ) {
      throw new RuntimeException( e );
View Full Code Here

Examples of com.opengamma.id.UniqueId

    _exgMaster.replaceVersion(null);
  }

  @Test(expectedExceptions = IllegalArgumentException.class)
  public void test_replaceVersion_noExchangeId() {
    UniqueId uniqueId = UniqueId.of("DbExg", "101");
    ManageableExchange exchange = new ManageableExchange(BUNDLE, "Test", REGION, null);
    exchange.setUniqueId(uniqueId);
    ExchangeDocument doc = new ExchangeDocument(exchange);
    doc.setUniqueId(null);
    _exgMaster.replaceVersion(doc);
View Full Code Here

Examples of net.alteiar.shared.UniqueID

  public final UniqueID getMapId() {
    return this.mapId;
  }

  public void setMapId(UniqueID mapId) {
    UniqueID oldValue = this.mapId;
    if (notifyRemote(PROP_MAP_ID_PROPERTY, oldValue, mapId)) {
      this.mapId = mapId;
      notifyLocal(PROP_MAP_ID_PROPERTY, oldValue, mapId);
    }
  }
View Full Code Here

Examples of net.alteiar.shared.UniqueID

  public UniqueID getFilteredImageId() {
    return filteredImageId;
  }

  public void setFilteredImageId(final UniqueID filteredImageId) {
    final UniqueID oldValue = this.filteredImageId;
    if (this.notifyRemote(PROP_FILTERED_IMAGE_ID_PROPERTY, oldValue,
        filteredImageId)) {
      this.filteredImageId = filteredImageId;

      CampaignClient.getInstance().addWaitBeanListener(
View Full Code Here

Examples of net.alteiar.shared.UniqueID

  public BeanDirectory() {
  }

  private static UniqueID getDirectoryId(BeanDirectory parent) {
    UniqueID dirId = null;
    if (parent != null) {
      dirId = parent.getId();
    }
    return dirId;
  }
View Full Code Here

Examples of net.alteiar.shared.UniqueID

  public UniqueID getParent() {
    return parent;
  }

  public void setParent(UniqueID parent) {
    UniqueID oldValue = this.parent;
    if (notifyRemote(PROP_PARENT_PROPERTY, oldValue, parent)) {
      this.parent = parent;
      notifyLocal(PROP_PARENT_PROPERTY, oldValue, parent);
    }
  }
View Full Code Here

Examples of net.alteiar.shared.UniqueID

  public void setOwner(UniqueID owner) {
    if (owner == null) {
      throw new NullPointerException("The owner could'nt be null");
    }
    UniqueID oldValue = this.owner;
    if (notifyRemote(PROP_OWNER_PROPERTY, oldValue, owner)) {
      this.owner = owner;
      notifyLocal(PROP_OWNER_PROPERTY, oldValue, owner);
    }
  }
View Full Code Here

Examples of net.alteiar.shared.UniqueID

        throw new RuntimeException("impossible de créer un joueur");
      }
      connectPlayer();

      if (rootDirectory == null) {
        UniqueID id = null;
        BeanDirectory root = new BeanDirectory(id, "ROOT");
        root.setOwner(currentPlayer.getId());

        manager.createDocument(root);
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.