Class LuceneIndexServiceBase

  • All Implemented Interfaces:
    LuceneIndexService
    Direct Known Subclasses:
    LuceneIndexServiceImpl

    public abstract class LuceneIndexServiceBase
    extends Object
    implements LuceneIndexService

    Spring Service base class for com.soffid.iam.service.LuceneIndexService, provides access to all services and entities referenced by this service.

    see com.soffid.iam.service.LuceneIndexService
    • Constructor Detail

      • LuceneIndexServiceBase

        public LuceneIndexServiceBase()
    • Method Detail

      • setAsyncRunnerService

        public void setAsyncRunnerService​(com.soffid.iam.service.AsyncRunnerService asyncRunnerService)
        Sets reference to asyncRunnerService.
      • getAsyncRunnerService

        public com.soffid.iam.service.AsyncRunnerService getAsyncRunnerService()
        Gets reference to asyncRunnerService.
      • setCustomObjectTypeEntityDao

        public void setCustomObjectTypeEntityDao​(CustomObjectTypeEntityDao customObjectTypeEntityDao)
        Sets reference to customObjectTypeEntityDao.
      • getCustomObjectTypeEntityDao

        public CustomObjectTypeEntityDao getCustomObjectTypeEntityDao()
        Gets reference to customObjectTypeEntityDao.
      • setAdditionalDataService

        public void setAdditionalDataService​(com.soffid.iam.service.AdditionalDataService dadesAddicionalsService)
        Sets reference to dadesAddicionalsService.
      • getAdditionalDataService

        public com.soffid.iam.service.AdditionalDataService getAdditionalDataService()
        Gets reference to dadesAddicionalsService.
      • setLuceneIndexEntityDao

        public void setLuceneIndexEntityDao​(LuceneIndexEntityDao luceneIndexEntityDao)
        Sets reference to luceneIndexEntityDao.
      • getLuceneIndexEntityDao

        public LuceneIndexEntityDao getLuceneIndexEntityDao()
        Gets reference to luceneIndexEntityDao.
      • setLuceneIndexPartEntityDao

        public void setLuceneIndexPartEntityDao​(LuceneIndexPartEntityDao luceneIndexPartEntityDao)
        Sets reference to luceneIndexPartEntityDao.
      • getLuceneIndexPartEntityDao

        public LuceneIndexPartEntityDao getLuceneIndexPartEntityDao()
        Gets reference to luceneIndexPartEntityDao.
      • 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 interface LuceneIndexService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleAddDocument

        protected abstract void handleAddDocument​(String index,
                                                  org.apache.lucene.document.Document doc)
                                           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 interface LuceneIndexService
        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 interface LuceneIndexService
        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 current principal if one has been set, otherwise returns null.
        Returns:
        the current principal