Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Genesys Backend
Genesys Backend
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 44
    • Issues 44
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • Genesys PGR
  • Genesys BackendGenesys Backend
  • Issues
  • #244

Closed
Open
Opened Jan 29, 2018 by Matija Obreza@mobrezaOwner
  • Report abuse
  • New issue
Report abuse New issue

Subsets

We're introducing a new "list of accessions", similar to current implementation of AccessionList.

Model

Add a new entity Subset to ..model.impl:

public class Subset extends AuditedVersionedModel implements AclAware {

  @Type(type = "uuid-binary")
  protected UUID uuid;

  protected boolean published;

  // other strings, only description is @Lob
  // dateCreated as string -- it's not the same as createdDate (from Auditing)
  protected String title, description, publisher, rights, dateCreated, publisher;

  @ManyToMany(cascade = {}, fetch = FetchType.LAZY)
  @JoinTable(name = "SubsetAccessions", joinColumns = @JoinColumn(name = "subsetId"), inverseJoinColumns = @JoinColumn(name = "acceId"))
  private List<AccessionId> accessionIds;
}
  1. Add JPA repository
  2. Implement service

Controller and JSP

Add a new SubsetController at /subset with the following methods

  1. GET /subset/ listSubsets() that renders the list of Subsets where published == true.
  2. GET /subset/{uuid} subset() that renders all properties of the Subset + the passport data of accessions in the subset. It should use the components from browse.

REST API controller

New controller at /api/v1/subset with endpoints:

  1. POST /list Page<Subset> list(@RequestBody SubsetFilters filter)
  2. GET /{uuid} Subset get(@PathVariable UUID uuid)
  3. POST /create Subset create(@RequestBody Subset subset)
  4. POST /update Subset update(@RequestBody Subset subset)
  5. DELETE /{uuid},{version} Subset delete(@PathVariable UUID uuid, @PathVariable int version)
Assignee
Assign to
2.4
Milestone
2.4 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: genesys-pgr/genesys-server#244