Package org.dspace.authority.indexer
Class DSpaceAuthorityIndexer
java.lang.Object
org.dspace.authority.indexer.DSpaceAuthorityIndexer
- All Implemented Interfaces:
AuthorityIndexerInterface,InitializingBean
public class DSpaceAuthorityIndexer
extends Object
implements AuthorityIndexerInterface, InitializingBean
DSpaceAuthorityIndexer is used in IndexClient, which is called by the AuthorityConsumer and the indexing-script.
The DSpaceAuthorityIndexer will return a list of all authority values for a given item. It will return an authority value for all metadata fields defined in dspace.conf with 'authority.author.indexer.field'.
You have to call getAuthorityValues for every Item you want to index. But you can supply an optional cache, to save the mapping from the metadata value to the new authority values for metadata fields without an authority key.
- Author:
- Antoine Snyers (antoine at atmire.com), Kevin Van de Velde (kevin at atmire dot com), Ben Bosman (ben at atmire dot com), Mark Diggory (markd at atmire dot com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AuthorityValueServiceprotected ConfigurationServiceprotected ItemServiceThe list of metadata fields which are to be indexed * -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetAuthorityValues(Context context, Item item) getAuthorityValues(Context context, Item item, Map<String, AuthorityValue> cache) boolean
-
Field Details
-
metadataFields
The list of metadata fields which are to be indexed * -
authorityValueService
-
itemService
-
configurationService
-
-
Constructor Details
-
DSpaceAuthorityIndexer
public DSpaceAuthorityIndexer()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceInitializingBean- Throws:
Exception
-
getAuthorityValues
public List<AuthorityValue> getAuthorityValues(Context context, Item item) throws SQLException, AuthorizeException - Specified by:
getAuthorityValuesin interfaceAuthorityIndexerInterface- Throws:
SQLExceptionAuthorizeException
-
getAuthorityValues
public List<AuthorityValue> getAuthorityValues(Context context, Item item, Map<String, AuthorityValue> cache) throws SQLException, AuthorizeException- Specified by:
getAuthorityValuesin interfaceAuthorityIndexerInterface- Throws:
SQLExceptionAuthorizeException
-
isConfiguredProperly
public boolean isConfiguredProperly()- Specified by:
isConfiguredProperlyin interfaceAuthorityIndexerInterface
-