BrandImpl.java
1017 Bytes
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
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* org.apache.sling.api.resource.Resource
* org.apache.sling.api.resource.ValueMap
*/
package com.day.cq.mcm.impl;
import com.day.cq.mcm.api.Brand;
import com.day.cq.mcm.util.NormalizedResource;
import org.apache.sling.api.resource.Resource;
import org.apache.sling.api.resource.ValueMap;
public class BrandImpl
implements Brand {
private NormalizedResource normalizedResource;
private ValueMap cv;
public void setNormalizedResource(NormalizedResource r) {
this.normalizedResource = r;
}
@Override
public Resource getResource() {
return this.normalizedResource.getResource();
}
@Override
public String getTitle() {
return (String)this.getProps().get("jcr:title", String.class);
}
@Override
public ValueMap getProps() {
if (this.cv == null) {
this.cv = this.normalizedResource.getContentVals();
}
return this.cv;
}
}