GuideTermsAndConditions.java
2.49 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* org.apache.sling.api.resource.ValueMap
*/
package com.adobe.aemds.guide.common;
import com.adobe.aemds.guide.common.GuideField;
import java.util.Arrays;
import java.util.List;
import org.apache.sling.api.resource.ValueMap;
/*
* This class specifies class file version 49.0 but uses Java 6 signatures. Assumed Java 6.
*/
public class GuideTermsAndConditions
extends GuideField {
@Override
public String getStyles() {
String style = super.getStyles();
style = style + (this.getHeight().length() > 0 ? "max-height:none;" : "");
return style;
}
public String getTncTextContent() {
return this.externalize((String)this.resourceProps.get("tncTextContent", String.class));
}
public List<String> getLinkText() {
String[] arr = (String[])this.resourceProps.get("linkText", (Object)new String[0]);
return Arrays.asList(arr);
}
public Boolean getShowLink() {
return (Boolean)this.resourceProps.get("showLink", Boolean.class);
}
public Boolean getShowApprovalOption() {
Boolean showAsPopUp = this.getShowAsPopUp();
return showAsPopUp != false || (Boolean)this.resourceProps.get("showApprovalOption", (Object)false) != false;
}
public Boolean getShowAsPopUp() {
return (Boolean)this.resourceProps.get("showAsPopUp", (Object)false);
}
public String getTncCheckBoxContent() {
return this.externalize((String)this.resourceProps.get("tncCheckBoxContent", String.class));
}
public String getAssistProperty() {
return this.externalize((String)this.resourceProps.get("assistPriority", String.class));
}
public String getScreenReaderText() {
String screenReaderText = null;
String assistPriority = this.getAssistProperty();
if (assistPriority != null) {
String customText;
if ("label".equals(assistPriority)) {
String title = (String)this.resourceProps.get("jcr:title", String.class);
if (title != null) {
screenReaderText = title;
}
} else if ("custom".equals(assistPriority) && (customText = (String)this.resourceProps.get("custom", String.class)) != null) {
screenReaderText = customText;
}
}
return this.externalize(screenReaderText);
}
public String getGuideFieldType() {
return "guideTermsAndConditions";
}
}