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 5d50adb..e7212d2 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 @@ -49,6 +49,7 @@ public class Item implements IsSerializable, ItemInterface{ this.name = name; } + /** * Instantiates a new item. * @@ -63,13 +64,30 @@ public class Item implements IsSerializable, ItemInterface{ * @param isRoot the is root */ public Item(Item parent, String id, String name, ItemType type, String path, String owner, Date creationDate, boolean isFolder, boolean isRoot) { + this(parent, id, name, type, path, owner, isFolder, isRoot); + this.creationDate = creationDate; + } + + + /** + * 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.type = type; this.path = path; this.children = new ArrayList(); this.owner = owner; - this.creationDate = creationDate; this.isRoot = isRoot; } @@ -309,6 +327,8 @@ public class Item implements IsSerializable, ItemInterface{ /** + * Gets the creation date. + * * @return the creationDate */ public Date getCreationDate() {