Package com.soffid.iam.service
Class LuceneIndexServiceBase
- java.lang.Object
-
- com.soffid.iam.service.LuceneIndexServiceBase
-
- All Implemented Interfaces:
LuceneIndexService
- Direct Known Subclasses:
LuceneIndexServiceImpl
public abstract class LuceneIndexServiceBase extends Object implements LuceneIndexService
Spring Service base class for
see com.soffid.iam.service.LuceneIndexServicecom.soffid.iam.service.LuceneIndexService, provides access to all services and entities referenced by this service.
-
-
Field Summary
-
Fields inherited from interface com.soffid.iam.service.LuceneIndexService
SERVICE_NAME
-
-
Constructor Summary
Constructors Constructor Description LuceneIndexServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddDocument(String index, org.apache.lucene.document.Document doc)Operation addDocumentcom.soffid.iam.service.AdditionalDataServicegetAdditionalDataService()Gets reference todadesAddicionalsService.com.soffid.iam.service.AsyncRunnerServicegetAsyncRunnerService()Gets reference toasyncRunnerService.CustomObjectTypeEntityDaogetCustomObjectTypeEntityDao()Gets reference tocustomObjectTypeEntityDao.LuceneIndexEntityDaogetLuceneIndexEntityDao()Gets reference toluceneIndexEntityDao.LuceneIndexPartEntityDaogetLuceneIndexPartEntityDao()Gets reference toluceneIndexPartEntityDao.protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.protected abstract voidhandleAddDocument(String index, org.apache.lucene.document.Document doc)protected abstract voidhandleIndexObject(String index, Object o)protected abstract voidhandleResetIndex(String index)protected abstract voidhandleSearch(String index, String query, org.apache.lucene.search.Collector collector)protected abstract voidhandleSearch(String index, org.apache.lucene.search.Query query, org.apache.lucene.search.Collector collector)voidindexObject(String index, Object o)Operation indexObjectvoidresetIndex(String index)Operation resetIndexvoidsearch(String index, String query, org.apache.lucene.search.Collector collector)Operation searchvoidsearch(String index, org.apache.lucene.search.Query query, org.apache.lucene.search.Collector collector)Operation searchvoidsetAdditionalDataService(com.soffid.iam.service.AdditionalDataService dadesAddicionalsService)Sets reference todadesAddicionalsService.voidsetAsyncRunnerService(com.soffid.iam.service.AsyncRunnerService asyncRunnerService)Sets reference toasyncRunnerService.voidsetCustomObjectTypeEntityDao(CustomObjectTypeEntityDao customObjectTypeEntityDao)Sets reference tocustomObjectTypeEntityDao.voidsetLuceneIndexEntityDao(LuceneIndexEntityDao luceneIndexEntityDao)Sets reference toluceneIndexEntityDao.voidsetLuceneIndexPartEntityDao(LuceneIndexPartEntityDao luceneIndexPartEntityDao)Sets reference toluceneIndexPartEntityDao.
-
-
-
Method Detail
-
setAsyncRunnerService
public void setAsyncRunnerService(com.soffid.iam.service.AsyncRunnerService asyncRunnerService)
Sets reference toasyncRunnerService.
-
getAsyncRunnerService
public com.soffid.iam.service.AsyncRunnerService getAsyncRunnerService()
Gets reference toasyncRunnerService.
-
setCustomObjectTypeEntityDao
public void setCustomObjectTypeEntityDao(CustomObjectTypeEntityDao customObjectTypeEntityDao)
Sets reference tocustomObjectTypeEntityDao.
-
getCustomObjectTypeEntityDao
public CustomObjectTypeEntityDao getCustomObjectTypeEntityDao()
Gets reference tocustomObjectTypeEntityDao.
-
setAdditionalDataService
public void setAdditionalDataService(com.soffid.iam.service.AdditionalDataService dadesAddicionalsService)
Sets reference todadesAddicionalsService.
-
getAdditionalDataService
public com.soffid.iam.service.AdditionalDataService getAdditionalDataService()
Gets reference todadesAddicionalsService.
-
setLuceneIndexEntityDao
public void setLuceneIndexEntityDao(LuceneIndexEntityDao luceneIndexEntityDao)
Sets reference toluceneIndexEntityDao.
-
getLuceneIndexEntityDao
public LuceneIndexEntityDao getLuceneIndexEntityDao()
Gets reference toluceneIndexEntityDao.
-
setLuceneIndexPartEntityDao
public void setLuceneIndexPartEntityDao(LuceneIndexPartEntityDao luceneIndexPartEntityDao)
Sets reference toluceneIndexPartEntityDao.
-
getLuceneIndexPartEntityDao
public LuceneIndexPartEntityDao getLuceneIndexPartEntityDao()
Gets reference toluceneIndexPartEntityDao.
-
addDocument
@Transactional(rollbackFor=java.lang.Exception.class) public void addDocument(String index, org.apache.lucene.document.Document doc) throws es.caib.seycon.ng.exception.InternalErrorException
Description copied from interface:LuceneIndexServiceOperation addDocument- Specified by:
addDocumentin interfaceLuceneIndexService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleAddDocument
protected abstract void handleAddDocument(String index, org.apache.lucene.document.Document doc) throws Exception
- Throws:
Exception
-
indexObject
@Transactional(rollbackFor=java.lang.Exception.class) public void indexObject(String index, Object o) throws es.caib.seycon.ng.exception.InternalErrorException
Description copied from interface:LuceneIndexServiceOperation indexObject- Specified by:
indexObjectin interfaceLuceneIndexService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleIndexObject
protected abstract void handleIndexObject(String index, Object o) throws Exception
- Throws:
Exception
-
resetIndex
@Transactional(rollbackFor=java.lang.Exception.class) public void resetIndex(String index) throws es.caib.seycon.ng.exception.InternalErrorException
Description copied from interface:LuceneIndexServiceOperation resetIndex- Specified by:
resetIndexin interfaceLuceneIndexService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleResetIndex
protected abstract void handleResetIndex(String index) throws Exception
- Throws:
Exception
-
search
@Transactional(rollbackFor=java.lang.Exception.class) public void search(String index, String query, org.apache.lucene.search.Collector collector) throws es.caib.seycon.ng.exception.InternalErrorException
Description copied from interface:LuceneIndexServiceOperation search- Specified by:
searchin interfaceLuceneIndexService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleSearch
protected abstract void handleSearch(String index, String query, org.apache.lucene.search.Collector collector) throws Exception
- Throws:
Exception
-
search
@Transactional(rollbackFor=java.lang.Exception.class) public void search(String index, org.apache.lucene.search.Query query, org.apache.lucene.search.Collector collector) throws es.caib.seycon.ng.exception.InternalErrorException
Description copied from interface:LuceneIndexServiceOperation search- Specified by:
searchin interfaceLuceneIndexService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleSearch
protected abstract void handleSearch(String index, org.apache.lucene.search.Query query, org.apache.lucene.search.Collector collector) throws Exception
- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-