Class AbstractCrudChildRestResource<Read,​Write,​ID extends Serializable>

    • Constructor Detail

      • AbstractCrudChildRestResource

        public AbstractCrudChildRestResource()
    • Method Detail

      • find

        public PageableResult<Read> find​(ID parentId,
                                         org.springframework.data.domain.Pageable pageable)
      • create

        public Read create​(ID parentId,
                           Write write)
      • update

        public Read update​(ID parentId,
                           ID id,
                           Write write)
      • delete

        public void delete​(ID parentId,
                           ID id)
      • buildBaseUriBuilder

        protected org.springframework.web.util.UriComponentsBuilder buildBaseUriBuilder​(ID parentId)
      • getBaseParentApiUrl

        protected abstract String getBaseParentApiUrl()
        Returns:
        full qualified url to the parent base url without ID etc
      • getChildPath

        protected abstract String getChildPath()
        Returns:
        url path of the child entity