mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged WEBAPP-API (5.2.1) to 5.2.N (5.2.1)
134665 cpopa: APPSREPO-105 : Add an API to download multiple file/folders as a zip - test fixes to get rid of unpredictable failures - fixes after Gavin's OpenAPI spec review git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134674 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -36,22 +36,22 @@ import org.alfresco.service.cmr.download.DownloadStatus;
|
||||
*/
|
||||
public class Download
|
||||
{
|
||||
private String downloadId;
|
||||
private String id;
|
||||
private List<String> nodeIds;
|
||||
private DownloadStatus.Status status;
|
||||
private long done;
|
||||
private long total;
|
||||
private long bytesAdded;
|
||||
private long totalBytes;
|
||||
private long filesAdded;
|
||||
private long totalFiles;
|
||||
|
||||
public String getDownloadId()
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return downloadId;
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setDownloadId(String downloadId)
|
||||
public void setId(String id)
|
||||
{
|
||||
this.downloadId = downloadId;
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public List<String> getNodeIds()
|
||||
@@ -74,24 +74,24 @@ public class Download
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public long getDone()
|
||||
public long getBytesAdded()
|
||||
{
|
||||
return done;
|
||||
return bytesAdded;
|
||||
}
|
||||
|
||||
public void setDone(long done)
|
||||
public void setBytesAdded(long bytesAdded)
|
||||
{
|
||||
this.done = done;
|
||||
this.bytesAdded = bytesAdded;
|
||||
}
|
||||
|
||||
public long getTotal()
|
||||
public long getTotalBytes()
|
||||
{
|
||||
return total;
|
||||
return totalBytes;
|
||||
}
|
||||
|
||||
public void setTotal(long total)
|
||||
public void setTotalBytes(long totalBytes)
|
||||
{
|
||||
this.total = total;
|
||||
this.totalBytes = totalBytes;
|
||||
}
|
||||
|
||||
public long getFilesAdded()
|
||||
@@ -114,15 +114,16 @@ public class Download
|
||||
this.totalFiles = totalFiles;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
StringBuilder builder = new StringBuilder(150);
|
||||
builder.append("Download [downloadId=").append(downloadId)
|
||||
builder.append("Download [id=").append(id)
|
||||
.append(", nodeIds=").append(nodeIds)
|
||||
.append(", status=").append(status)
|
||||
.append(", done=").append(done)
|
||||
.append(", total=").append(total)
|
||||
.append(", bytesAdded=").append(bytesAdded)
|
||||
.append(", totalBytes=").append(totalBytes)
|
||||
.append(", filesAdded=").append(filesAdded)
|
||||
.append(", totalFiles=").append(totalFiles)
|
||||
.append("]");
|
||||
|
Reference in New Issue
Block a user