Examples of ResourceLink


Examples of org.apache.wicket.markup.html.link.ResourceLink

      PopupSettings.SCROLLBARS).setHeight(500).setWidth(700);
    add(new ExternalLink("googlePopup", "http://www.google.com",
      "Click this link to go to Google in a popup").setPopupSettings(googlePopupSettings));

    // Shared resource link
    add(new ResourceLink("cancelButtonLink", new SharedResourceReference("cancelButton")));

    // redirect to external url form
    FeedbackPanel feedbackPanel = new FeedbackPanel("feedback");
    add(feedbackPanel);
    add(new RedirectForm("redirectForm"));
View Full Code Here

Examples of org.apache.ws.util.jndi.tools.ResourceLink

      if ( resourceLinkArray != null )
      {
         for ( int i = 0; i < resourceLinkArray.length; i++ )
         {
            ResourceLinkDocument.ResourceLink resourceLink = resourceLinkArray[i];
            ResourceLink                      link = new ResourceLink(  );
            link.setName( resourceLink.getName(  ) );
            link.setTarget( resourceLink.getTarget(  ) );
            resourceLinks.add( link );
         }
      }

      return (ResourceLink[]) resourceLinks.toArray( new ResourceLink[0] );
View Full Code Here

Examples of org.apache.ws.util.jndi.tools.ResourceLink

      if ( resourceLinkArray != null )
      {
         for ( int i = 0; i < resourceLinkArray.length; i++ )
         {
            ResourceLinkDocument.ResourceLink resourceLink = resourceLinkArray[i];
            ResourceLink                      link = new ResourceLink(  );
            link.setName( resourceLink.getName(  ) );
            link.setTarget( resourceLink.getTarget(  ) );
            resourceLinks.add( link );
         }
      }

      return (ResourceLink[]) resourceLinks.toArray( new ResourceLink[0] );
View Full Code Here

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

    public List<ResourceLink> getLinks() {
        List<ResourceLink> links = super.getLinks();
        if (getUriInfo() != null) {
            if(doesNotContainRel("self") && id != null) {
                links.add(
                    new ResourceLink(
                        "self",
                        getUriInfo().getBaseUriBuilder().clone()
                            .path(AttachmentResource.class)
                            .segment("{id}")
                            .build(id),
View Full Code Here

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

    public Response listAllResources() {

        RootRepresentation root = new RootRepresentation(REP_TYPE, uriInfo);
        for (TopLevelResource resource : resources) {
            root.addLink(
                    new ResourceLink(
                            toResourceName(resource.getResourceClass()),
                            uriInfo.getAbsolutePathBuilder().path(resource.getResourceClass()).build(),
                            resource.getResourceMediaType()));
        }
View Full Code Here

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

        URI uri = builder.path(BookmarkResource.class)
            .path(getResourceTypeName(source))
            .path(id)
            .build();

        return new ResourceLink("bookmark", uri, source.getResourceMediaType());
    }
View Full Code Here

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

                                            target.getSource().getType(),
                                            getTypeName(target.getTargetModel()));

            // TODO: Dynamically lookup MediaType
            representation.addLink(
                new ResourceLink(
                    target.getSource().getName(),
                    buidler.build(),
                    RelationResource.BASE_JSON_MEDIA_TYPE + "; type=" + getMediaTypeName(target.getTargetModel())));
        }
    }
View Full Code Here

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

        Warp.initiate(new Activity() {
            @Override
            public void perform() {
                given().
                    contentType(BASE_JSON_MEDIA_TYPE).
                    body(new ResourceLink("test", URI.create("http://test.org/api/test/" + TARGET_ID + "/"))).
                then().
                    contentType(BASE_JSON_MEDIA_TYPE).
                    statusCode(Status.OK.getStatusCode()).
                when().
                    patch(baseURL + "api/rel/{sourceObj}/{source}/{rel}/{targetObj}/",
View Full Code Here

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

    @Test @InSequence(3)
    public void shouldBeAbleToRemoveRelation() throws Exception {
        given().
            contentType(BASE_JSON_MEDIA_TYPE).
            body(new ResourceLink("test", URI.create("http://test.org/api/test/" + TARGET_ID + "/"))).
        then().
            statusCode(Status.NO_CONTENT.getStatusCode()).
        when().
            delete(baseURL + "api/rel/{sourceObj}/{source}/{rel}/{targetObj}/",
                "sourceobject", SOURCE_ID, type, "targetobject");
View Full Code Here

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

    public List<ResourceLink> getLinks() {
        List<ResourceLink> links = super.getLinks();
        if (getUriInfo() != null) {
            if(doesNotContainRel("self") && handle != null) {
                links.add(
                    new ResourceLink(
                        "self",
                        getUriInfo().getBaseUriBuilder().clone()
                            .path(UserResource.class)
                            .segment("{id}")
                            .build(handle),
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.