Loading src/main/java/it/inaf/oats/vospace/datamodel/collections/NodeCollection.java 0 → 100644 +49 −0 Original line number Diff line number Diff line /* * This file is part of vospace-rest * Copyright (C) 2021 Istituto Nazionale di Astrofisica * SPDX-License-Identifier: GPL-3.0-or-later */ package it.inaf.oats.vospace.datamodel.collections; /** * * @author Nicola Fulvio Calabria <nicola.calabria at inaf.it> */ public class NodeCollection { private Long id; private String title; private String ownerId; public NodeCollection(Long id, String title, String ownerId) { this.id = id; this.title = title; this.ownerId = ownerId; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getOwnerId() { return ownerId; } public void setOwnerId(String ownerId) { this.ownerId = ownerId; } } src/main/java/it/inaf/oats/vospace/datamodel/collections/NodeCollectionsList.java 0 → 100644 +32 −0 Original line number Diff line number Diff line /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package it.inaf.oats.vospace.datamodel.collections; import java.util.ArrayList; import java.util.List; /** * Wrapper class for REST GET * * @author Nicola Fulvio Calabria <nicola.calabria at inaf.it> */ public class NodeCollectionsList { private List<NodeCollection> nodeCollections; public NodeCollectionsList() { this.nodeCollections = new ArrayList<>(); } public List<NodeCollection> getNodeCollections() { return nodeCollections; } public void setNodeCollections(List<NodeCollection> nodeCollections) { this.nodeCollections = nodeCollections; } } Loading
src/main/java/it/inaf/oats/vospace/datamodel/collections/NodeCollection.java 0 → 100644 +49 −0 Original line number Diff line number Diff line /* * This file is part of vospace-rest * Copyright (C) 2021 Istituto Nazionale di Astrofisica * SPDX-License-Identifier: GPL-3.0-or-later */ package it.inaf.oats.vospace.datamodel.collections; /** * * @author Nicola Fulvio Calabria <nicola.calabria at inaf.it> */ public class NodeCollection { private Long id; private String title; private String ownerId; public NodeCollection(Long id, String title, String ownerId) { this.id = id; this.title = title; this.ownerId = ownerId; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getOwnerId() { return ownerId; } public void setOwnerId(String ownerId) { this.ownerId = ownerId; } }
src/main/java/it/inaf/oats/vospace/datamodel/collections/NodeCollectionsList.java 0 → 100644 +32 −0 Original line number Diff line number Diff line /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package it.inaf.oats.vospace.datamodel.collections; import java.util.ArrayList; import java.util.List; /** * Wrapper class for REST GET * * @author Nicola Fulvio Calabria <nicola.calabria at inaf.it> */ public class NodeCollectionsList { private List<NodeCollection> nodeCollections; public NodeCollectionsList() { this.nodeCollections = new ArrayList<>(); } public List<NodeCollection> getNodeCollections() { return nodeCollections; } public void setNodeCollections(List<NodeCollection> nodeCollections) { this.nodeCollections = nodeCollections; } }