org.apache.portals.graffito.services.search
Interface ContentIndexService


public interface ContentIndexService

Cms Index Service. This service can be used to add, remove or update CmsObjects into a index

Version:
$Id: ContentIndexService.java,v 1.1 2004/12/22 21:16:12 christophe Exp $
Author:
Christophe Lombart

Method Summary
 boolean add(CmsObject cmsObject)
          Add a CmsObject entry
 boolean add(java.util.Collection cmsObjects)
          Add a collection of CmsObject entries
 boolean remove(CmsObject cmsObject)
          Remove a CmsObject entry
 boolean remove(java.util.Collection cmsObjects)
          Remove a collection of CmsObject entries
 boolean update(CmsObject cmsObject)
          Update a CmsObject entry
 boolean update(java.util.Collection cmsObjects)
          Update a CmsObject entries
 

Method Detail

add

boolean add(CmsObject cmsObject)
Add a CmsObject entry

Parameters:
cmsObject - The CmsObject to add into the index
Returns:
true if the object is correclty added

add

boolean add(java.util.Collection cmsObjects)
Add a collection of CmsObject entries

Parameters:
cmsObjects - the CmsObject collection to add into the index
Returns:
true if the collection is correctly added

remove

boolean remove(CmsObject cmsObject)
Remove a CmsObject entry

Parameters:
cmsObject - the CmsObject to remove from the index
Returns:
true if the object is correctly removed

remove

boolean remove(java.util.Collection cmsObjects)
Remove a collection of CmsObject entries

Parameters:
cmsObjects - the CmsObject collection to remove from the index
Returns:
true if the collection is correctly removed

update

boolean update(CmsObject cmsObject)
Update a CmsObject entry

Parameters:
cmsObject - the CmsObject to update from the index
Returns:
true if the CmsObject is correctly removed

update

boolean update(java.util.Collection cmsObjects)
Update a CmsObject entries

Parameters:
cmsObjects - the CmsObject collection to update from the index
Returns:
True if the object is correctly updated in the index


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.