com.liferay.portlet.messageboards.util
Class Indexer
java.lang.Object
com.liferay.portlet.messageboards.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, Raymond Augé
Fields inherited from interface com.liferay.portal.kernel.search.Indexer |
DEFAULT_INTERVAL |
Method Summary |
static void |
addMessage(long companyId,
long groupId,
long userId,
java.lang.String userName,
long categoryId,
long threadId,
long messageId,
java.lang.String title,
java.lang.String content,
boolean anonymous,
java.util.Date modifiedDate,
java.lang.String[] tagsEntries,
com.liferay.portlet.expando.model.ExpandoBridge expandoBridge)
|
static void |
deleteMessage(long companyId,
long messageId)
|
static void |
deleteMessages(long companyId,
long threadId)
|
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 |
getMessageDocument(long companyId,
long groupId,
long userId,
java.lang.String userName,
long categoryId,
long threadId,
long messageId,
java.lang.String title,
java.lang.String content,
boolean anonymous,
java.util.Date modifiedDate,
java.lang.String[] tagsEntries,
com.liferay.portlet.expando.model.ExpandoBridge expandoBridge)
|
static java.lang.String |
getMessageUID(long messageId)
|
void |
reIndex(java.lang.String[] ids)
|
void |
reIndex(java.lang.String className,
long classPK)
|
static void |
updateMessage(long companyId,
long groupId,
long userId,
java.lang.String userName,
long categoryId,
long threadId,
long messageId,
java.lang.String title,
java.lang.String content,
boolean anonymous,
java.util.Date modifiedDate,
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 |
PORTLET_ID
public static final java.lang.String PORTLET_ID
- See Also:
- Constant Field Values
Indexer
public Indexer()
addMessage
public static void addMessage(long companyId,
long groupId,
long userId,
java.lang.String userName,
long categoryId,
long threadId,
long messageId,
java.lang.String title,
java.lang.String content,
boolean anonymous,
java.util.Date modifiedDate,
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
deleteMessage
public static void deleteMessage(long companyId,
long messageId)
throws com.liferay.portal.kernel.search.SearchException
- Throws:
com.liferay.portal.kernel.search.SearchException
deleteMessages
public static void deleteMessages(long companyId,
long threadId)
throws com.liferay.portal.kernel.search.SearchException
- Throws:
com.liferay.portal.kernel.search.SearchException
getMessageDocument
public static com.liferay.portal.kernel.search.Document getMessageDocument(long companyId,
long groupId,
long userId,
java.lang.String userName,
long categoryId,
long threadId,
long messageId,
java.lang.String title,
java.lang.String content,
boolean anonymous,
java.util.Date modifiedDate,
java.lang.String[] tagsEntries,
com.liferay.portlet.expando.model.ExpandoBridge expandoBridge)
getMessageUID
public static java.lang.String getMessageUID(long messageId)
updateMessage
public static void updateMessage(long companyId,
long groupId,
long userId,
java.lang.String userName,
long categoryId,
long threadId,
long messageId,
java.lang.String title,
java.lang.String content,
boolean anonymous,
java.util.Date modifiedDate,
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