Examples of ReindexSettings


Examples of org.projectforge.core.ReindexSettings

  public static ReindexSettings createReindexSettings(final boolean onlyNewest)
  {
    if (onlyNewest == true) {
      final DayHolder day = new DayHolder();
      day.add(Calendar.DAY_OF_MONTH, -1); // Since yesterday:
      return new ReindexSettings(day.getDate(), 1000); // Maximum 1,000 newest entries.
    } else {
      return new ReindexSettings();
    }
  }
View Full Code Here

Examples of org.projectforge.core.ReindexSettings

  }

  @Override
  protected void ownRebuildDatabaseIndex(final boolean onlyNewest)
  {
    final ReindexSettings settings = DatabaseDao.createReindexSettings(onlyNewest);
    databaseDao.rebuildDatabaseSearchIndices(HRPlanningDO.class, settings);
    databaseDao.rebuildDatabaseSearchIndices(HRPlanningEntryDO.class, settings);
  }
View Full Code Here

Examples of org.projectforge.core.ReindexSettings

  protected void reindex()
  {
    log.info("Administration: re-index.");
    checkAccess();
    final ReindexSettings settings = new ReindexSettings(form.reindexFromDate, form.reindexNewestNEntries);
    final String tables = hibernateSearchReindexer.rebuildDatabaseSearchIndices(settings);
    setResponsePage(new MessagePage("administration.databaseSearchIndicesRebuild", tables));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.