added old constructor
public Item(Item parent, String id, String name, ItemType type, String path, String owner, Date creationDate, boolean isFolder, boolean isRoot) git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-explorer@124999 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
ddc2ca678a
commit
5142436843
|
@ -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<Item>();
|
||||
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() {
|
||||
|
|
Loading…
Reference in New Issue