com.liferay.portlet.calendar.util
Class Indexer

java.lang.Object
  extended by com.liferay.portlet.calendar.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:
Brett Swaim

Field Summary
static java.lang.String PORTLET_ID
           
 
Fields inherited from interface com.liferay.portal.kernel.search.Indexer
DEFAULT_INTERVAL
 
Constructor Summary
Indexer()
           
 
Method Summary
static void addEvent(long companyId, long groupId, long userId, java.lang.String userName, long eventId, java.lang.String title, java.lang.String description, java.util.Date displayDate, java.lang.String[] tagsEntries, com.liferay.portlet.expando.model.ExpandoBridge expandoBridge)
           
static void deleteEvent(long companyId, long eventId)
           
 java.lang.String[] getClassNames()
           
 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 getEventDocument(long companyId, long groupId, long userId, java.lang.String userName, long eventId, java.lang.String title, java.lang.String description, java.util.Date displayDate, java.lang.String[] tagsEntries, com.liferay.portlet.expando.model.ExpandoBridge expandoBridge)
           
static java.lang.String getEventUID(long eventId)
           
 void reIndex(java.lang.String[] ids)
           
 void reIndex(java.lang.String className, long classPK)
           
static void updateEvent(long companyId, long groupId, long userId, java.lang.String userName, long eventId, java.lang.String title, java.lang.String description, java.util.Date displayDate, java.lang.String[] tagsEntries, com.liferay.portlet.expando.model.ExpandoBridge expandoBridge)
           
 
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

addEvent

public static void addEvent(long companyId,
                            long groupId,
                            long userId,
                            java.lang.String userName,
                            long eventId,
                            java.lang.String title,
                            java.lang.String description,
                            java.util.Date displayDate,
                            java.lang.String[] tagsEntries,
                            com.liferay.portlet.expando.model.ExpandoBridge expandoBridge)
                     throws com.liferay.portal.kernel.search.SearchException
Throws:
com.liferay.portal.kernel.search.SearchException

deleteEvent

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

getEventDocument

public static com.liferay.portal.kernel.search.Document getEventDocument(long companyId,
                                                                         long groupId,
                                                                         long userId,
                                                                         java.lang.String userName,
                                                                         long eventId,
                                                                         java.lang.String title,
                                                                         java.lang.String description,
                                                                         java.util.Date displayDate,
                                                                         java.lang.String[] tagsEntries,
                                                                         com.liferay.portlet.expando.model.ExpandoBridge expandoBridge)

getEventUID

public static java.lang.String getEventUID(long eventId)

updateEvent

public static void updateEvent(long companyId,
                               long groupId,
                               long userId,
                               java.lang.String userName,
                               long eventId,
                               java.lang.String title,
                               java.lang.String description,
                               java.util.Date displayDate,
                               java.lang.String[] tagsEntries,
                               com.liferay.portlet.expando.model.ExpandoBridge expandoBridge)
                        throws com.liferay.portal.kernel.search.SearchException
Throws:
com.liferay.portal.kernel.search.SearchException

getClassNames

public java.lang.String[] getClassNames()
Specified by:
getClassNames in interface com.liferay.portal.kernel.search.Indexer

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 className,
                    long classPK)
             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

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