Class ReferenceHtmlStringConverter

All Implemented Interfaces:

@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.