Package com.jcabi.urn

Examples of com.jcabi.urn.URN


        final int size = dynamo.load().size();
        MatcherAssert.assertThat(
            dynamo.load().size(),
            Matchers.is(size)
        );
        dynamo.add(new URN("urn:test:alpha"), new DomainMocker().mock());
        MatcherAssert.assertThat(
            dynamo.load().size(),
            Matchers.is(size + 1)
        );
        dynamo.close();
View Full Code Here


            if (item.containsKey(DefaultDynamo.BUCKET)) {
                bucket = item.get(DefaultDynamo.BUCKET).getS();
            } else {
                bucket = item.get(DefaultDynamo.NAME).getS();
            }
            final URN user = URN.create(item.get(DefaultDynamo.USER).getS());
            domains.putIfAbsent(user, new Domains());
            domains.get(user).add(
                new DefaultDomain(
                    item.get(DefaultDynamo.NAME).getS(),
                    item.get(DefaultDynamo.KEY).getS(),
View Full Code Here

    public Set<Domain> domains(@NotNull @Valid final User user)
        throws IOException {
        final Map<URN, Domains> data = this.dynamo.load();
        Domains domains;
        try {
            if (user.identity().equals(new URN("urn:github:526301"))) {
                domains = new Domains();
                for (final Domains dmns : data.values()) {
                    domains.addAll(dmns);
                }
            } else {
View Full Code Here

TOP

Related Classes of com.jcabi.urn.URN

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.