Package de.trustable.ca3s.core.web.rest
Class CertificateListResource
- java.lang.Object
-
- de.trustable.ca3s.core.web.rest.CertificateListResource
-
@RestController @RequestMapping("/publicapi") public class CertificateListResource extends ObjectREST controller for managingCertificate.
-
-
Field Summary
Fields Modifier and Type Field Description static org.springframework.http.MediaTypeTEXT_CSV_TYPE
-
Constructor Summary
Constructors Constructor Description CertificateListResource(CertificateViewRepository certificateViewRepository, int maxCSVRows)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<List<CertificateView>>getAllCertificates(org.springframework.data.domain.Pageable pageable, javax.servlet.http.HttpServletRequest request)GET /certificates: get all the certificates.org.springframework.http.ResponseEntity<String>getAllCertificatesAsCSV(org.springframework.data.domain.Pageable pageable, javax.servlet.http.HttpServletRequest request)GET /certificates: get all the certificates.List<CertificateView>getFullCVList(Map<String,String[]> parameterMap)
-
-
-
Constructor Detail
-
CertificateListResource
public CertificateListResource(CertificateViewRepository certificateViewRepository, @Value("${ca3s.ui.download.rows.max:1000}") int maxCSVRows)
-
-
Method Detail
-
getAllCertificates
@GetMapping("/certificateList") @Transactional public org.springframework.http.ResponseEntity<List<CertificateView>> getAllCertificates(org.springframework.data.domain.Pageable pageable, javax.servlet.http.HttpServletRequest request)GET /certificates: get all the certificates.- Parameters:
pageable- the pagination information.- Returns:
- the
ResponseEntitywith status200 (OK)and the list of certificates in body.
-
getAllCertificatesAsCSV
@GetMapping("/certificateListCSV") @Transactional public org.springframework.http.ResponseEntity<String> getAllCertificatesAsCSV(org.springframework.data.domain.Pageable pageable, javax.servlet.http.HttpServletRequest request)GET /certificates: get all the certificates.- Parameters:
pageable- the pagination information.- Returns:
- the
ResponseEntitywith status200 (OK)and the list of certificates in body.
-
getFullCVList
public List<CertificateView> getFullCVList(Map<String,String[]> parameterMap)
-
-