Class OrchestratorAccountAttachmentsService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.orchestrator.assets.rs1.account.attachment.OrchestratorAccountAttachmentsService
@RestController
@RequestMapping("assets/accounts/r1/attachments")
@Resource(logging=true)
public class OrchestratorAccountAttachmentsService
extends PrivateService
Service to manage the account attachments.
- Since:
- 20.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOAccountAttachment> get(Long attachmentId, Collection<String> fields) Retrieves the requiredDTOAccountAttachmentby calling theAttachmentLoadEvent, considering only attachments related to an account.org.springframework.http.ResponseEntity<PageResponse<DTOAccountAttachment>> getCollection(@Valid Page page, Collection<String> fields, String order, @Valid @NotNull DTOAccountAttachmentFilter filter) Retrieves the requiredDTOAccountAttachmentby calling theAttachmentSearchEventwith the right clause.
-
Constructor Details
-
OrchestratorAccountAttachmentsService
public OrchestratorAccountAttachmentsService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOAccountAttachment>> 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 DTOAccountAttachmentFilter filter) throws DAValidateException, DAException Retrieves the requiredDTOAccountAttachmentby calling theAttachmentSearchEventwith the right clause.- Parameters:
page- the required result pagefields- the collection of fields the response will containorder- the ordering fieldfilter- theDTOAccountAttachmentFilter- 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<DTOAccountAttachment> get(@PathVariable("attachmentId") Long attachmentId, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredDTOAccountAttachmentby calling theAttachmentLoadEvent, considering only attachments related to an account.- 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
-