From 55f9ca799b83649e851a1390cad88ddc483210ee Mon Sep 17 00:00:00 2001 From: Francesco Mangiacrapa Date: Tue, 19 Jan 2016 14:11:06 +0000 Subject: [PATCH] Added old constructor for Item object used by wsmail-widget git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-explorer@122315 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../widgets/wsexplorer/shared/Item.java | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gcube/portlets/widgets/wsexplorer/shared/Item.java b/src/main/java/org/gcube/portlets/widgets/wsexplorer/shared/Item.java index 700205a..b68ba25 100644 --- a/src/main/java/org/gcube/portlets/widgets/wsexplorer/shared/Item.java +++ b/src/main/java/org/gcube/portlets/widgets/wsexplorer/shared/Item.java @@ -47,8 +47,6 @@ public class Item implements IsSerializable { this.isFolder = isFolder; } - - /** * Instantiates a new item. * @@ -74,6 +72,28 @@ public class Item implements IsSerializable { this.isRoot = isRoot; } + /** + * Instantiates a new item. + * + * @param parent the parent + * @param id the id + * @param name the name + * @param type the type + * @param path the path + * @param owner the owner + * @param isFolder the is folder + * @param isRoot the is root + */ + public Item(Item parent, String id, String name, ItemType type, String path, String owner, boolean isFolder, boolean isRoot) { + this(id, name, isFolder); + this.parent = parent; + this.name = name; + this.type = type; + this.path = path; + this.children = new ArrayList(); + this.owner = owner; + this.isRoot = isRoot; + } /** * Gets the storage id.