Class CmsUgcValueTransformerConfiguration

java.lang.Object
org.opencms.ugc.CmsUgcValueTransformerConfiguration

Wrapper for a value transformer configuration that is provided in content's schema file in the parameters section as follows:
 <parameters>
    <param name="ugc.values.transformer">
    {
        "Paragraph/Text": {
            "transformer": "antisamy"
        },
        "Title": {
            "transformer": "antisamy",
            "config": {
                "policy": "/system/modules/my.module/resources/ugc/antisamy-policy.xml"
            }
        },
        "Author": {
            "transformer": "none"
        },
        "Email": {
            "transformer": "escape"
        }
    }
    </param>
 </parameter>
 
The configuration defines how values that are added via UGC at a certain path have to be transformed, primarily to not cause XSS or other issues.