Class ReferenceHtmlStringConverter

java.lang.Object
ch.tocco.nice2.dms.impl.reference.ReferenceHtmlStringConverter
All Implemented Interfaces:
Converter<String,String>

@Component public class ReferenceHtmlStringConverter extends Object implements Converter<String,String>
This converter replaces links and image sources in HTML fields on Entity#getValue(): * If ClientType.getType() returns ClientType.FRONTEND, ClientType.REST or ClientType.UNKNOWN, EntityUris are replaced with PublicUris. * If ClientType.getType() returns ClientType.BACKEND or ClientType.LEGACY_ACTIONS, EntityUris are replaced with AdminUris. * If ClientType.getType() returns ClientType.CLIENT, EntityUris are replaced with ClientUris. * If ClientType.getType() returns any other value, EntityUris are left unchanged.