Class HvlAuthzAuditRestController
java.lang.Object
tr.com.havelsan.javarch.oauth.authz.starter.module.support.audit.controller.HvlAuthzAuditRestController
- All Implemented Interfaces:
HvlAuthzAuditOperationalRestService
,HvlAuthzAuditRestService
@RestController
@RequestMapping("${hvl.oauth.authz.service.audit.controller-path:/audits}")
@HvlActuatorService(name="HvlAuthzAuditRestService",
groupName="HvlAuthzAudit")
public class HvlAuthzAuditRestController
extends Object
implements HvlAuthzAuditOperationalRestService, HvlAuthzAuditRestService
The class in which service endpoints are defined for audit operations.
-
Constructor Summary
ConstructorDescriptionHvlAuthzAuditRestController
(HvlAuthzAuditService auditService) Instantiates a new HvlAuthzAuditRestController. -
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse<List<HvlOAuthAuditModel>>
Returns a list of audit matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse<Void>
update
(@NotNull @Valid HvlOAuthAuditModel auditModel) Update audit.
-
Constructor Details
-
HvlAuthzAuditRestController
Instantiates a new HvlAuthzAuditRestController.- Parameters:
auditService
- the audit service
-
-
Method Details
-
update
@PreAuthorize("hasAuthority(\'keysys\')") @Validated(tr.com.havelsan.javarch.data.commons.validation.HvlConstraintGroups.ModifyingOperation.class) public tr.com.havelsan.javarch.service.data.HvlResponse<Void> update(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthAuditModel auditModel) Update audit.- Specified by:
update
in interfaceHvlAuthzAuditOperationalRestService
- Parameters:
auditModel
- the audit model- Returns:
- the hvl response
-
queryList
@PreAuthorize("hasAuthority(\'keysys\')") public tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlOAuthAuditModel>> queryList()Returns a list of audit matching the query criteria.- Specified by:
queryList
in interfaceHvlAuthzAuditRestService
- Returns:
- the hvl response
-