-
Notifications
You must be signed in to change notification settings - Fork 188
/
AccessCertificationEvent.java
53 lines (44 loc) · 1.51 KB
/
AccessCertificationEvent.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* Copyright (c) 2020 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.notifications.api.events;
import com.evolveum.midpoint.schema.result.OperationResultStatus;
import com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCampaignType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationStageDefinitionType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.EventOperationType;
import org.jetbrains.annotations.NotNull;
/**
* An event related to access certification.
*/
public interface AccessCertificationEvent extends Event {
/**
* Type of the operation: usually
* - ADD (opening campaign/stage)
* - DELETE (closing campaign/stage).
*
* In special cases there can be MODIFY e.g. meaning "stage deadline approaching".
*/
EventOperationType getOperationType();
/**
* Status of the operation.
* (Currently always SUCCESS.)
*/
OperationResultStatus getStatus();
/**
* Related certification campaign.
*/
@NotNull AccessCertificationCampaignType getCampaign();
/**
* Name of the related certification campaign.
*/
default String getCampaignName() {
return getCampaign().getName().getOrig();
}
/**
* Definition of the current stage.
*/
AccessCertificationStageDefinitionType getCurrentStageDefinition();
}