protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery) { actionableDynamicQuery.setBaseLocalService( com.liferay.portal.service.ResourcePermissionLocalServiceUtil.getService()); actionableDynamicQuery.setClassLoader(getClassLoader()); actionableDynamicQuery.setModelClass(ResourcePermission.class); actionableDynamicQuery.setPrimaryKeyPropertyName("resourcePermissionId"); }
@Override public ActionableDynamicQuery getActionableDynamicQuery() { ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery(); actionableDynamicQuery.setBaseLocalService( com.liferay.portal.service.ResourcePermissionLocalServiceUtil.getService()); actionableDynamicQuery.setClassLoader(getClassLoader()); actionableDynamicQuery.setModelClass(ResourcePermission.class); actionableDynamicQuery.setPrimaryKeyPropertyName("resourcePermissionId"); return actionableDynamicQuery; }