Class StructureService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.organizationalstructures.rs1.structure.StructureService
@RestController
@RequestMapping("territory/organizational-structures/r1/structures")
@Resource(logging=true)
public class StructureService
extends PrivateService
Service for manage structure
- Since:
- 17.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOStructure> get(Long structureId, String language, Collection<String> fields) org.springframework.http.ResponseEntity<PageResponse<DTOStructure>> getCollection(@Valid Page page, Collection<String> fields, String order, String language, @Valid @NotNull DTOStructureFilter filter) org.springframework.http.ResponseEntity<Void> patch(Long structureId, @Valid DTOStructureUpdate dto) org.springframework.http.ResponseEntity<DTOIdentifier<Long>> post(@Valid DTOStructureInsert dto)
-
Constructor Details
-
StructureService
public StructureService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOStructure>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,name="_fields") Collection<String> fields, @RequestParam(required=false,name="_order") String order, @RequestParam(required=false,name="_language",defaultValue="user") String language, @Valid @NotNull @Valid @NotNull DTOStructureFilter filter) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
get
@GetMapping(value="{structureId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOStructure> get(@PathVariable("structureId") Long structureId, @RequestParam(required=false,name="_language",defaultValue="user") String language, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
post
@PostMapping(consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<DTOIdentifier<Long>> post(@Valid @RequestBody @Valid DTOStructureInsert dto) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
patch
@PatchMapping(value="{structureId:[0-9]+}", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> patch(@PathVariable("structureId") Long structureId, @Valid @RequestBody @Valid DTOStructureUpdate dto) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-