public class CmsFormatterChangeSet
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
PREFIX_TYPE
The prefix used for types in the Add/RemoveFormatter fields in the configuration.
|
构造器和说明 |
---|
CmsFormatterChangeSet() |
限定符和类型 | 方法和说明 |
---|---|
void |
applyToFormatters(java.util.Map<CmsUUID,I_CmsFormatterBean> formatters,
CmsFormatterConfigurationCacheState externalFormatters)
Applies this change set to a list of external (non schema-based) formatters.
|
void |
applyToTypes(java.util.Set<java.lang.String> types)
Applies the changes (addition or removal of schema formatters) to a set of resource type names,
adding resource types for which schema formatters should be added and removing those for which
schema formatters should be removed.
|
void |
initialize(java.util.Collection<java.lang.String> toRemove,
java.util.Collection<java.lang.String> toAdd)
Initializes this formatter change set with the values from the sitemap configuration.
|
static java.lang.String |
keyForType(java.lang.String typeName)
Produces the key for a given resource type.
|
public static final java.lang.String PREFIX_TYPE
public static java.lang.String keyForType(java.lang.String typeName)
typeName
- the resource type namepublic void applyToFormatters(java.util.Map<CmsUUID,I_CmsFormatterBean> formatters, CmsFormatterConfigurationCacheState externalFormatters)
formatters
- the map of formatters to which the changes should be appliedexternalFormatters
- the formatter collection which should be used to add formatters which are not already present in 'formatters'public void applyToTypes(java.util.Set<java.lang.String> types)
types
- the set of types to apply the changes topublic void initialize(java.util.Collection<java.lang.String> toRemove, java.util.Collection<java.lang.String> toAdd)
toRemove
- the keys for the formatters to removetoAdd
- the keys for the formatters to add