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 void
addDocument(String index, org.apache.lucene.document.Document doc)
Operation addDocumentcom.soffid.iam.service.AdditionalDataService
getAdditionalDataService()
Gets reference todadesAddicionalsService
.com.soffid.iam.service.AsyncRunnerService
getAsyncRunnerService()
Gets reference toasyncRunnerService
.CustomObjectTypeEntityDao
getCustomObjectTypeEntityDao()
Gets reference tocustomObjectTypeEntityDao
.LuceneIndexEntityDao
getLuceneIndexEntityDao()
Gets reference toluceneIndexEntityDao
.LuceneIndexPartEntityDao
getLuceneIndexPartEntityDao()
Gets reference toluceneIndexPartEntityDao
.protected Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.protected abstract void
handleAddDocument(String index, org.apache.lucene.document.Document doc)
protected abstract void
handleIndexObject(String index, Object o)
protected abstract void
handleResetIndex(String index)
protected abstract void
handleSearch(String index, String query, org.apache.lucene.search.Collector collector)
protected abstract void
handleSearch(String index, org.apache.lucene.search.Query query, org.apache.lucene.search.Collector collector)
void
indexObject(String index, Object o)
Operation indexObjectvoid
resetIndex(String index)
Operation resetIndexvoid
search(String index, String query, org.apache.lucene.search.Collector collector)
Operation searchvoid
search(String index, org.apache.lucene.search.Query query, org.apache.lucene.search.Collector collector)
Operation searchvoid
setAdditionalDataService(com.soffid.iam.service.AdditionalDataService dadesAddicionalsService)
Sets reference todadesAddicionalsService
.void
setAsyncRunnerService(com.soffid.iam.service.AsyncRunnerService asyncRunnerService)
Sets reference toasyncRunnerService
.void
setCustomObjectTypeEntityDao(CustomObjectTypeEntityDao customObjectTypeEntityDao)
Sets reference tocustomObjectTypeEntityDao
.void
setLuceneIndexEntityDao(LuceneIndexEntityDao luceneIndexEntityDao)
Sets reference toluceneIndexEntityDao
.void
setLuceneIndexPartEntityDao(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:LuceneIndexService
Operation addDocument- Specified by:
addDocument
in 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:LuceneIndexService
Operation indexObject- Specified by:
indexObject
in 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:LuceneIndexService
Operation resetIndex- Specified by:
resetIndex
in 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:LuceneIndexService
Operation search- Specified by:
search
in 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:LuceneIndexService
Operation search- Specified by:
search
in 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 currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-