|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.search.components.impl.IndexManagerImpl
public class IndexManagerImpl
Index Manager Component. Configure and Manage the differents indexes.
| Field Summary | |
|---|---|
static java.lang.String |
DATEFORMAT_ATTRIBUTE
The date Format when the field type is a date |
static java.lang.String |
FIELD_ELEMENT
Field declaration element |
static java.lang.String |
ID_ATTRIBUTE
field name |
static java.lang.String |
INDEX_CONF_FILE
The name of the index configuration file. |
static java.lang.String |
INDEX_DEFAULTANALZER_ATTRIBUTE
default analyzer of a index |
static java.lang.String |
INDEX_DIRECTORY_ATTRIBUTE
directory where the index is stored |
static java.lang.String |
INDEX_ELEMENT
Index declaration element |
static java.lang.String |
INDEXER_ELEMENT
indexer element |
static java.lang.String |
INDEXER_ROLE_ATTRIBUTE
indexer element |
static java.lang.String |
INDEXES_ELEMENT
set of indexes |
static java.lang.String |
STORE_ATTRIBUTE
store information or not (true/false) |
static java.lang.String |
STRUCTURE_ELEMENT
Index Structure element |
static java.lang.String |
TYPE_ATTRIBUTE
type of the field: "text, "keyword", "date" (see |
| Fields inherited from interface org.apache.cocoon.components.search.components.IndexManager |
|---|
ROLE |
| Constructor Summary | |
|---|---|
IndexManagerImpl()
|
|
| Method Summary | |
|---|---|
void |
addIndex(Index base)
add a index in the indexmanager |
void |
addIndexes(org.apache.excalibur.source.Source confSource)
Adds indexes from the given configuration file to the index manager. |
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
|
boolean |
contains(java.lang.String id)
Check if the index exist |
Index[] |
getIndex()
Return all indexes |
Index |
getIndex(java.lang.String id)
Return the index with the id |
java.lang.String |
getServletContextPath()
|
protected java.util.Map |
indexes()
|
protected void |
loadIndexes()
|
void |
remove(java.lang.String id)
remove a index |
void |
service(org.apache.avalon.framework.service.ServiceManager manager)
|
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String INDEXER_ELEMENT
public static final java.lang.String INDEXER_ROLE_ATTRIBUTE
public static final java.lang.String INDEXES_ELEMENT
public static final java.lang.String INDEX_ELEMENT
public static final java.lang.String INDEX_DEFAULTANALZER_ATTRIBUTE
public static final java.lang.String INDEX_DIRECTORY_ATTRIBUTE
public static final java.lang.String STRUCTURE_ELEMENT
public static final java.lang.String FIELD_ELEMENT
public static final java.lang.String ID_ATTRIBUTE
public static final java.lang.String TYPE_ATTRIBUTE
class),
Constant Field Valuespublic static final java.lang.String STORE_ATTRIBUTE
public static final java.lang.String DATEFORMAT_ATTRIBUTE
public static final java.lang.String INDEX_CONF_FILE
| Constructor Detail |
|---|
public IndexManagerImpl()
| Method Detail |
|---|
protected java.util.Map indexes()
public boolean contains(java.lang.String id)
IndexManager
contains in interface IndexManagerid - ID de l'index
public Index getIndex(java.lang.String id)
throws IndexException
IndexManager
getIndex in interface IndexManagerid - the index ID
IndexExceptionpublic void addIndex(Index base)
IndexManager
addIndex in interface IndexManagerpublic void remove(java.lang.String id)
IndexManager
remove in interface IndexManagerid - ID de l'indexprotected void loadIndexes()
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableorg.apache.avalon.framework.configuration.ConfigurationExceptionpublic void addIndexes(org.apache.excalibur.source.Source confSource)
addIndexes in interface IndexManagerconfSource -
public java.lang.String getServletContextPath()
throws java.lang.Exception
java.lang.Exception - if an error occurs.public Index[] getIndex()
IndexManager
getIndex in interface IndexManager
public void service(org.apache.avalon.framework.service.ServiceManager manager)
throws org.apache.avalon.framework.service.ServiceException
service in interface org.apache.avalon.framework.service.Serviceableorg.apache.avalon.framework.service.ServiceException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||