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