com.liferay.portlet.blogs.util
Class Indexer

java.lang.Object
  extended by com.liferay.portlet.blogs.util.Indexer
All Implemented Interfaces:
com.liferay.portal.kernel.search.Indexer

public class Indexer
extends java.lang.Object
implements com.liferay.portal.kernel.search.Indexer

View Source

Author:
Brian Wing Shun Chan, Harry Mark, Bruno Farache

Field Summary
static java.lang.String PORTLET_ID
           
 
Constructor Summary
Indexer()
           
 
Method Summary
static void addEntry(long companyId, long groupId, long userId, long entryId, java.lang.String title, java.lang.String content, java.lang.String[] tagsEntries)
           
static void deleteEntry(long companyId, long entryId)
           
 com.liferay.portal.kernel.search.DocumentSummary getDocumentSummary(com.liferay.portal.kernel.search.Document doc, javax.portlet.PortletURL portletURL)
           
static com.liferay.portal.kernel.search.Document getEntryDocument(long companyId, long groupId, long userId, long entryId, java.lang.String title, java.lang.String content, java.lang.String[] tagsEntries)
           
static java.lang.String getEntryUID(long entryId)
           
 void reIndex(java.lang.String[] ids)
           
static void updateEntry(long companyId, long groupId, long userId, long entryId, java.lang.String title, java.lang.String content, java.lang.String[] tagsEntries)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PORTLET_ID

public static final java.lang.String PORTLET_ID
See Also:
Constant Field Values
Constructor Detail

Indexer

public Indexer()
Method Detail

addEntry

public static void addEntry(long companyId,
                            long groupId,
                            long userId,
                            long entryId,
                            java.lang.String title,
                            java.lang.String content,
                            java.lang.String[] tagsEntries)
                     throws com.liferay.portal.kernel.search.SearchException
Throws:
com.liferay.portal.kernel.search.SearchException

deleteEntry

public static void deleteEntry(long companyId,
                               long entryId)
                        throws com.liferay.portal.kernel.search.SearchException
Throws:
com.liferay.portal.kernel.search.SearchException

getEntryDocument

public static com.liferay.portal.kernel.search.Document getEntryDocument(long companyId,
                                                                         long groupId,
                                                                         long userId,
                                                                         long entryId,
                                                                         java.lang.String title,
                                                                         java.lang.String content,
                                                                         java.lang.String[] tagsEntries)

getEntryUID

public static java.lang.String getEntryUID(long entryId)

updateEntry

public static void updateEntry(long companyId,
                               long groupId,
                               long userId,
                               long entryId,
                               java.lang.String title,
                               java.lang.String content,
                               java.lang.String[] tagsEntries)
                        throws com.liferay.portal.kernel.search.SearchException
Throws:
com.liferay.portal.kernel.search.SearchException

getDocumentSummary

public com.liferay.portal.kernel.search.DocumentSummary getDocumentSummary(com.liferay.portal.kernel.search.Document doc,
                                                                           javax.portlet.PortletURL portletURL)
Specified by:
getDocumentSummary in interface com.liferay.portal.kernel.search.Indexer

reIndex

public void reIndex(java.lang.String[] ids)
             throws com.liferay.portal.kernel.search.SearchException
Specified by:
reIndex in interface com.liferay.portal.kernel.search.Indexer
Throws:
com.liferay.portal.kernel.search.SearchException