Interface DownloadsServiceLocal
public interface DownloadsServiceLocal
Local interface for the Downloads service from the Planner API
-
Method Summary
Modifier and TypeMethodDescriptiondeleteDownload(String id) Deletes the download at the specified IDgetDownload(String id) Returns the download at the specified ID for the current user onlygetDownloads(DownloadsFilter filter) Returns downloads for the specified job and in the specified time range for the current user onlygetDownloads(String jobName, String createdOnFrom, String createdOnTo) Returns downloads for the specified job and in the specified time range for the current user only
-
Method Details
-
getDownload
Returns the download at the specified ID for the current user only- Parameters:
id- download ID- Returns:
- the download
- Throws:
PubServerException- See Also:
-
getDownloads
List<Download> getDownloads(String jobName, String createdOnFrom, String createdOnTo) throws PubServerException Returns downloads for the specified job and in the specified time range for the current user only- Parameters:
jobName- name of the jobcreatedOnFrom- start date of rangecreatedOnTo- end date of range- Returns:
- the list of downloads
- Throws:
PubServerException- See Also:
-
deleteDownload
Deletes the download at the specified ID- Parameters:
id- download ID- Returns:
- ID of deleted download
- Throws:
PubServerException
-
getDownloads
Returns downloads for the specified job and in the specified time range for the current user only- Parameters:
filter- search criteria in the DownloadsFilter object- Throws:
PubServerException- See Also:
-