FormsConditionRestrictionPattern.java
1.35 KB
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
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* org.apache.jackrabbit.oak.api.PropertyState
* org.apache.jackrabbit.oak.api.Tree
* org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionPattern
*/
package com.adobe.aemfd.formsfoundation.oak.restrictions.impl;
import com.adobe.aemfd.formsfoundation.oak.restrictions.impl.Condition;
import java.util.ArrayList;
import java.util.List;
import org.apache.jackrabbit.oak.api.PropertyState;
import org.apache.jackrabbit.oak.api.Tree;
import org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionPattern;
public class FormsConditionRestrictionPattern
implements RestrictionPattern {
private final List<String> values = new ArrayList<String>();
private final String oakPath;
public FormsConditionRestrictionPattern(Iterable<String> values, String oakPath) {
for (String value : values) {
this.values.add(value);
}
this.oakPath = oakPath;
}
public boolean matches(Tree tree, PropertyState propertyState) {
Condition condition = new Condition(tree, propertyState, this.values);
boolean result = condition.evaluate();
return result;
}
public boolean matches(String path) {
return false;
}
public boolean matches() {
return false;
}
}