Class WorkOrderEncodedNoteService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.core.rs5.schedule.intervention.outcome.encodednote.WorkOrderEncodedNoteService
@RestController
@RequestMapping("core/r5/planning/agendas/outcome/workorderencodednotes")
@Resource(logging=true)
public class WorkOrderEncodedNoteService
extends PrivateService
Services to manage work order encoded notes.
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOWorkOrderEncodedNote> Retrieves the required encoded note.org.springframework.http.ResponseEntity<PageResponse<DTOWorkOrderEncodedNote>> getCollection(@NotNull @Valid Page page, @Valid @NotNull DTOWorkOrderEncodedNoteSearchFilter filter) Retrieve the all stored encoded notes.org.springframework.http.ResponseEntity<Void> patch(Long id, @Valid DTOWorkOrderEncodedNoteUpdate dto) Modifies the required encoded note.org.springframework.http.ResponseEntity<DTOIdentifier<Long>> Create a new encoded note.
-
Constructor Details
-
WorkOrderEncodedNoteService
public WorkOrderEncodedNoteService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOWorkOrderEncodedNote>> getCollection(@RequestParam("page") @NotNull @Valid @NotNull @Valid Page page, @RequestParam("filter") @Valid @NotNull @Valid @NotNull DTOWorkOrderEncodedNoteSearchFilter filter) throws DAValidateException, DAException Retrieve the all stored encoded notes.WorkOrderEncodedNoteSearchEvent- Parameters:
page- the required result pagefilter- the specifiedDTOWorkOrderEncodedNoteSearchFilter- Returns:
- the response containing the current result page
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{id:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOWorkOrderEncodedNote> get(@PathVariable("id") Long id, @RequestParam(required=false,name="language",defaultValue="user") String language) throws DAValidateException, DAException Retrieves the required encoded note.WorkOrderEncodedNoteLoadEvent- Parameters:
id- encoded note idlanguage- the language filter- Returns:
- the response containing the required encoded note
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
post
@PostMapping(consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<DTOIdentifier<Long>> post(@Valid @RequestBody @Valid DTOWorkOrderEncodedNoteInsert dto) throws DAValidateException, DAException Create a new encoded note.WorkOrderEncodedNoteInsertEvent- Parameters:
dto- theDTOWorkOrderEncodedNoteInsert- Returns:
- the standard response containing the new workorder encoded note id
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
patch
@PatchMapping(value="{id:[0-9]+}", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> patch(@PathVariable("id") Long id, @Valid @RequestBody @Valid DTOWorkOrderEncodedNoteUpdate dto) throws DAValidateException, DAException Modifies the required encoded note.WorkOrderEncodedNoteUpdateEvent- Parameters:
id- the encoded note iddto- the encoded note updateDTOWorkOrderEncodedNoteUpdate- Returns:
- a standard response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-