snippet


Reindex an entity by the id

If we have a web content and we want to update the index of it we can do that with the following code:


Getting the model hints in the code

While trying to make a custom validator in a form, there was the need to reuse the information set in the portlet-model-hints.xml file. You can do this by using the following Util class: