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
This commit is contained in:
parent
031f7d404d
commit
55f9ca799b
|
@ -47,8 +47,6 @@ public class Item implements IsSerializable {
|
||||||
this.isFolder = isFolder;
|
this.isFolder = isFolder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Instantiates a new item.
|
* Instantiates a new item.
|
||||||
*
|
*
|
||||||
|
@ -74,6 +72,28 @@ public class Item implements IsSerializable {
|
||||||
this.isRoot = isRoot;
|
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<Item>();
|
||||||
|
this.owner = owner;
|
||||||
|
this.isRoot = isRoot;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the storage id.
|
* Gets the storage id.
|
||||||
|
|
Loading…
Reference in New Issue