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

Minor refactoring

parent bf4eb6eb
No related branches found
No related tags found
No related merge requests found
...@@ -6,8 +6,7 @@ ...@@ -6,8 +6,7 @@
package it.inaf.oats.vospace; package it.inaf.oats.vospace;
import it.inaf.ia2.aa.data.User; import it.inaf.ia2.aa.data.User;
import it.inaf.oats.vospace.datamodel.collections.NodeCollectionsList; import it.inaf.oats.vospace.datamodel.collections.NodeCollectionsWrapper;
import it.inaf.oats.vospace.persistence.CollectionsDAO;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
...@@ -33,11 +32,11 @@ public class CollectionsController { ...@@ -33,11 +32,11 @@ public class CollectionsController {
// list collections owned by user // list collections owned by user
@GetMapping(value = "/collections") @GetMapping(value = "/collections")
public ResponseEntity<NodeCollectionsList> listCollections( public ResponseEntity<NodeCollectionsWrapper> listCollections(
HttpServletRequest request, User principal) { HttpServletRequest request, User principal) {
LOG.debug("list collections called for user {}", principal.getName()); LOG.debug("list collections called for user {}", principal.getName());
NodeCollectionsList ncl = new NodeCollectionsList(); NodeCollectionsWrapper ncl = new NodeCollectionsWrapper();
ncl.setNodeCollections( ncl.setNodeCollections(
collectionsService.listCollections(principal.getName())); collectionsService.listCollections(principal.getName()));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment