-
Notifications
You must be signed in to change notification settings - Fork 188
/
EvaluationOrder.java
57 lines (38 loc) · 1.49 KB
/
EvaluationOrder.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
54
55
56
57
/*
* Copyright (c) 2010-2017 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.model.api.context;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.xml.namespace.QName;
import org.apache.commons.collections4.MultiSet;
import com.evolveum.midpoint.util.DebugDumpable;
import com.evolveum.midpoint.util.ShortDumpable;
import com.evolveum.midpoint.xml.ns._public.common.common_3.OrderConstraintsType;
/**
* @author semancik
* @author mederly
*/
public interface EvaluationOrder extends DebugDumpable, ShortDumpable, Cloneable {
int getSummaryOrder();
EvaluationOrder advance(QName relation);
EvaluationOrder decrease(MultiSet<QName> relations);
int getMatchingRelationOrder(QName relation);
Collection<QName> getExtraRelations();
EvaluationOrder clone();
EvaluationOrder resetOrder(QName relation, int newOrder);
// returns the delta that would transform current object state to the newState
// both current and new states must be defined
Map<QName, Integer> diff(EvaluationOrder newState);
EvaluationOrder applyDifference(Map<QName, Integer> difference);
boolean isDefined();
Set<QName> getRelations();
boolean isValid();
boolean isOrderOne();
boolean matches(Integer assignmentOrder, List<OrderConstraintsType> assignmentOrderConstraint);
}