org.springframework.hateoas.EntityLinks Java Examples
The following examples show how to use
org.springframework.hateoas.EntityLinks.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SpringDataRestConfiguration.java From spring-in-action-5-samples with Apache License 2.0 | 6 votes |
@Bean public ResourceProcessor<PagedResources<Resource<Taco>>> tacoProcessor(EntityLinks links) { return new ResourceProcessor<PagedResources<Resource<Taco>>>() { @Override public PagedResources<Resource<Taco>> process( PagedResources<Resource<Taco>> resource) { resource.add( links.linkFor(Taco.class) .slash("recent") .withRel("recents")); return resource; } }; }
Example #2
Source File: TacoResourcesProcessor.java From spring-in-action-5-samples with Apache License 2.0 | 4 votes |
public TacoResourcesProcessor(EntityLinks entityLinks) { this.entityLinks = entityLinks; }
Example #3
Source File: DataFlowControllerAutoConfiguration.java From spring-cloud-dashboard with Apache License 2.0 | 4 votes |
@Bean public RootController rootController(EntityLinks entityLinks) { return new RootController(entityLinks); }
Example #4
Source File: PaymentController.java From micro-ecommerce with Apache License 2.0 | 4 votes |
@Autowired public PaymentController(PaymentService paymentService, EntityLinks entityLinks) { super(); this.paymentService = paymentService; this.entityLinks = entityLinks; }
Example #5
Source File: PaymentController.java From micro-ecommerce with Apache License 2.0 | 4 votes |
public EntityLinks getEntityLinks() { return entityLinks; }
Example #6
Source File: PaymentController.java From micro-ecommerce with Apache License 2.0 | 4 votes |
public void setEntityLinks(EntityLinks entityLinks) { this.entityLinks = entityLinks; }
Example #7
Source File: PaymentLinks.java From micro-ecommerce with Apache License 2.0 | 4 votes |
@Autowired public PaymentLinks(EntityLinks entityLinks) { this.entityLinks = entityLinks; }
Example #8
Source File: CoreOrderResourceProcessor.java From micro-ecommerce with Apache License 2.0 | 4 votes |
@Autowired public CoreOrderResourceProcessor(EntityLinks entityLinks) { this.entityLinks = entityLinks; }
Example #9
Source File: InventoryItemLinks.java From moserp with Apache License 2.0 | 4 votes |
@Autowired public InventoryItemLinks(EntityLinks entityLinks) { this.entityLinks = entityLinks; }
Example #10
Source File: DemoRestMvcConfiguration.java From spring-data-dynamodb-demo with Apache License 2.0 | 3 votes |
/** * A special {@link org.springframework.hateoas.EntityLinks} implementation * that takes repository and current configuration into account when * generating links. * * @return * @throws Exception */ @Bean public EntityLinks entityLinks() { return new DemoRepositoryEntityLinks(repositories(), resourceMappings(), config(),pageableResolver(),backendIdConverterRegistry()); }
Example #11
Source File: RootController.java From spring-cloud-dashboard with Apache License 2.0 | 2 votes |
/** * Construct an {@code RootController}. * * @param entityLinks holder of links to controllers and their associated entity types */ public RootController(EntityLinks entityLinks) { this.entityLinks = entityLinks; }