Skip to content
Snippets Groups Projects
Commit 9954ce4c authored by Nicola Fulvio Calabria's avatar Nicola Fulvio Calabria
Browse files

Added classes for node collections

parent f083a0aa
No related branches found
No related tags found
No related merge requests found
/*
* 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;
}
}
/*
* 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;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment