public class SolrIndexProjectResourceObserver extends AbstractSolrIndexResourceObserver
Project resources.
Project are indexed in default and live systematically since there is currently no workflow on project resources.| Modifier and Type | Field and Description |
|---|---|
private Project |
_project |
protected SolrProjectResourceIndexer |
_solrProjectResourceIndexer
The Solr indexer for project resources
|
_context, _resolver, _solrIndexer, DISABLE_INDEXING_KEYMAX_PRIORITY, MIN_PRIORITY| Constructor and Description |
|---|
SolrIndexProjectResourceObserver() |
| Modifier and Type | Method and Description |
|---|---|
protected String[] |
getWorkspacesToIndex()
Get the list of workspace to index
|
protected boolean |
isHandledResource(AmetysObject object)
Returns true if it is a
Resource or ResourceCollection handled by this observer |
protected void |
onCollectionRenamedOrMoved(ResourceCollection resourceCollection,
String workspaceName)
Method called when a resource collection handled by this observer is renamed or moved.
|
protected void |
onResourceCreated(Resource resource,
String workspaceName)
Method called when a resource handled by this observer is created.
|
protected void |
onResourceUpdated(Resource resource,
String workspaceName)
Method called when a resource handled by this observer is updated, moved or renamed.
|
void |
service(ServiceManager serviceManager) |
_index, contextualize, getPriority, observe, supportsgetLogger, setLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparallelizableprotected SolrProjectResourceIndexer _solrProjectResourceIndexer
public SolrIndexProjectResourceObserver()
public void service(ServiceManager serviceManager) throws ServiceException
service in interface Serviceableservice in class AbstractSolrIndexResourceObserverServiceExceptionprotected String[] getWorkspacesToIndex()
AbstractSolrIndexResourceObservergetWorkspacesToIndex in class AbstractSolrIndexResourceObserverprotected boolean isHandledResource(AmetysObject object)
AbstractSolrIndexResourceObserverResource or ResourceCollection handled by this observerisHandledResource in class AbstractSolrIndexResourceObserverobject - The resource or collectionprotected void onResourceCreated(Resource resource, String workspaceName) throws Exception
AbstractSolrIndexResourceObserveronResourceCreated in class AbstractSolrIndexResourceObserverresource - The created resourceworkspaceName - The workspace nameException - if an error occursprotected void onResourceUpdated(Resource resource, String workspaceName) throws Exception
AbstractSolrIndexResourceObserveronResourceUpdated in class AbstractSolrIndexResourceObserverresource - The updated resourceworkspaceName - The workspace nameException - if an error occursprotected void onCollectionRenamedOrMoved(ResourceCollection resourceCollection, String workspaceName) throws Exception
AbstractSolrIndexResourceObserveronCollectionRenamedOrMoved in class AbstractSolrIndexResourceObserverresourceCollection - The resource collectionworkspaceName - The workspace nameException - if an error occurs