Skip to content
Vít Mazín edited this page Jan 18, 2020 · 6 revisions

Process of indexing new resource

One of main process in CRCE is indexing newly uploaded resource. This is what is happening inside CRCE after uploading new resource:

  1. Resource is put into Buffer
  2. Buffer calls ResourceIndexerService which triggers indexers.
  3. ResourceIndexerService calls PluginManager which returns all plugins that extends abstract class AbstractResourceIndexer (this abstract class also extends AbstractPlugin so it could be used as CRCE plugin - to see example indexer see crce-import-indexer)
  4. After ResourceIndexerService obtains all indexers it calls them one by one in loop (indexers are ordered by priorities - see AbstractPlugin where priority is stored as signed integer) and new resource is indexed.
  5. When indexing is done, Buffer deletes temporary file and resource waits inside buffer to be stored into repository by user.
Clone this wiki locally