Package org.nuxeo.ecm.core.filter
Interface CharacterFilteringService
-
- All Known Implementing Classes:
CharacterFilteringServiceImpl
public interface CharacterFilteringService
This service filters disallowed characters in strings and document properties.Disallowed characters are control characters that could prevent XML validation or in some cases database writes.
- Since:
- 9.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
filter(String value)
Removes all disallowed characters from the input value.void
filter(DocumentModel docModel)
Removes all disallowed characters from the dirty document properties.
-
-
-
Method Detail
-
filter
String filter(String value)
Removes all disallowed characters from the input value.- Parameters:
value
- the value to filter- Returns:
- the filtered value
-
filter
void filter(DocumentModel docModel)
Removes all disallowed characters from the dirty document properties.- Parameters:
docModel
- the document to filter
-
-