Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement next/previous values beyond requested timespan #121

Closed
2 tasks done
ridoo opened this issue Jul 9, 2018 · 0 comments
Closed
2 tasks done

Implement next/previous values beyond requested timespan #121

ridoo opened this issue Jul 9, 2018 · 0 comments

Comments

@ridoo
Copy link
Member

ridoo commented Jul 9, 2018

See: 52North/sensorweb-server-helgoland#440

  • v2.x
  • v3.x
@ridoo ridoo self-assigned this Jul 9, 2018
ridoo added a commit to ridoo/dao-series-api that referenced this issue Jul 11, 2018
Introduces the common interface `ValueAssembler` which is
implemented by both new value assemblers and older data
repositories to make step-by-step migration possible. Two
value assemblers are added at first migration step:

  1. QuantityValueAssembler
  2. QuantityProfileValueAssembler

Both `DatasetRespository` and `DataRespository` have been
added as proper generic Spring data repositories to make data
and dataset access work. They come with a first set of query
specifications.

Assembler instances are created at runtime depending on the
given value type (which is determined by the id, for example
`quantity_8`, or `quantity-profile_8`). This approach is not
new, but factory process has been changed slightly:

  - `@ValueAssemblerComponent` is now a `@Component`
     and is detected by Spring via `@ComponentScan`
  - the assembler annotation takes the actual dataset type
  - factory takes now that entity type to create assembler
     properly according to the dataset type

Resolves: 52North#121
See also: 52North#122
@ridoo ridoo closed this as completed in 0fb3704 Aug 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant