Class RequestProxyConfigAdministration
- java.lang.Object
-
- de.trustable.ca3s.core.web.rest.support.RequestProxyConfigAdministration
-
@RestController @RequestMapping("/api") public class RequestProxyConfigAdministration extends ObjectREST controller for processing PKCS10 requests and Certificates.
-
-
Field Summary
Fields Modifier and Type Field Description static StringPLAIN_SECRET_PLACEHOLDER
-
Constructor Summary
Constructors Constructor Description RequestProxyConfigAdministration(RequestProxyConfigService requestProxyConfigService, ProtectedContentUtil protUtil, ProtectedContentRepository protContentRepository, AuditService auditService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<Void>createRequestProxyConfig(@Valid RequestProxyConfigView requestProxyConfigView)POST /request-proxy-config: Create a new requestProxyConfig.List<RequestProxyConfigView>getAllRequestProxyConfig()GET /request-proxy-config: get all the requestProxyConfig.org.springframework.http.ResponseEntity<RequestProxyConfigView>getRequestProxyConfig(Long id)GET /request-proxy-config/:id: get the "id" requestProxyConfig.org.springframework.http.ResponseEntity<Void>updateRequestProxyConfigView(@Valid RequestProxyConfigView requestProxyConfigView)PUT /request-proxy-config: Updates an existing requestProxyConfig.
-
-
-
Field Detail
-
PLAIN_SECRET_PLACEHOLDER
public static final String PLAIN_SECRET_PLACEHOLDER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RequestProxyConfigAdministration
public RequestProxyConfigAdministration(RequestProxyConfigService requestProxyConfigService, ProtectedContentUtil protUtil, ProtectedContentRepository protContentRepository, AuditService auditService)
-
-
Method Detail
-
createRequestProxyConfig
@PostMapping("/request-proxy-config") @PreAuthorize("hasRole(\"ROLE_ADMIN\")") @Transactional public org.springframework.http.ResponseEntity<Void> createRequestProxyConfig(@Valid @RequestBody @Valid RequestProxyConfigView requestProxyConfigView) throws URISyntaxExceptionPOST /request-proxy-config: Create a new requestProxyConfig.- Parameters:
requestProxyConfigView- the requestProxyConfig to create.- Returns:
- Void with status
201 (Created)and with body the new requestProxyConfig, or with status400 (Bad Request)if the requestProxyConfig has already an ID. - Throws:
URISyntaxException- if the Location URI syntax is incorrect.
-
updateRequestProxyConfigView
@PutMapping("/request-proxy-config") @PreAuthorize("hasRole(\"ROLE_ADMIN\")") @Transactional public org.springframework.http.ResponseEntity<Void> updateRequestProxyConfigView(@Valid @RequestBody @Valid RequestProxyConfigView requestProxyConfigView) throws URISyntaxExceptionPUT /request-proxy-config: Updates an existing requestProxyConfig.- Parameters:
requestProxyConfigView- the requestProxyConfig to update.- Returns:
- Void with status
200 (OK)and with body the updated requestProxyConfig, or with status400 (Bad Request)if the requestProxyConfig is not valid, or with status500 (Internal Server Error)if the requestProxyConfig couldn't be updated. - Throws:
URISyntaxException- if the Location URI syntax is incorrect.
-
getAllRequestProxyConfig
@GetMapping("/request-proxy-config") @PreAuthorize("hasRole(\"ROLE_ADMIN\")") public List<RequestProxyConfigView> getAllRequestProxyConfig()GET /request-proxy-config: get all the requestProxyConfig.- Returns:
- the
ResponseEntitywith status200 (OK)and the list of requestProxyConfigViews in body.
-
getRequestProxyConfig
@GetMapping("/request-proxy-config/{id}") @PreAuthorize("hasRole(\"ROLE_ADMIN\")") public org.springframework.http.ResponseEntity<RequestProxyConfigView> getRequestProxyConfig(@PathVariable Long id)GET /request-proxy-config/:id: get the "id" requestProxyConfig.- Parameters:
id- the id of the requestProxyConfig to retrieve.- Returns:
- the
ResponseEntitywith status200 (OK)and with body the requestProxyConfigView, or with status404 (Not Found).
-
-