diff --git a/src/main/java/it/inaf/oats/vospace/datamodel/collections/NodeCollection.java b/src/main/java/it/inaf/oats/vospace/datamodel/collections/NodeCollection.java new file mode 100644 index 0000000000000000000000000000000000000000..43b3598ee998f5a8d4e55ce8e7120677a076c701 --- /dev/null +++ b/src/main/java/it/inaf/oats/vospace/datamodel/collections/NodeCollection.java @@ -0,0 +1,49 @@ +/* + * 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; + } + + +} diff --git a/src/main/java/it/inaf/oats/vospace/datamodel/collections/NodeCollectionsList.java b/src/main/java/it/inaf/oats/vospace/datamodel/collections/NodeCollectionsList.java new file mode 100644 index 0000000000000000000000000000000000000000..09a9d221101af9b1b7073d69a8f9691d5dd6cedf --- /dev/null +++ b/src/main/java/it/inaf/oats/vospace/datamodel/collections/NodeCollectionsList.java @@ -0,0 +1,32 @@ +/* + * 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; + } + +}