2013-02-06 15:40:17 +01:00
|
|
|
package org.gcube.portlets.user.workspace.client.model;
|
|
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
2019-02-22 12:05:22 +01:00
|
|
|
import org.gcube.portlets.widgets.workspacesharingwidget.shared.InfoContactModel;
|
|
|
|
|
2013-02-06 15:40:17 +01:00
|
|
|
|
|
|
|
/**
|
2019-02-22 14:40:20 +01:00
|
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa{@literal @}isti.cnr.it
|
2013-02-06 15:40:17 +01:00
|
|
|
*
|
|
|
|
*/
|
2015-11-17 18:14:16 +01:00
|
|
|
@Deprecated
|
2013-02-06 15:40:17 +01:00
|
|
|
public class FileDetailsModel extends FileGridModel {
|
|
|
|
|
|
|
|
/**
|
2016-09-15 16:42:20 +02:00
|
|
|
*
|
2013-02-06 15:40:17 +01:00
|
|
|
*/
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
protected FileDetailsModel() {
|
|
|
|
}
|
|
|
|
|
2013-02-25 19:03:53 +01:00
|
|
|
public FileDetailsModel(String identifier, String name, String path, Date creationDate, FileModel parent, long size, boolean isDirectory, String description, Date lastModified, InfoContactModel owner, boolean isShared) {
|
2013-02-06 15:40:17 +01:00
|
|
|
super(identifier,name,path,creationDate,parent,size,isDirectory, isShared);
|
2016-09-15 16:42:20 +02:00
|
|
|
|
2013-02-06 15:40:17 +01:00
|
|
|
setLastModified(lastModified);
|
|
|
|
setDescription(description);
|
2015-11-17 18:14:16 +01:00
|
|
|
// setOwner(owner);
|
2016-09-15 16:42:20 +02:00
|
|
|
|
2013-02-06 15:40:17 +01:00
|
|
|
}
|
2016-09-15 16:42:20 +02:00
|
|
|
|
2013-02-06 15:40:17 +01:00
|
|
|
public void setLastModified(Date lastModified) {
|
2016-09-15 16:42:20 +02:00
|
|
|
set(FileGridModel.LASTMODIFIED, lastModified);
|
2013-02-06 15:40:17 +01:00
|
|
|
}
|
2016-09-15 16:42:20 +02:00
|
|
|
|
|
|
|
|
|
|
|
public String getDescription(){
|
|
|
|
return get(FileGridModel.DESCRIPTION);
|
2013-02-06 15:40:17 +01:00
|
|
|
}
|
2016-09-15 16:42:20 +02:00
|
|
|
|
2013-02-06 15:40:17 +01:00
|
|
|
}
|