Examples of GuestbookActionableDynamicQuery


Examples of com.liferay.docs.guestbook.service.persistence.GuestbookActionableDynamicQuery

  protected void reindexEntries(long companyId) throws PortalException,
      SystemException {

    final Collection<Document> documents = new ArrayList<Document>();

    ActionableDynamicQuery actionableDynamicQuery = new GuestbookActionableDynamicQuery() {

      @Override
      protected void addCriteria(DynamicQuery dynamicQuery) {
      }

      @Override
      protected void performAction(Object object) throws PortalException {
        Guestbook guestbook = (Guestbook) object;

        Document document = getDocument(guestbook);

        documents.add(document);
      }

    };

    actionableDynamicQuery.setCompanyId(companyId);

    actionableDynamicQuery.performActions();

    SearchEngineUtil.updateDocuments(getSearchEngineId(), companyId,
        documents);
  }
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.