public class CmsFormatterConfigurationCacheState
extends java.lang.Object
Objects of this class are immutable, but have a method to create an updated copy.
构造器和说明 |
---|
CmsFormatterConfigurationCacheState(java.util.Map<CmsUUID,I_CmsFormatterBean> formatters)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
CmsFormatterConfigurationCacheState |
createUpdatedCopy(java.util.Map<CmsUUID,I_CmsFormatterBean> updateFormatters)
Creates a new copy of this state in which some entries are removed or replaced.
|
java.util.Map<CmsUUID,I_CmsFormatterBean> |
getAutoEnabledFormatters()
Gets the map of formatters which are automatically enabled.
|
java.util.Map<CmsUUID,I_CmsFormatterBean> |
getFormatters()
Gets the map of all formatters.
|
java.util.Collection<I_CmsFormatterBean> |
getFormattersForType(java.lang.String resourceType,
boolean filterAutoEnabled)
Gets the formatters for a specific resource types, and optionally only returns those which are automatically enabled.
|
public CmsFormatterConfigurationCacheState(java.util.Map<CmsUUID,I_CmsFormatterBean> formatters)
formatters
- the initial map of formatterspublic CmsFormatterConfigurationCacheState createUpdatedCopy(java.util.Map<CmsUUID,I_CmsFormatterBean> updateFormatters)
This does not change the state object on which the method is called.
updateFormatters
- a map of formatters to change, where the key is the structure id and the value is either the replacement or null if the map entry should be removedpublic java.util.Map<CmsUUID,I_CmsFormatterBean> getAutoEnabledFormatters()
public java.util.Map<CmsUUID,I_CmsFormatterBean> getFormatters()
public java.util.Collection<I_CmsFormatterBean> getFormattersForType(java.lang.String resourceType, boolean filterAutoEnabled)
resourceType
- the resource type namefilterAutoEnabled
- true if only the automatically enabled formatters should be returned