org.alfresco.repo.search.impl.lucene
Class ADMLuceneNoActionIndexerImpl

java.lang.Object
  extended by org.alfresco.repo.search.impl.lucene.AbstractLuceneBase
      extended by org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerImpl
          extended by org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl
              extended by org.alfresco.repo.search.impl.lucene.ADMLuceneNoActionIndexerImpl
All Implemented Interfaces:
BackgroundIndexerAware, ADMLuceneIndexer, LuceneIndexer, Indexer, SupportsBackgroundIndexing, TransactionSynchronisationAwareIndexer

public class ADMLuceneNoActionIndexerImpl
extends ADMLuceneIndexerImpl


Nested Class Summary
 
Nested classes/interfaces inherited from class org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerImpl
AbstractLuceneIndexerImpl.Action, AbstractLuceneIndexerImpl.Command, AbstractLuceneIndexerImpl.FTSStatus, AbstractLuceneIndexerImpl.IndexUpdateStatus
 
Field Summary
 
Fields inherited from class org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerImpl
commandList, containerDeletions, deletions, docs, indexUpdateStatus, maxAtomicTransformationTime, NOT_INDEXED_CONTENT_MISSING, NOT_INDEXED_NO_TRANSFORMATION, NOT_INDEXED_NO_TYPE_CONVERSION, NOT_INDEXED_TRANSFORMATION_FAILED, transactionService
 
Fields inherited from class org.alfresco.repo.search.impl.lucene.AbstractLuceneBase
deltaId, store
 
Constructor Summary
ADMLuceneNoActionIndexerImpl()
           
 
Method Summary
 void createChildRelationship(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipRef)
          Create a refernce link between a parent and child.
 void createNode(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipRef)
          Create an index entry when a new node is created.
 void deleteChildRelationship(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipRef)
          Delete a relationship between a parent and child.
 void deleteNode(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipRef)
          Delete a node entry from an index.
 void updateChildRelationship(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipBeforeRef, org.alfresco.service.cmr.repository.ChildAssociationRef relationshipAfterRef)
          Alter the relationship between parent and child nodes in the index.
 void updateNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
          Update an index entry due to property changes on a node.
 
Methods inherited from class org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl
createDocuments, deleteImpl, deleteIndex, doCommit, doPrepare, doRollBack, doSetRollbackOnly, flushPending, getDeleteOnlyNodes, getNoActionIndexer, getUpdateIndexer, indexProperty, readDocuments, registerCallBack, setContentService, setFullTextSearchIndexer, setNodeService, setTenantService, updateFullTextSearch
 
Methods inherited from class org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerImpl
checkAbleToDoWork, commit, delete, deleteContainerAndBelow, deleteLeafOnly, deletePrimary, deleteReference, doInReadthroughTransaction, getContainerDeletions, getDeletions, index, isModified, locateContainer, prepare, reindex, rollback, setMaxAtomicTransformationTime, setReadThrough, setRollbackOnly, setTransactionService
 
Methods inherited from class org.alfresco.repo.search.impl.lucene.AbstractLuceneBase
closeDeltaReader, closeDeltaWriter, deleteIndex, doReadOnly, getDeltaId, getDeltaReader, getDeltaWriter, getDictionaryService, getLuceneConfig, getReader, getSearcher, getSearcher, getStatus, initialise, saveDelta, setDictionaryService, setInfo, setLuceneConfig, setStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.alfresco.repo.search.impl.lucene.LuceneIndexer
doReadOnly, getContainerDeletions, getDeletions, getDeltaId
 
Methods inherited from interface org.alfresco.repo.search.Indexer
setReadThrough
 
Methods inherited from interface org.alfresco.repo.search.TransactionSynchronisationAwareIndexer
commit, isModified, prepare, rollback
 

Constructor Detail

ADMLuceneNoActionIndexerImpl

public ADMLuceneNoActionIndexerImpl()
Method Detail

createChildRelationship

public void createChildRelationship(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipRef)
                             throws LuceneIndexException
Description copied from interface: Indexer
Create a refernce link between a parent and child. Implies only (potential) structural changes

Specified by:
createChildRelationship in interface Indexer
Overrides:
createChildRelationship in class ADMLuceneIndexerImpl
Throws:
LuceneIndexException

createNode

public void createNode(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipRef)
                throws LuceneIndexException
Description copied from interface: Indexer
Create an index entry when a new node is created. A node is always created with a name in a given parent and so a relationship ref is required.

Specified by:
createNode in interface Indexer
Overrides:
createNode in class ADMLuceneIndexerImpl
Throws:
LuceneIndexException

deleteChildRelationship

public void deleteChildRelationship(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipRef)
                             throws LuceneIndexException
Description copied from interface: Indexer
Delete a relationship between a parent and child. This will remove a structural route through the index. The index has no idea of reference and primary relationships and will happily remove the primary relationship before refernces which could remain. Use delete to ensure all strctural references are removed or call this sure you are doing an unlink (remove a hard link in the unix file system world).

Specified by:
deleteChildRelationship in interface Indexer
Overrides:
deleteChildRelationship in class ADMLuceneIndexerImpl
Throws:
LuceneIndexException

deleteNode

public void deleteNode(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipRef)
                throws LuceneIndexException
Description copied from interface: Indexer
Delete a node entry from an index. This implies structural change. The node will be deleted from the index. This will also remove any remaining refernces to the node from the index. The index has no idea of the primary link.

Specified by:
deleteNode in interface Indexer
Overrides:
deleteNode in class ADMLuceneIndexerImpl
Throws:
LuceneIndexException

updateChildRelationship

public void updateChildRelationship(org.alfresco.service.cmr.repository.ChildAssociationRef relationshipBeforeRef,
                                    org.alfresco.service.cmr.repository.ChildAssociationRef relationshipAfterRef)
                             throws LuceneIndexException
Description copied from interface: Indexer
Alter the relationship between parent and child nodes in the index. This can be used for:
  1. rename,
  2. move,
  3. move and rename,
  4. replace
This could be implemented as a delete and add but some implementations may be able to optimise this operation.

Specified by:
updateChildRelationship in interface Indexer
Overrides:
updateChildRelationship in class ADMLuceneIndexerImpl
Throws:
LuceneIndexException

updateNode

public void updateNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
                throws LuceneIndexException
Description copied from interface: Indexer
Update an index entry due to property changes on a node. There are no strucural impications from such a change.

Specified by:
updateNode in interface Indexer
Overrides:
updateNode in class ADMLuceneIndexerImpl
Throws:
LuceneIndexException


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.