how to reindex after addPermissionhow to reindex after addPermissionhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=131897072024-03-29T09:10:20Z2024-03-29T09:10:20ZRE: how to reindex after addPermissionHitoshi Ozawahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=131973412012-03-28T00:13:15Z2012-03-28T00:13:15ZFollowing up on Javier, why do you need to reindex resource permission? It's currently not indexed.<br /><br /><blockquote>Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set.</blockquote><br /><br />"index" used here is the resultset of the query.Hitoshi Ozawa2012-03-28T00:13:15ZRE: how to reindex after addPermissionJavier Lorahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=131951292021-03-22T21:12:49Z2012-03-27T23:32:27ZHi,<br /><br />Is null because there is no indexer declared for ResourcePermission.<br />Observed in liferay-portlet.xml, setting an example for Calendar<br /><indexer-class> com.liferay.portlet.calendar.util.CalIndexer </ indexer-class><br /><br />Javier Lora Peribáñez<br /><a href="http://www.b2b2000.com">B2B2000</a>Javier Lora2012-03-27T23:32:27Zhow to reindex after addPermissionDariusz Sawickihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=131897062012-03-27T15:42:47Z2012-03-27T15:42:47Z<html><head></head><body>Hello <br>I add permision by<br><pre><code>
ResourcePermissionLocalServiceUtil.setResourcePermissions(themeDisplay.getCompanyId(), name, ResourceConstants.SCOPE_COMPANY, primKey, getViewRole(themeDisplay,portletName).getRoleId(),actionIds );
</code></pre><br><br>or<br><br><pre><code>
ResourcePermissionLocalServiceUtil.addResourcePermission(themeDisplay.getCompanyId(), name, ResourceConstants.SCOPE_COMPANY, primKey, getViewRole(themeDisplay,portletName).getRoleId(),ActionKeys.ACCESS_IN_CONTROL_PANEL );
</code></pre><br><br>And I want to reindex <br><br>Indexer indexer = IndexerRegistryUtil.getIndexer(ResourcePermissionModel.class);<br>or <br>Indexer indexer = IndexerRegistryUtil.getIndexer(Res