Class AttachmentService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.core.rs5.attachment.AttachmentService
@RestController("AttachmentService-legacy")
@RequestMapping("core/r5/attachments")
@Resource(logging=true)
public class AttachmentService
extends PrivateService
Services to manage attachments.
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOAttachmentURL> getDownloadUrl(String uuid) Returns the download url.org.springframework.http.ResponseEntity<DTOAttachmentURL> getUploadUrl(String uuid) Returns the upload attachment url.protected WebResourcegetWebResource(String uuid) protected DTOAttachmentURL
-
Constructor Details
-
AttachmentService
public AttachmentService()
-
-
Method Details
-
getUploadUrl
@GetMapping(value="{uuid:[A-Za-z0-9-]+}/uploadUrl", produces="application/json") public org.springframework.http.ResponseEntity<DTOAttachmentURL> getUploadUrl(@PathVariable("uuid") String uuid) throws DAValidateException, DAException Returns the upload attachment url.- Parameters:
uuid- the uuid- Returns:
- the standard response containing the required attachment url
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getDownloadUrl
@GetMapping(value="{uuid:[A-Za-z0-9-]+}/downloadUrl", produces="application/json") public org.springframework.http.ResponseEntity<DTOAttachmentURL> getDownloadUrl(@PathVariable("uuid") String uuid) throws DAValidateException, DAException Returns the download url.- Parameters:
uuid- the uuid- Returns:
- the response containing the required download url
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getWebResource
- Throws:
DAValidateExceptionDAException
-
makeDtoAttachmentURL
-