Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@97791 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
3bd4da5d31
commit
43611e02a3
|
@ -5,21 +5,18 @@ import java.io.Serializable;
|
|||
import org.gcube.portlets.user.td.gwtservice.shared.share.Contacts;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @author "Giancarlo Panichi"
|
||||
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
* @author "Giancarlo Panichi" <a
|
||||
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||
*
|
||||
*/
|
||||
public class TabResource implements Serializable {
|
||||
|
||||
|
||||
|
||||
private static final long serialVersionUID = -8353499109124097114L;
|
||||
|
||||
|
||||
protected TRId trId;
|
||||
protected String id;//For grid only
|
||||
protected String id;// For grid only
|
||||
protected String name;
|
||||
protected String description;
|
||||
protected String agency;
|
||||
|
@ -28,18 +25,19 @@ public class TabResource implements Serializable {
|
|||
protected Contacts owner;
|
||||
protected boolean valid;
|
||||
protected boolean finalized;
|
||||
|
||||
|
||||
public TabResource(){}
|
||||
|
||||
public TabResource(String id, String name, String description,String agency, String date, String right, TRId trId){
|
||||
this.id=id;
|
||||
this.name=name;
|
||||
this.description=description;
|
||||
this.agency=agency;
|
||||
this.date=date;
|
||||
this.right=right;
|
||||
this.trId=trId;
|
||||
|
||||
public TabResource() {
|
||||
}
|
||||
|
||||
public TabResource(String id, String name, String description,
|
||||
String agency, String date, String right, TRId trId) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
this.agency = agency;
|
||||
this.date = date;
|
||||
this.right = right;
|
||||
this.trId = trId;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
|
@ -89,12 +87,12 @@ public class TabResource implements Serializable {
|
|||
public void setTrId(TRId trId) {
|
||||
this.trId = trId;
|
||||
}
|
||||
|
||||
public String getTabularResourceType(){
|
||||
String t="";
|
||||
if(trId!=null&&trId.getTabularResourceType()!=null){
|
||||
t=trId.getTabularResourceType();
|
||||
}
|
||||
|
||||
public String getTabularResourceType() {
|
||||
String t = "";
|
||||
if (trId != null && trId.getTabularResourceType() != null) {
|
||||
t = trId.getTabularResourceType();
|
||||
}
|
||||
return t;
|
||||
}
|
||||
|
||||
|
@ -105,7 +103,7 @@ public class TabResource implements Serializable {
|
|||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
|
||||
public Contacts getOwner() {
|
||||
return owner;
|
||||
}
|
||||
|
@ -114,6 +112,14 @@ public class TabResource implements Serializable {
|
|||
this.owner = owner;
|
||||
}
|
||||
|
||||
public String getOwnerLogin() {
|
||||
String login = null;
|
||||
if (owner != null) {
|
||||
login = owner.getLogin();
|
||||
}
|
||||
return login;
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return valid;
|
||||
}
|
||||
|
@ -138,9 +144,4 @@ public class TabResource implements Serializable {
|
|||
+ ", valid=" + valid + ", finalized=" + finalized + "]";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue