@Override
  protected void doReindex(String className, long classPK) throws Exception {
    ExportImportConfiguration exportImportConfiguration =
        ExportImportConfigurationLocalServiceUtil.getExportImportConfiguration(classPK);

    doReindex(exportImportConfiguration);
  }
  protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery) {
    actionableDynamicQuery.setBaseLocalService(
        com.liferay.portal.service.ExportImportConfigurationLocalServiceUtil.getService());
    actionableDynamicQuery.setClass(ExportImportConfiguration.class);
    actionableDynamicQuery.setClassLoader(getClassLoader());

    actionableDynamicQuery.setPrimaryKeyPropertyName("exportImportConfigurationId");
  }
  @Override
  public ActionableDynamicQuery getActionableDynamicQuery() {
    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();

    actionableDynamicQuery.setBaseLocalService(
        com.liferay.portal.service.ExportImportConfigurationLocalServiceUtil.getService());
    actionableDynamicQuery.setClass(ExportImportConfiguration.class);
    actionableDynamicQuery.setClassLoader(getClassLoader());

    actionableDynamicQuery.setPrimaryKeyPropertyName("exportImportConfigurationId");

    return actionableDynamicQuery;
  }
  protected void reindexExportImportConfigurations(long companyId) throws PortalException {

    final ActionableDynamicQuery actionableDynamicQuery =
        ExportImportConfigurationLocalServiceUtil.getActionableDynamicQuery();

    actionableDynamicQuery.setCompanyId(companyId);
    actionableDynamicQuery.setPerformActionMethod(
        new ActionableDynamicQuery.PerformActionMethod() {

          @Override
          public void performAction(Object object) throws PortalException {

            ExportImportConfiguration exportImportConfiguration =
                (ExportImportConfiguration) object;

            Document document = getDocument(exportImportConfiguration);

            actionableDynamicQuery.addDocument(document);
          }
        });
    actionableDynamicQuery.setSearchEngineId(getSearchEngineId());

    actionableDynamicQuery.performActions();
  }
  @Test
  public void testActionableDynamicQuery() throws Exception {
    final IntegerWrapper count = new IntegerWrapper();

    ActionableDynamicQuery actionableDynamicQuery =
        ExportImportConfigurationLocalServiceUtil.getActionableDynamicQuery();

    actionableDynamicQuery.setPerformActionMethod(
        new ActionableDynamicQuery.PerformActionMethod() {
          @Override
          public void performAction(Object object) {
            ExportImportConfiguration exportImportConfiguration =
                (ExportImportConfiguration) object;

            Assert.assertNotNull(exportImportConfiguration);

            count.increment();
          }
        });

    actionableDynamicQuery.performActions();

    Assert.assertEquals(count.getValue(), _persistence.countAll());
  }