Class OrchestratorAssetAttachmentsService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.orchestrator.assets.rs1.asset.attachment.OrchestratorAssetAttachmentsService
@RestController
@RequestMapping("assets/r1/attachments")
@Resource(logging=true)
public class OrchestratorAssetAttachmentsService
extends PrivateService
Service to manage the asset attachments.
- Since:
- 20.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOAssetAttachment> get(Long attachmentId, Collection<String> fields) Retrieves the requiredDTOAssetAttachmentby calling theAttachmentLoadEvent, considering only attachments related to a asset.org.springframework.http.ResponseEntity<PageResponse<DTOAssetAttachment>> getCollection(@Valid Page page, Collection<String> fields, String order, @Valid @NotNull DTOAssetAttachmentFilter filter) Retrieves the requiredDTOAssetAttachmentby calling theAttachmentSearchEventwith the right clause.
-
Constructor Details
-
OrchestratorAssetAttachmentsService
public OrchestratorAssetAttachmentsService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOAssetAttachment>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,name="_fields") Collection<String> fields, @RequestParam(required=false,name="_order") String order, @Valid @NotNull @Valid @NotNull DTOAssetAttachmentFilter filter) throws DAValidateException, DAException Retrieves the requiredDTOAssetAttachmentby calling theAttachmentSearchEventwith the right clause.- Parameters:
page- the required result pagefields- the collection of fields the response will containorder- the ordering fieldfilter- theDTOAssetAttachmentFilter- Returns:
- the response containing the current result page
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{attachmentId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOAssetAttachment> get(@PathVariable("attachmentId") Long attachmentId, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredDTOAssetAttachmentby calling theAttachmentLoadEvent, considering only attachments related to a asset.- Parameters:
attachmentId- the attachment idfields- the collection of fields the response will contain- Returns:
- the response containing the loaded attachment
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-