Class ReferenceHtmlStringConverter
java.lang.Object
ch.tocco.nice2.dms.impl.reference.ReferenceHtmlStringConverter
@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.-
Constructor Summary
ConstructorsConstructorDescriptionReferenceHtmlStringConverter(UriConversionService uriConversionService, SecurityManager securityManager, BusinessUnitManager businessUnitManager, ClientType clientType, org.slf4j.Logger log) -
Method Summary
-
Constructor Details
-
ReferenceHtmlStringConverter
public ReferenceHtmlStringConverter(UriConversionService uriConversionService, SecurityManager securityManager, BusinessUnitManager businessUnitManager, ClientType clientType, org.slf4j.Logger log)
-
-
Method Details