java.lang.Object
de.digitalcollections.cudami.server.controller.identifiable.entity.relation.PredicateController

@RestController
@Api(description="The predicates controller",
     name="Predicates controller")
public class PredicateController
extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor Description
    PredicateController()  
  • Method Summary

    Modifier and Type Method Description
    java.util.List<de.digitalcollections.model.api.identifiable.entity.relation.Predicate> getPredicates()  
    de.digitalcollections.model.api.identifiable.entity.relation.Predicate update​(java.lang.String value, de.digitalcollections.model.api.identifiable.entity.relation.Predicate predicate, org.springframework.validation.BindingResult errors)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PredicateController

      public PredicateController()
  • Method Details

    • getPredicates

      @ApiMethod(description="Get all predicates") @GetMapping({"/latest/predicates","/v3/predicates"}) @ApiResponseObject public java.util.List<de.digitalcollections.model.api.identifiable.entity.relation.Predicate> getPredicates()
    • update

      @ApiMethod(description="create or update a predicate, identified by its value") @PutMapping(value={"/latest/predicates/{value}","/v3/predicates/{value}"}, produces="application/json") @ApiResponseObject public de.digitalcollections.model.api.identifiable.entity.relation.Predicate update​(@PathVariable("value") java.lang.String value, @RequestBody de.digitalcollections.model.api.identifiable.entity.relation.Predicate predicate, org.springframework.validation.BindingResult errors) throws PredicatesServiceException
      Throws:
      PredicatesServiceException