ESign.java
2.23 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
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.aemds.guide.common.GuideNode
* com.adobe.aemds.guide.utils.GuideUtils
* org.apache.sling.api.SlingHttpServletRequest
* org.apache.sling.api.resource.Resource
* org.apache.sling.api.resource.ResourceResolver
* org.apache.sling.api.resource.ResourceUtil
* org.apache.sling.api.resource.ValueMap
*/
package com.adobe.aemds.guide.addon.common;
import com.adobe.aemds.guide.common.GuideNode;
import com.adobe.aemds.guide.utils.GuideUtils;
import org.apache.sling.api.SlingHttpServletRequest;
import org.apache.sling.api.resource.Resource;
import org.apache.sling.api.resource.ResourceResolver;
import org.apache.sling.api.resource.ResourceUtil;
import org.apache.sling.api.resource.ValueMap;
public class ESign
extends GuideNode {
public String getCssClassName() {
return (String)this.resourceProps.get("css", (Object)"");
}
public String getWidth() {
return (String)this.resourceProps.get("width", (Object)"");
}
public String getHeight() {
return (String)this.resourceProps.get("height", (Object)"");
}
public String getDisplayMsg() {
return this.externalize((String)this.resourceProps.get("displayMsg", (Object)""));
}
public String getSigningService() {
return (String)this.resourceProps.get("signingService", (Object)"");
}
public String getShortDescription() {
return this.externalize((String)this.resourceProps.get("shortDescription", (Object)""));
}
public String getLongDescription() {
return this.externalize((String)this.resourceProps.get("longDescription", (Object)""));
}
public String getCloudServiceConfig() {
return (String)this.resourceProps.get("cq:cloudserviceconfigs", (Object)"");
}
public boolean isValidXDP() {
ResourceResolver resourceResolver = this.getResource().getResourceResolver();
Resource guideContainerResource = resourceResolver.getResource(GuideUtils.getGuideContainerPath((SlingHttpServletRequest)this.slingRequest, (Resource)this.getResource()));
ValueMap map = ResourceUtil.getValueMap((Resource)guideContainerResource);
return map.get((Object)"xdpRef") != null;
}
}