Package com.google.wave.api

Examples of com.google.wave.api.Restriction


    Map<String, String> restrictions = Maps.newHashMap();
    assertEquals(1,
        countHits(new DocumentHitIterator.ElementMatcher(
            apiView, ElementType.ATTACHMENT, Collections.<String, String>emptyMap(), -1)));

    Restriction restriction = Attachment.restrictByAttachmentId("nR_0YFT75");
    assertEquals(1,
        countHits(new DocumentHitIterator.ElementMatcher(apiView, ElementType.ATTACHMENT,
            ImmutableMap.of(restriction.getKey(), restriction.getValue()), -1)));
    restriction = Attachment.restrictByAttachmentId("nR_0YFT76");
    assertEquals(0,
        countHits(new DocumentHitIterator.ElementMatcher(apiView, ElementType.ATTACHMENT,
            ImmutableMap.of(restriction.getKey(), restriction.getValue()), -1)));
  }
View Full Code Here

TOP

Related Classes of com.google.wave.api.Restriction

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.