forked from Evolveum/midpoint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:Evolveum/midpoint
- Loading branch information
Showing
17 changed files
with
434 additions
and
104 deletions.
There are no files selected for viewing
24 changes: 15 additions & 9 deletions
24
repo/audit-api/src/main/java/com/evolveum/midpoint/audit/api/AuditResultHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,27 @@ | ||
/* | ||
* Copyright (c) 2010-2019 Evolveum and contributors | ||
* Copyright (C) 2010-2021 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.audit.api; | ||
|
||
import com.evolveum.midpoint.schema.result.OperationResult; | ||
import com.evolveum.midpoint.util.annotation.Experimental; | ||
import com.evolveum.midpoint.xml.ns._public.common.audit_3.AuditEventRecordType; | ||
|
||
/** | ||
* Handler interface for {@link AuditService#searchObjectsIterative}. | ||
*/ | ||
@FunctionalInterface | ||
@Experimental | ||
public interface AuditResultHandler { | ||
|
||
@Deprecated | ||
default boolean handle(AuditEventRecord auditRecord){ | ||
return true; | ||
} | ||
|
||
boolean handle(AuditEventRecordType auditRecord); | ||
|
||
int getProgress(); | ||
/** | ||
* Handle a single audit event record. | ||
* | ||
* @param eventRecord audit event record to process | ||
* @return true if the operation should proceed, false if it should stop | ||
*/ | ||
boolean handle(AuditEventRecordType eventRecord, OperationResult parentResult); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.