public class CharacterFilteringServiceImpl extends DefaultComponent implements CharacterFilteringService
Modifier and Type | Field and Description |
---|---|
protected com.google.common.base.CharMatcher |
charsToRemove |
protected CharacterFilteringServiceDescriptor |
desc |
static String |
FILTERING_XP |
lastModified
Constructor and Description |
---|
CharacterFilteringServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
filter(DocumentModel docModel)
Removes all disallowed characters from the dirty document properties.
|
String |
filter(String value)
Removes all disallowed characters from the input value.
|
void |
registerContribution(Object contrib,
String point,
ComponentInstance contributor) |
activate, deactivate, getAdapter, getLastModified, registerExtension, setLastModified, setModifiedNow, start, stop, unregisterContribution, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted, getApplicationStartedOrder
public static final String FILTERING_XP
protected CharacterFilteringServiceDescriptor desc
protected com.google.common.base.CharMatcher charsToRemove
public CharacterFilteringServiceImpl()
public void registerContribution(Object contrib, String point, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public String filter(String value)
CharacterFilteringService
filter
in interface CharacterFilteringService
value
- the value to filterpublic void filter(DocumentModel docModel)
CharacterFilteringService
filter
in interface CharacterFilteringService
docModel
- the document to filterCopyright © 2018 Nuxeo. All rights reserved.