Examples of Revision


Examples of aQute.service.library.Library.Revision

    String id = bsn + "-" + version;
    if (notfoundref.contains(id))
      return null;

    if (isSha(bsn) && version.equals(Version.LOWEST)) {
      Revision r = getRevision(new Coordinate(bsn));
      if (r == null)
        return null;

      return new RevisionRef(r);
    }
View Full Code Here

Examples of aQute.service.library.Library.Revision

      if (!m.matches()) {
        reporter.trace("not a proper url to drop " + uri);
        return false;
      }

      Revision revision = getRevision(new Coordinate(m.group(1), m.group(2), m.group(3), m.group(4)));
      if (revision == null) {
        reporter.error("no revision found for %s", uri);
        return false;
      }
View Full Code Here

Examples of aQute.service.library.Library.Revision

      if (!m.matches()) {
        return null;
      }

      Set<ResourceDescriptor> resources = new HashSet<ResourceDescriptor>();
      Revision revision = getRevision(new Coordinate(m.group(1), m.group(2), m.group(3), m.group(4)));

      if (revision != null) {
        ResourceDescriptor rd = createResourceDescriptor(new RevisionRef(revision));
        resources.add(rd);
        if (includeDependencies) {
View Full Code Here

Examples of aQute.service.library.Library.Revision

          refs.remove(ref);
        else {
          // missing!
          reporter.trace("Missing " + c.getBundleSymbolicName());
          Coordinate coord = new Coordinate(c.getBundleSymbolicName());
          Revision rev = library.getRevisionByCoordinate(coord);
          if (rev != null) {
            index.addRevision(new RevisionRef(rev));
          } else
            System.out.printf("not found %s\n", c);
        }
View Full Code Here

Examples of com.cedarsoft.couchdb.Revision

    super.beforeTypeAndVersion( wrapper );

    wrapper.nextFieldValue( "_id" );
    final DocId id = new DocId( wrapper.getText() );
    wrapper.nextFieldValue( "_rev" );
    final Revision revision = new Revision( wrapper.getText() );

    current = new UniqueId( id, revision );
  }
View Full Code Here

Examples of com.cedarsoft.couchdb.core.Revision

    assert rev != null;
    assert id != null;

    parser.ensureObjectClosed();

    return new UniqueId( new DocId( id ), new Revision( rev ) );

    //    AbstractJacksonSerializer.nextToken( deserializeFrom, JsonToken.FIELD_NAME );
    //    if ( deserializeFrom.getCurrentName().equals( PROPERTY_OK ) ) {
    //    } else {
    //      AbstractJacksonSerializer.nextToken( deserializeFrom, JsonToken.VALUE_STRING );
View Full Code Here

Examples of com.google.devtools.moe.client.repositories.Revision

  private final Revision rev1;
  private final Revision rev2;

  public Equivalence() {
    this.rev1 = new Revision();
    this.rev2 = new Revision();
  } // For gson
View Full Code Here

Examples of com.google.nigori.common.Revision

      return null;
    }
    Collection<Node<Revision>> heads = history.getHeads();
    List<RevValue> answer = new ArrayList<RevValue>();
    for (Node<Revision> rev : heads) {
      Revision revision = rev.getValue();
      byte[] value = getRevision(index, revision);
      // TODO(drt24) value might be null
      if (value != null) {
        answer.add(new RevValue(revision, value));
      }
View Full Code Here

Examples of com.google.nigori.common.Revision

  @Override
  public RevValue put(Index index, byte[] value, RevValue... parents) throws IOException,
      NigoriCryptographyException, UnauthorisedException {
    byte[] revBytes = generateHash(value, toIDByte(parents));
    Revision rev = new Revision(revBytes);
    RevValue rv = new RevValue(rev, value);
    boolean success = store.put(index, rev, value);
    if (!success) {
      throw new IOException("Could not put into the store");
    }
View Full Code Here

Examples of com.google.nigori.common.Revision

        return null;
      }
      List<ByteString> revisions = getResponse.getRevisionsList();
      List<Revision> answer = new ArrayList<Revision>(revisions.size());
      for (ByteString revision : revisions) {
        answer.add(new Revision(keyManager.decrypt(revision.toByteArray())));
      }
      return answer;

    } catch (NotFoundException e) {
      return null;
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.