Class ControlConstructController
- java.lang.Object
-
- no.nsd.qddt.domain.AbstractController
-
- no.nsd.qddt.domain.controlconstruct.web.ControlConstructController
-
@RestController @RequestMapping("/controlconstruct") public class ControlConstructController extends AbstractController
This controller relates to a meta storage, which has a rank,logic and Rankrationale property, and thus need control
-
-
Field Summary
-
Fields inherited from class no.nsd.qddt.domain.AbstractController
LOG
-
-
Constructor Summary
Constructors Constructor Description ControlConstructController(ControlConstructService ccService, OtherMaterialService otherMaterialService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ControlConstruct
createWithFile(org.springframework.web.multipart.MultipartFile[] files, java.lang.String jsonString)
void
delete(java.util.UUID id)
<S extends ControlConstruct>
Sget(java.util.UUID id)
org.springframework.http.HttpEntity<org.springframework.hateoas.PagedResources<ConstructJsonView>>
getBy(java.lang.String name, java.lang.String description, java.lang.String questionText, java.lang.String questionName, java.lang.String kind, java.lang.String sequenceKind, org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler assembler)
java.util.List<ConstructQuestionJson>
getBySecond(java.util.UUID secondId)
byte[]
getPdf(java.util.UUID id)
java.lang.String
getXml(java.util.UUID id)
ConditionConstruct
update(ConditionConstruct instance)
QuestionConstruct
update(QuestionConstruct instance)
Sequence
update(Sequence instance)
StatementItem
update(StatementItem instance)
-
-
-
Constructor Detail
-
ControlConstructController
@Autowired public ControlConstructController(ControlConstructService ccService, OtherMaterialService otherMaterialService)
-
-
Method Detail
-
get
@ResponseStatus(OK) @RequestMapping(value="{id}", method=GET) public <S extends ControlConstruct> S get(@PathVariable("id") java.util.UUID id)
-
update
@ResponseStatus(OK) @RequestMapping(value="/condition", method=POST) public ConditionConstruct update(@RequestBody ConditionConstruct instance)
-
update
@ResponseStatus(OK) @RequestMapping(value="/question", method=POST) public QuestionConstruct update(@RequestBody QuestionConstruct instance)
-
update
@ResponseStatus(OK) @RequestMapping(value="/sequence", method=POST) public Sequence update(@RequestBody Sequence instance)
-
update
@ResponseStatus(OK) @RequestMapping(value="/statement", method=POST) public StatementItem update(@RequestBody StatementItem instance)
-
createWithFile
@ResponseStatus(OK) @RequestMapping(value="/createfile", method=POST, headers="content-type=multipart/form-data") public ControlConstruct createWithFile(@RequestParam("files") org.springframework.web.multipart.MultipartFile[] files, @RequestParam("controlconstruct") java.lang.String jsonString) throws org.apache.tomcat.util.http.fileupload.FileUploadException, java.io.IOException
- Throws:
org.apache.tomcat.util.http.fileupload.FileUploadException
java.io.IOException
-
delete
@ResponseStatus(OK) @RequestMapping(value="/delete/{id}", method=DELETE) public void delete(@PathVariable("id") java.util.UUID id)
-
getBySecond
@ResponseStatus(OK) @RequestMapping(value="/list/by-question/{uuid}", method=GET) public java.util.List<ConstructQuestionJson> getBySecond(@PathVariable("uuid") java.util.UUID secondId)
-
getBy
@RequestMapping(value="/page/search", method=GET, produces="application/json") public org.springframework.http.HttpEntity<org.springframework.hateoas.PagedResources<ConstructJsonView>> getBy(@RequestParam(value="name",defaultValue="") java.lang.String name, @RequestParam(value="description",defaultValue="") java.lang.String description, @RequestParam(value="questionText",defaultValue="") java.lang.String questionText, @RequestParam(value="questionName",defaultValue="") java.lang.String questionName, @RequestParam(value="constructKind",defaultValue="QUESTION_CONSTRUCT") java.lang.String kind, @RequestParam(value="sequenceKind",defaultValue="") java.lang.String sequenceKind, org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler assembler)
-
getPdf
@ResponseBody @RequestMapping(value="/pdf/{id}", method=GET, produces="application/pdf") public byte[] getPdf(@PathVariable("id") java.util.UUID id)
-
getXml
@ResponseStatus(OK) @RequestMapping(value="/xml/{id}", method=GET) public java.lang.String getXml(@PathVariable("id") java.util.UUID id)
-
-