org.apache.portals.graffito.services.search.impl
Class ContentIndexServiceImpl

java.lang.Object
  extended by org.apache.portals.graffito.services.search.impl.ContentIndexServiceImpl
All Implemented Interfaces:
org.apache.portals.graffito.services.search.ContentIndexService

public class ContentIndexServiceImpl
extends java.lang.Object
implements org.apache.portals.graffito.services.search.ContentIndexService

Default implementation for org.apache.portals.graffito.services.core.ContentIndexService

Version:
$Id: ContentIndexServiceImpl.java,v 1.1 2004/12/22 20:37:00 christophe Exp $
Author:
Christophe Lombart TODO : complete the implementation

Field Summary
static java.lang.String CONTENT_TEXT
          Content text document field name
static java.lang.String CONTENT_TYPE_FIELD
          Content type document field name
static java.lang.String CREATION_DATE_FIELD
          Creation date document field name
static java.lang.String LANGUAGE_FIELD
          Language document field name
static java.lang.String LAST_MODIFIED_DATE_FIELD
          Last modified document field name
static java.lang.String NAME_FIELD
          Name document field name
static java.lang.String OWNER_FIELD
          Owner document field name
static java.lang.String REVISION_FIELD
          Revision document field name
static java.lang.String SIZE_FIELD
          Size document field name
static java.lang.String URI_FIELD
          URI document field name
 
Constructor Summary
ContentIndexServiceImpl(ContentPersistenceService persistenceService, java.lang.String indexRoot)
          Constructor - Initialise with the PersistenceService and the index root folder.
 
Method Summary
 boolean add(org.apache.portals.graffito.model.core.CmsObject cmsObject)
           
 boolean add(java.util.Collection cmsObjects)
           
 boolean remove(org.apache.portals.graffito.model.core.CmsObject cmsObject)
           
 boolean remove(java.util.Collection cmsObjects)
           
 boolean update(org.apache.portals.graffito.model.core.CmsObject cmsObject)
           
 boolean update(java.util.Collection cmsObjects)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URI_FIELD

public static final java.lang.String URI_FIELD
URI document field name

See Also:
Constant Field Values

NAME_FIELD

public static final java.lang.String NAME_FIELD
Name document field name

See Also:
Constant Field Values

REVISION_FIELD

public static final java.lang.String REVISION_FIELD
Revision document field name

See Also:
Constant Field Values

CREATION_DATE_FIELD

public static final java.lang.String CREATION_DATE_FIELD
Creation date document field name

See Also:
Constant Field Values

LAST_MODIFIED_DATE_FIELD

public static final java.lang.String LAST_MODIFIED_DATE_FIELD
Last modified document field name

See Also:
Constant Field Values

CONTENT_TYPE_FIELD

public static final java.lang.String CONTENT_TYPE_FIELD
Content type document field name

See Also:
Constant Field Values

LANGUAGE_FIELD

public static final java.lang.String LANGUAGE_FIELD
Language document field name

See Also:
Constant Field Values

OWNER_FIELD

public static final java.lang.String OWNER_FIELD
Owner document field name

See Also:
Constant Field Values

SIZE_FIELD

public static final java.lang.String SIZE_FIELD
Size document field name

See Also:
Constant Field Values

CONTENT_TEXT

public static final java.lang.String CONTENT_TEXT
Content text document field name

See Also:
Constant Field Values
Constructor Detail

ContentIndexServiceImpl

public ContentIndexServiceImpl(ContentPersistenceService persistenceService,
                               java.lang.String indexRoot)
                        throws org.apache.portals.graffito.exception.ContentManagementException
Constructor - Initialise with the PersistenceService and the index root folder.

Parameters:
persistenceService - The associated PersistenceStore
indexRoot - The directory folder used to create the index
Throws:
org.apache.portals.graffito.exception.ContentManagementException
Method Detail

add

public boolean add(org.apache.portals.graffito.model.core.CmsObject cmsObject)
Specified by:
add in interface org.apache.portals.graffito.services.search.ContentIndexService
See Also:
org.apache.portals.graffito.services.core.ContentIndexService#add(org.apache.portals.graffito.model.core.CmsObject)

add

public boolean add(java.util.Collection cmsObjects)
Specified by:
add in interface org.apache.portals.graffito.services.search.ContentIndexService
See Also:
org.apache.portals.graffito.services.core.ContentIndexService#add(java.util.Collection)

remove

public boolean remove(org.apache.portals.graffito.model.core.CmsObject cmsObject)
Specified by:
remove in interface org.apache.portals.graffito.services.search.ContentIndexService
See Also:
org.apache.portals.graffito.services.core.ContentIndexService#remove(org.apache.portals.graffito.model.core.CmsObject)

remove

public boolean remove(java.util.Collection cmsObjects)
Specified by:
remove in interface org.apache.portals.graffito.services.search.ContentIndexService
See Also:
org.apache.portals.graffito.services.core.ContentIndexService#remove(java.util.Collection)

update

public boolean update(org.apache.portals.graffito.model.core.CmsObject cmsObject)
Specified by:
update in interface org.apache.portals.graffito.services.search.ContentIndexService
See Also:
org.apache.portals.graffito.services.core.ContentIndexService#update(org.apache.portals.graffito.model.core.CmsObject)

update

public boolean update(java.util.Collection cmsObjects)
Specified by:
update in interface org.apache.portals.graffito.services.search.ContentIndexService
See Also:
org.apache.portals.graffito.services.core.ContentIndexService#update(java.util.Collection)


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