public class AVMSnapShotTriggeredIndexingMethodInterceptorImpl extends java.lang.Object implements AVMSnapShotTriggeredIndexingMethodInterceptor
| Modifier and Type | Class and Description |
|---|---|
static class |
AVMSnapShotTriggeredIndexingMethodInterceptorImpl.StoreType |
PROP_SANDBOX_AUTHOR_MAIN, PROP_SANDBOX_AUTHOR_PREVIEW, PROP_SANDBOX_AUTHOR_WORKFLOW_MAIN, PROP_SANDBOX_AUTHOR_WORKFLOW_PREVIEW, PROP_SANDBOX_STAGING_MAIN, PROP_SANDBOX_STAGING_PREVIEW, PROP_SANDBOX_WORKFLOW_MAIN, PROP_SANDBOX_WORKFLOW_PREVIEW| Constructor and Description |
|---|
AVMSnapShotTriggeredIndexingMethodInterceptorImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
createIndex(java.lang.String store) |
void |
deleteIndex(java.lang.String store) |
AVMLuceneIndexer |
getIndexer(java.lang.String store) |
IndexMode |
getIndexMode(java.lang.String store)
Given an avm store name determine if it is indexed and if so how.
|
int |
getLastIndexedSnapshot(java.lang.String store) |
SwitchableApplicationContextFactory |
getSearchApplicationContextFactory() |
boolean |
hasIndexBeenCreated(java.lang.String store) |
void |
indexSnapshot(java.lang.String store,
int after) |
void |
indexSnapshot(java.lang.String store,
int before,
int after) |
java.lang.Object |
invoke(org.aopalliance.intercept.MethodInvocation mi) |
boolean |
isIndexingEnabled()
Is snapshot triggered indexing enabled
|
boolean |
isIndexUpToDate(java.lang.String store)
Check if the index is up to date according to its index defintion i it does not check that all asynchronous work
is done.
|
boolean |
isIndexUpToDateAndSearchable(java.lang.String store)
Check if the index is up to date according to its index defintion and that all asynchronous work is done.
|
boolean |
isSnapshotIndexed(java.lang.String store,
int id)
Is the snapshot applied to the index? Is there an entry for any node that was added OR have all the nodes in the
transaction been deleted as expected?
|
void |
setAvmService(AVMService avmService)
Set the AVM service
|
void |
setDefaultMode(IndexMode defaultMode)
Set the default index mode = used when there are no matches
|
void |
setEnableIndexing(boolean enableIndexing)
Enable or disable indexing
|
void |
setIndexerAndSearcher(IndexerAndSearcher indexerAndSearcher)
Set the AVM indexer and searcher
|
void |
setIndexingDefinitions(java.util.List definitions)
Set the index modes....
|
void |
setSearchApplicationContextFactory(SwitchableApplicationContextFactory searchApplicationContextFactory) |
public AVMSnapShotTriggeredIndexingMethodInterceptorImpl()
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation mi)
throws java.lang.Throwable
invoke in interface AVMSnapShotTriggeredIndexingMethodInterceptorinvoke in interface org.aopalliance.intercept.MethodInterceptorjava.lang.Throwablepublic void setSearchApplicationContextFactory(SwitchableApplicationContextFactory searchApplicationContextFactory)
searchApplicationContextFactory - the searchApplicationContextFactory to setpublic SwitchableApplicationContextFactory getSearchApplicationContextFactory()
public void setAvmService(AVMService avmService)
AVMSnapShotTriggeredIndexingMethodInterceptorsetAvmService in interface AVMSnapShotTriggeredIndexingMethodInterceptorpublic void setIndexerAndSearcher(IndexerAndSearcher indexerAndSearcher)
AVMSnapShotTriggeredIndexingMethodInterceptorsetIndexerAndSearcher in interface AVMSnapShotTriggeredIndexingMethodInterceptorpublic void setEnableIndexing(boolean enableIndexing)
AVMSnapShotTriggeredIndexingMethodInterceptorsetEnableIndexing in interface AVMSnapShotTriggeredIndexingMethodInterceptorpublic void setIndexingDefinitions(java.util.List definitions)
AVMSnapShotTriggeredIndexingMethodInterceptorsetIndexingDefinitions in interface AVMSnapShotTriggeredIndexingMethodInterceptorpublic void setDefaultMode(IndexMode defaultMode)
AVMSnapShotTriggeredIndexingMethodInterceptorsetDefaultMode in interface AVMSnapShotTriggeredIndexingMethodInterceptorpublic boolean isIndexingEnabled()
AVMSnapShotTriggeredIndexingMethodInterceptorisIndexingEnabled in interface AVMSnapShotTriggeredIndexingMethodInterceptorpublic void indexSnapshot(java.lang.String store,
int before,
int after)
indexSnapshot in interface AVMSnapShotTriggeredIndexingMethodInterceptorpublic void indexSnapshot(java.lang.String store,
int after)
indexSnapshot in interface AVMSnapShotTriggeredIndexingMethodInterceptorpublic int getLastIndexedSnapshot(java.lang.String store)
getLastIndexedSnapshot in interface AVMSnapShotTriggeredIndexingMethodInterceptorpublic boolean isSnapshotIndexed(java.lang.String store,
int id)
AVMSnapShotTriggeredIndexingMethodInterceptorisSnapshotIndexed in interface AVMSnapShotTriggeredIndexingMethodInterceptorpublic boolean isIndexUpToDateAndSearchable(java.lang.String store)
AVMSnapShotTriggeredIndexingMethodInterceptorisIndexUpToDateAndSearchable in interface AVMSnapShotTriggeredIndexingMethodInterceptorpublic boolean isIndexUpToDate(java.lang.String store)
AVMSnapShotTriggeredIndexingMethodInterceptorisIndexUpToDate in interface AVMSnapShotTriggeredIndexingMethodInterceptorpublic IndexMode getIndexMode(java.lang.String store)
AVMSnapShotTriggeredIndexingMethodInterceptorgetIndexMode in interface AVMSnapShotTriggeredIndexingMethodInterceptorpublic boolean hasIndexBeenCreated(java.lang.String store)
hasIndexBeenCreated in interface AVMSnapShotTriggeredIndexingMethodInterceptorpublic void createIndex(java.lang.String store)
createIndex in interface AVMSnapShotTriggeredIndexingMethodInterceptorpublic AVMLuceneIndexer getIndexer(java.lang.String store)
getIndexer in interface AVMSnapShotTriggeredIndexingMethodInterceptorpublic void deleteIndex(java.lang.String store)
deleteIndex in interface AVMSnapShotTriggeredIndexingMethodInterceptorCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.