filter
public boolean filter(String targetContentTypeName,
MetadataDefinition targetMetadataDefinition,
Collection<Content> sourceContents,
Collection<String> sourceContentTypes)
Filter the metadata definition.
Default behavior should be to let it be and return true.
But if you want to restrict some specific contentTypes, you may return false to reduce.
- Specified by:
filter
in interface CompatibleContentMetadataFilter
- Parameters:
targetContentTypeName
- The content type name of the content that is to be edited
targetMetadataDefinition
- The metadata definition of the content type of the content that is to be edited
sourceContents
- The list of the content beeing set as the new value of the target
sourceContentTypes
- The content types (with hierarchy) of the content beeing set as the new value of the target
- Returns:
- true by default or false to remove this metadata