added property Name to WorkspaceContent

This commit is contained in:
Francesco Mangiacrapa 2021-09-24 12:04:01 +02:00
parent e64549fd2b
commit f5fd25759a
2 changed files with 13 additions and 2 deletions

View File

@ -475,6 +475,7 @@ public class ConvertToDataViewModel {
theWSDV.setMimetype(wContent.getMimetype());
theWSDV.setStorageID(wContent.getStorageID());
theWSDV.setId(wContent.getId());
theWSDV.setName(wContent.getName());
return theWSDV;
}

View File

@ -27,6 +27,8 @@ public class WorkspaceContentDV implements Serializable {
private Long id;
private String name;
public WorkspaceContentDV() {
}
@ -63,6 +65,14 @@ public class WorkspaceContentDV implements Serializable {
this.link = link;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
@ -74,10 +84,10 @@ public class WorkspaceContentDV implements Serializable {
builder.append(link);
builder.append(", id=");
builder.append(id);
builder.append(", name=");
builder.append(name);
builder.append("]");
return builder.toString();
}
}