mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Use a more explicit name for the storeAuthorityInMetadata method
This commit is contained in:
@@ -156,7 +156,7 @@ public interface ChoiceAuthority extends NameAwarePlugin {
|
||||
* @return <code>true</code> if the authority provided in any choice of this
|
||||
* authority should be stored in the metadata value
|
||||
*/
|
||||
default public boolean storeAuthority() {
|
||||
default public boolean storeAuthorityInMetadata() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@@ -55,7 +55,7 @@ public class DCInputAuthority extends SelfNamedPlugin implements ChoiceAuthority
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean storeAuthority() {
|
||||
public boolean storeAuthorityInMetadata() {
|
||||
// For backward compatibility value pairs don't store authority in
|
||||
// the metadatavalue
|
||||
return false;
|
||||
|
@@ -79,7 +79,7 @@ public class DSpaceControlledVocabulary extends SelfNamedPlugin implements Hiera
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean storeAuthority() {
|
||||
public boolean storeAuthorityInMetadata() {
|
||||
// For backward compatibility controlled vocabularies don't store the node id in
|
||||
// the metadatavalue
|
||||
return false;
|
||||
|
@@ -88,7 +88,7 @@ public class VocabularyEntryLinkRepository extends AbstractDSpaceRestRepository
|
||||
choices = ca.getMatches(filter, Math.toIntExact(pageable.getOffset()),
|
||||
pageable.getPageSize(), context.getCurrentLocale().toString());
|
||||
}
|
||||
boolean storeAuthority = ca.storeAuthority();
|
||||
boolean storeAuthority = ca.storeAuthorityInMetadata();
|
||||
for (Choice value : choices.values) {
|
||||
results.add(authorityUtils.convertEntry(value, name, storeAuthority, projection));
|
||||
}
|
||||
|
Reference in New Issue
Block a user