Examples of Links


Examples of org.eclipse.bpel.model.Links

    if (block.getLabel() != null){
      if (block.getLabel().startsWith("flow_")){
        String flowName = block.getLabel().substring(5);
        Flow flow = BPELFactory.eINSTANCE.createFlow();
        flow.setName(flowName);
        Links links = BPELFactory.eINSTANCE.createLinks();
        flow.setLinks(links);
        for(CtStatement stmt : block.getStatements()){
          scan(stmt);
          ASTNodeData stmtData = nodeDataStack.peek();
          if (stmtData.flowActivity != null) {
View Full Code Here

Examples of org.jboss.aerogear.controller.router.rest.pagination.Links

    @Test
    public void links() {
        final PaginationInfo paginationInfo = PaginationInfo.offset(0).limit(10).build();
        final RequestPathParser requestPathParser = new RequestPathParser(paginationInfo, "cars?offset=0&limit=10");
        final Links links = new Links(requestPathParser, new PaginationProperties(0, 10, 100));
        assertThat(links.getFirst()).isEqualTo("cars?offset=0&limit=10");
        assertThat(links.getPrevious()).isEqualTo("cars?offset=0&limit=10");
        assertThat(links.getNext()).isEqualTo("cars?offset=10&limit=10");
        assertThat(links.getLast().get()).isEqualTo("cars?offset=90&limit=10");
    }
View Full Code Here

Examples of org.jboss.aerogear.controller.router.rest.pagination.Links

    @Test
    public void linksWithCustomParamName() {
        final PaginationInfo paginationInfo = PaginationInfo.offset(0).limit(10).build();
        final RequestPathParser requestPathParser = new RequestPathParser(paginationInfo, "cars?myoffset=0&mylimit=10");
        final Links links = new Links(requestPathParser, new PaginationProperties(0, 10, 100));
        assertThat(links.getFirst()).isEqualTo("cars?myoffset=0&mylimit=10");
        assertThat(links.getPrevious()).isEqualTo("cars?myoffset=0&mylimit=10");
        assertThat(links.getNext()).isEqualTo("cars?myoffset=10&mylimit=10");
        assertThat(links.getLast().get()).isEqualTo("cars?myoffset=90&mylimit=10");
    }
View Full Code Here

Examples of org.jboss.aerogear.controller.router.rest.pagination.Links

    @Test
    public void linksWithCustomParamNameAndExtraQueryParams() {
        final PaginationInfo paginationInfo = PaginationInfo.offset(0).limit(10).build();
        final RequestPathParser requestPathParser = new RequestPathParser(paginationInfo,
                "cars?color=red&myoffset=0&brand=Audi&mylimit=10&year=2013");
        final Links links = new Links(requestPathParser, new PaginationProperties(0, 10, 100));
        assertThat(links.getFirst()).isEqualTo("cars?color=red&myoffset=0&brand=Audi&mylimit=10&year=2013");
        assertThat(links.getPrevious()).isEqualTo("cars?color=red&myoffset=0&brand=Audi&mylimit=10&year=2013");
        assertThat(links.getNext()).isEqualTo("cars?color=red&myoffset=10&brand=Audi&mylimit=10&year=2013");
        assertThat(links.getLast().get()).isEqualTo("cars?color=red&myoffset=90&brand=Audi&mylimit=10&year=2013");
    }
View Full Code Here

Examples of org.platformlayer.core.model.Links

    PlatformLayerKey resolved = path.resolve(getContext());

    UntypedItemXml item = (UntypedItemXml) client.getItemUntyped(resolved, Format.XML);

    Links links = item.getLinks();

    Link link = new Link();
    link.name = name;
    link.target = target.resolve(getContext());

    Link existing = links.findLink(name);
    List<Link> linkList = links.getLinks();
    if (existing != null) {
      linkList.remove(existing);
    }
    linkList.add(link);
View Full Code Here

Examples of org.platformlayer.core.model.Links

    PlatformLayerKey resolved = path.resolve(getContext());

    UntypedItemXml item = (UntypedItemXml) client.getItemUntyped(resolved, Format.XML);

    Links links = item.getLinks();

    Link existing = links.findLink(name);
    List<Link> linkList = links.getLinks();
    if (existing != null) {
      linkList.remove(existing);

      item.setLinks(links);
View Full Code Here

Examples of org.platformlayer.core.model.Links

  public Links getLinks() {
    if (links == null) {
      Node element = XmlHelper.findUniqueChild(root, "links", false);
      if (element == null) {
        links = new Links();
      } else {
        JaxbHelper helper = JaxbHelper.get(Links.class);
        try {
          links = (Links) helper.unmarshal(element);
        } catch (JAXBException e) {
View Full Code Here

Examples of org.springframework.hateoas.Links

    PersistentProperty<?> property = association.getInverse();

    if (associationLinks.isLinkableAssociation(property)) {

      Links existingLinks = new Links(links);

      for (Link link : associationLinks.getLinksFor(association, basePath)) {
        if (existingLinks.hasLink(link.getRel())) {
          throw new MappingException(String.format(AMBIGUOUS_ASSOCIATIONS, property.toString()));
        } else {
          links.add(link);
        }
      }
View Full Code Here

Examples of org.springframework.hateoas.Links

  @RequestMapping(value = BASE_MAPPING, method = RequestMethod.GET)
  public ResourceSupport listSearches(RootResourceInformation resourceInformation) {

    verifySearchesExposed(resourceInformation);

    Links queryMethodLinks = getSearchLinks(resourceInformation.getDomainType());

    if (queryMethodLinks.isEmpty()) {
      throw new ResourceNotFoundException();
    }

    ResourceSupport result = new ResourceSupport();
    result.add(queryMethodLinks);
View Full Code Here

Examples of org.springframework.hateoas.Links

      }

      links.add(link);
    }

    return new Links(links);
  }
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.