Package org.opencms.ugc
Class CmsUgcValueTransformerConfiguration.CmsUgcSingleValueTransformer
java.lang.Object
org.opencms.ugc.CmsUgcValueTransformerConfiguration.CmsUgcSingleValueTransformer
- Enclosing class:
- CmsUgcValueTransformerConfiguration
The transformer for a single value.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The transformer type. -
Field Summary
FieldsModifier and TypeFieldDescriptionThe default single value transformer. -
Constructor Summary
ConstructorsConstructorDescriptionCmsUgcSingleValueTransformer
(CmsUgcValueTransformerConfiguration.CmsUgcSingleValueTransformer.TransformType type) Creates a new mapping security value of the provided type.CmsUgcSingleValueTransformer
(CmsUgcValueTransformerConfiguration.CmsUgcSingleValueTransformer.TransformType type, JSONObject config) Creates a new mapping security value of the provided type. -
Method Summary
-
Field Details
-
DEFAULT
The default single value transformer.
-
-
Constructor Details
-
CmsUgcSingleValueTransformer
public CmsUgcSingleValueTransformer(CmsUgcValueTransformerConfiguration.CmsUgcSingleValueTransformer.TransformType type) Creates a new mapping security value of the provided type.- Parameters:
type
- the mapping type.
-
CmsUgcSingleValueTransformer
public CmsUgcSingleValueTransformer(CmsUgcValueTransformerConfiguration.CmsUgcSingleValueTransformer.TransformType type, JSONObject config) Creates a new mapping security value of the provided type.- Parameters:
type
- the mapping type.config
- the (optional) additional configuration for the mapping.
-
-
Method Details
-
getConfig
- Returns:
- the optional configuration for the mapping security.
-
getType
- Returns:
- the type of the mapping security
-