Package com.liferay.portal.kernel.search

Examples of com.liferay.portal.kernel.search.Indexer


   */
  public void deleteWarrantUserUniqueId(
    WarrantUserUniqueId warrantUserUniqueId) throws SystemException {
    warrantUserUniqueIdPersistence.remove(warrantUserUniqueId);

    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());

    if (indexer != null) {
      try {
        indexer.delete(warrantUserUniqueId);
      }
      catch (SearchException se) {
        if (_log.isWarnEnabled()) {
          _log.warn(se, se);
        }
View Full Code Here


    warrantUserUniqueId.setNew(false);

    warrantUserUniqueId = warrantUserUniqueIdPersistence.update(warrantUserUniqueId,
        merge);

    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());

    if (indexer != null) {
      try {
        indexer.reindex(warrantUserUniqueId);
      }
      catch (SearchException se) {
        if (_log.isWarnEnabled()) {
          _log.warn(se, se);
        }
View Full Code Here

   
    assetLinkLocalService.updateLinks(userId, assetEntry.getEntryId(),
        serviceContext.getAssetLinkEntryIds(),
        AssetLinkConstants.TYPE_RELATED);
   
    Indexer indexer = IndexerRegistryUtil.nullSafeGetIndexer(
        Guestbook.class);

    indexer.reindex(guestbook);

    return guestbook;

  }
View Full Code Here

   
    assetLinkLocalService.updateLinks(serviceContext.getUserId(),
        assetEntry.getEntryId(), serviceContext.getAssetLinkEntryIds(),
        AssetLinkConstants.TYPE_RELATED);
   
    Indexer indexer = IndexerRegistryUtil.nullSafeGetIndexer(
        Guestbook.class);

    indexer.reindex(guestbook);

    return guestbook;
  }
View Full Code Here

   
    assetLinkLocalService.deleteLinks(assetEntry.getEntryId());

    assetEntryLocalService.deleteEntry(assetEntry);
   
    Indexer indexer = IndexerRegistryUtil.nullSafeGetIndexer(
        Guestbook.class);

    indexer.delete(guestbook);
   
    guestbook = deleteGuestbook(guestbookId);

    return guestbook;
  }
View Full Code Here

   
    assetLinkLocalService.deleteLinks(assetEntry.getEntryId());

    assetEntryLocalService.deleteEntry(assetEntry);
   
    Indexer indexer = IndexerRegistryUtil.nullSafeGetIndexer(
        Entry.class);

    indexer.delete(entry);
   
    entry = deleteEntry(entryId);

    return entry;
  }
View Full Code Here

   
    assetLinkLocalService.updateLinks(userId, assetEntry.getEntryId(),
        serviceContext.getAssetLinkEntryIds(),
        AssetLinkConstants.TYPE_RELATED);
   
    Indexer indexer = IndexerRegistryUtil.nullSafeGetIndexer(
        Entry.class);

    indexer.reindex(entry);
   
    return entry;
  }
View Full Code Here

   
    assetLinkLocalService.updateLinks(userId, assetEntry.getEntryId(),
        serviceContext.getAssetLinkEntryIds(),
        AssetLinkConstants.TYPE_RELATED);
   
    Indexer indexer = IndexerRegistryUtil.nullSafeGetIndexer(
        Entry.class);

    indexer.reindex(entry);

    return entry;
  }
View Full Code Here

TOP

Related Classes of com.liferay.portal.kernel.search.Indexer

Copyright © 2018 www.massapicom. 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.