Jean-Francois Leveque

Diagramme de séquence réindexation

@startuml
actor Administrateur
participant reindex.xhtml
participant ReindexView
participant PublisherServiceDefault as PublisherServiceDefault << PublisherService >>
participant PublisherRepository
participant PublisherSearchRepositorySolrj as PublisherSearchRepositorySolrj << PublisherSearchRepository >>
participant AccountServiceDefault as AccountServiceDefault << AccountService >>
participant AccountRepository
participant AccountSearchRepositorySolrj as AccountSearchRepositorySolrj << AccountSearchRepository >>
Administrateur -> reindex.xhtml: reindexAll()
reindex.xhtml -> ReindexView: reindexAll()
activate ReindexView
ReindexView -> PublisherServiceDefault: reindexAllPublishers()
activate PublisherServiceDefault
PublisherServiceDefault -> PublisherRepository: findByValidatedVersionIsNotNull();
activate PublisherRepository
PublisherRepository -> PublisherServiceDefault: List<Publisher>
deactivate PublisherRepository
PublisherServiceDefault -> PublisherServiceDefault: convertPublishersIntoIndexedPublishers(List<Publisher>)
activate PublisherServiceDefault
PublisherServiceDefault -> PublisherServiceDefault: List<InxdexedPublisher>
deactivate PublisherServiceDefault
PublisherServiceDefault -> PublisherSearchRepositorySolrj: reindex(List<InxdexedPublisher>)
activate PublisherSearchRepositorySolrj
PublisherSearchRepositorySolrj -> PublisherServiceDefault
deactivate PublisherSearchRepositorySolrj
PublisherServiceDefault -> ReindexView: indexedPublishersCount
deactivate PublisherServiceDefault
ReindexView -> AccountServiceDefault: reindexAllAccounts()
activate AccountServiceDefault
AccountServiceDefault -> AccountRepository: findByPresentationIsNotNull()
activate AccountRepository
AccountRepository -> AccountServiceDefault: List<Account>
deactivate AccountRepository
AccountServiceDefault -> AccountServiceDefault: convertAccountsIntoIndexedAccounts(List<Account>)
activate AccountServiceDefault
AccountServiceDefault -> AccountServiceDefault: List<IndexedAccount>
deactivate AccountServiceDefault
AccountServiceDefault -> AccountSearchRepositorySolrj: reindex(List<IndexedAccount>)
activate AccountSearchRepositorySolrj
AccountSearchRepositorySolrj -> AccountServiceDefault
deactivate AccountSearchRepositorySolrj
AccountServiceDefault -> ReindexView: indexedAccountsCount
deactivate AccountServiceDefault
ReindexView -> reindex.xhtml
deactivate ReindexView
reindex.xhtml -> Administrateur: resultPage
@enduml
\ No newline at end of file