org.apache.lenya.cms.lucene
Interface IndexUpdater

All Superinterfaces:
org.apache.lenya.cms.observation.RepositoryListener
All Known Implementing Classes:
IndexUpdaterImpl

public interface IndexUpdater
extends org.apache.lenya.cms.observation.RepositoryListener

Index updater which updates the index when a document changes.


Field Summary
static java.lang.String ROLE
          The service role.
 
Method Summary
 void delete(org.apache.lenya.cms.repository.Session session, org.apache.lenya.cms.publication.ResourceType resourceType, java.lang.String publicationId, java.lang.String area, java.lang.String uuid, java.lang.String language)
          Deletes a document from the index.
 void index(org.apache.lenya.cms.repository.Session session, org.apache.lenya.cms.publication.ResourceType resourceType, java.lang.String publicationId, java.lang.String area, java.lang.String uuid, java.lang.String language)
          Adds a document to the index.
 
Methods inherited from interface org.apache.lenya.cms.observation.RepositoryListener
eventFired
 

Field Detail

ROLE

static final java.lang.String ROLE
The service role.

Method Detail

index

void index(org.apache.lenya.cms.repository.Session session,
           org.apache.lenya.cms.publication.ResourceType resourceType,
           java.lang.String publicationId,
           java.lang.String area,
           java.lang.String uuid,
           java.lang.String language)
           throws IndexException
Adds a document to the index.

Parameters:
session - The session.
resourceType - The resource type.
publicationId - The publication ID.
area - The area.
uuid - The UUID.
language - The language.
Throws:
IndexException - if an error occurs.

delete

void delete(org.apache.lenya.cms.repository.Session session,
            org.apache.lenya.cms.publication.ResourceType resourceType,
            java.lang.String publicationId,
            java.lang.String area,
            java.lang.String uuid,
            java.lang.String language)
            throws IndexException
Deletes a document from the index.

Parameters:
session - The session.
resourceType - The resource type.
publicationId - The publication ID.
area - The area.
uuid - The UUID.
language - The language.
Throws:
IndexException - if an error occurs.


Copyright © $ Apache Software Foundation. All Rights Reserved.