close

Filter

loading table of contents...

Studio Developer Manual / Version 2304

Table Of Contents

9.21.2 Intercepting Write Requests

Write requests that have been issued by the client can be intercepted by custom procedures in the server. To this end, write interceptor objects can be configured in the Spring application context of the Studio Server. Typical use cases include:

  • Setting initial property values right during content creation, ensuring that a completely empty content cannot be encountered even temporarily.

  • Replacing the value to be written, for example, to automatically scale down an image to predefined maximum dimensions.

  • Computing derived values, for example, to extract the dimensions (or other metadata) of an uploaded image and storing them in separate properties.

Note

Note

Replacing values is not normally useful for text properties, because text values are saved continuously as the user enters data, and a write interceptor might not be able to operate appropriately during the first saves. For blobs or link lists, the impact on the user experience is typically less of a problem. In any case, when using interceptors, you need to make sure that the user experience is not impacted negatively.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.