Databases Reference
In-Depth Information
<cust-layer name="industry" id-prefix="i">
<cust-layer-value value="financial"
display-name="Financial" id-prefix="f"/>
<cust-layer-value value="healthcare"
display-name="Healthcare" id-prefix="h"/>
</cust-layer>
<cust-layer name="site" id-prefix="s">
<cust-layer-value value="headquarters"
display-name="HQ" id-prefix="hq"/>
<cust-layer-value value="remoteoffices"
display-name="Remote" id-prefix="rm"/>
</cust-layer>
</cust-layers>
Customization classes
Customizaion classes are used to deine customizaion for layers. These classes will evaluate
the current context and return a string result, which is used to locate the customizaion layer.
Customizaion classes are deined in the <cust-config> element in the adf-config.xml
file, as follows:
<cust-config>
<match path="/">
<customization-class name=
"com.mycompany.IndustryCC"/>
</match>
</cust-config>
The customizaion class will look like the following:
public class IndustryCC
extends CustomizationClass {
private static final
String DEFAULT_LAYER_NAME = "industry";
public IndustryCC() {
}
public CacheHint getCacheHint() {
return CacheHint.ALL_USERS;
}
public String getName() {
return mLayerName;
}
 
Search WWH ::




Custom Search