Examples of ResourceMetaData


Examples of org.cedj.geekseek.web.rest.core.ResourceMetadata

        return Response.ok(converter.from(uriInfo, repo.get(id))).build();
    }

    @Override
    public ResourceMetadata getResourceMetadata() {
        return new ResourceMetadata(SourceObject.class)
            .outgoing(new NamedRelation("connections", "connected_to"))
            .outgoing(new NamedRelation("notdeployed", "no_matching_relation"));
    }
View Full Code Here

Examples of org.cedj.geekseek.web.rest.core.ResourceMetadata

        return new String[]{ATTACHMENT_XML_MEDIA_TYPE, ATTACHMENT_JSON_MEDIA_TYPE};
    }

    @Override
    public ResourceMetadata getResourceMetadata() {
        return new ResourceMetadata(Attachment.class)
            .incoming(new Relation("attached_to"));
    }
View Full Code Here

Examples of org.cedj.geekseek.web.rest.core.ResourceMetadata

        return new String[] {SESSION_XML_MEDIA_TYPE, SESSION_JSON_MEDIA_TYPE};
    }

    @Override
    public ResourceMetadata getResourceMetadata() {
        return new ResourceMetadata(Session.class)
            .incoming(new Relation("presented_by"))
            .outgoing(new NamedRelation("attachments", "attached_to"))
            .outgoing(new NamedRelation("speakers", "presented_by"))
            .outgoing(new NamedRelation("attendees", "attended_by"))
            .outgoing(new NamedRelation("locations", "located_in"));
View Full Code Here

Examples of org.cedj.geekseek.web.rest.core.ResourceMetadata

        return new String[]{CONFERENCE_XML_MEDIA_TYPE, CONFERENCE_JSON_MEDIA_TYPE};
    }

    @Override
    public ResourceMetadata getResourceMetadata() {
        return new ResourceMetadata(Conference.class)
            .outgoing(new NamedRelation("attachments", "attached_to"))
            .outgoing(new NamedRelation("trackers", "tracked_by"))
            .outgoing(new NamedRelation("attendees", "attended_by"))
            .outgoing(new NamedRelation("locations", "located_at"));
    }
View Full Code Here

Examples of org.jboss.resteasy.skeleton.key.ResourceMetadata

   }

   @Before
   public void initTest()
   {
      metadata = new ResourceMetadata();
      metadata.setResourceName("service");
      metadata.setRealm("domain");
      metadata.setRealmKey(idpPair.getPublic());

      token = new SkeletonKeyToken();
View Full Code Here

Examples of org.springframework.data.rest.core.mapping.ResourceMetadata

    ResourceTester tester = ResourceTester.of(response.getBody());
    PagedResources<Object> pagedResources = tester.assertIsPage();
    assertThat(pagedResources.getContent().size(), is(1));

    ResourceMetadata metadata = getMetadata(Person.class);
    tester.withContentResource(new HasSelfLink(BASE.slash(metadata.getPath()).slash("{id}")));
  }
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.