Package com.liferay.portal.kernel.search

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


  public Warrant addWarrant(Warrant warrant) throws SystemException {
    warrant.setNew(true);

    warrant = warrantPersistence.update(warrant, false);

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

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


  public void deleteWarrant(long id)
    throws PortalException, SystemException,
      com.warrantchange.NoSuchWarrantException {
    Warrant warrant = warrantPersistence.remove(id);

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

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

   * @throws SystemException if a system exception occurred
   */
  public void deleteWarrant(Warrant warrant) throws SystemException {
    warrantPersistence.remove(warrant);

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

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

    throws SystemException {
    warrant.setNew(false);

    warrant = warrantPersistence.update(warrant, merge);

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

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

    warrantUserEmailLog.setNew(true);

    warrantUserEmailLog = warrantUserEmailLogPersistence.update(warrantUserEmailLog,
        false);

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

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

   */
  public void deleteWarrantUserEmailLog(long id)
    throws PortalException, SystemException {
    WarrantUserEmailLog warrantUserEmailLog = warrantUserEmailLogPersistence.remove(id);

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

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

   */
  public void deleteWarrantUserEmailLog(
    WarrantUserEmailLog warrantUserEmailLog) throws SystemException {
    warrantUserEmailLogPersistence.remove(warrantUserEmailLog);

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

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

    warrantUserEmailLog.setNew(false);

    warrantUserEmailLog = warrantUserEmailLogPersistence.update(warrantUserEmailLog,
        merge);

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

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

    warrantUserUniqueId.setNew(true);

    warrantUserUniqueId = warrantUserUniqueIdPersistence.update(warrantUserUniqueId,
        false);

    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

   */
  public void deleteWarrantUserUniqueId(long id)
    throws PortalException, SystemException {
    WarrantUserUniqueId warrantUserUniqueId = warrantUserUniqueIdPersistence.remove(id);

    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

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.