mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-19 16:03:07 +00:00
JavaDocs and boolean name update
This commit is contained in:
@@ -1296,7 +1296,7 @@ prevent the generation of resource policy entry values with null dspace_object a
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<RelationshipMetadataValue> getRelationshipMetadata(Item item, boolean extra) {
|
public List<RelationshipMetadataValue> getRelationshipMetadata(Item item, boolean enableVirtualMetadata) {
|
||||||
Context context = new Context();
|
Context context = new Context();
|
||||||
List<RelationshipMetadataValue> fullMetadataValueList = new LinkedList<>();
|
List<RelationshipMetadataValue> fullMetadataValueList = new LinkedList<>();
|
||||||
try {
|
try {
|
||||||
@@ -1306,7 +1306,7 @@ prevent the generation of resource policy entry values with null dspace_object a
|
|||||||
List<Relationship> relationships = relationshipService.findByItem(context, item);
|
List<Relationship> relationships = relationshipService.findByItem(context, item);
|
||||||
for (Relationship relationship : relationships) {
|
for (Relationship relationship : relationships) {
|
||||||
fullMetadataValueList
|
fullMetadataValueList
|
||||||
.addAll(handleItemRelationship(context, item, entityType, relationship, extra));
|
.addAll(handleItemRelationship(context, item, entityType, relationship, enableVirtualMetadata));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -655,6 +655,55 @@ public interface ItemService extends DSpaceObjectService<Item>, DSpaceObjectLega
|
|||||||
public List<RelationshipMetadataValue> getRelationshipMetadata(Item item, boolean enableVirtualMetadata);
|
public List<RelationshipMetadataValue> getRelationshipMetadata(Item item, boolean enableVirtualMetadata);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get metadata for the DSpace Object in a chosen schema.
|
||||||
|
* See <code>MetadataSchema</code> for more information about schemas.
|
||||||
|
* Passing in a <code>null</code> value for <code>qualifier</code>
|
||||||
|
* or <code>lang</code> only matches metadata fields where that
|
||||||
|
* qualifier or languages is actually <code>null</code>.
|
||||||
|
* Passing in <code>DSpaceObject.ANY</code>
|
||||||
|
* retrieves all metadata fields with any value for the qualifier or
|
||||||
|
* language, including <code>null</code>
|
||||||
|
* <P>
|
||||||
|
* Examples:
|
||||||
|
* <P>
|
||||||
|
* Return values of the unqualified "title" field, in any language.
|
||||||
|
* Qualified title fields (e.g. "title.uniform") are NOT returned:
|
||||||
|
* <P>
|
||||||
|
* <code>dspaceobject.getMetadataByMetadataString("dc", "title", null, DSpaceObject.ANY );</code>
|
||||||
|
* <P>
|
||||||
|
* Return all US English values of the "title" element, with any qualifier
|
||||||
|
* (including unqualified):
|
||||||
|
* <P>
|
||||||
|
* <code>dspaceobject.getMetadataByMetadataString("dc, "title", DSpaceObject.ANY, "en_US" );</code>
|
||||||
|
* <P>
|
||||||
|
* The ordering of values of a particular element/qualifier/language
|
||||||
|
* combination is significant. When retrieving with wildcards, values of a
|
||||||
|
* particular element/qualifier/language combinations will be adjacent, but
|
||||||
|
* the overall ordering of the combinations is indeterminate.
|
||||||
|
*
|
||||||
|
* If enableVirtualMetadata is set to false, the virtual metadata will not be included
|
||||||
|
*
|
||||||
|
* @param item Item
|
||||||
|
* @param schema the schema for the metadata field. <em>Must</em> match
|
||||||
|
* the <code>name</code> of an existing metadata schema.
|
||||||
|
* @param element the element name. <code>DSpaceObject.ANY</code> matches any
|
||||||
|
* element. <code>null</code> doesn't really make sense as all
|
||||||
|
* metadata must have an element.
|
||||||
|
* @param qualifier the qualifier. <code>null</code> means unqualified, and
|
||||||
|
* <code>DSpaceObject.ANY</code> means any qualifier (including
|
||||||
|
* unqualified.)
|
||||||
|
* @param lang the ISO639 language code, optionally followed by an underscore
|
||||||
|
* and the ISO3166 country code. <code>null</code> means only
|
||||||
|
* values with no language are returned, and
|
||||||
|
* <code>DSpaceObject.ANY</code> means values with any country code or
|
||||||
|
* no country code are returned.
|
||||||
|
* @param enableVirtualMetadata
|
||||||
|
* Enables virtual metadata calculation and inclusion from the
|
||||||
|
* relationships.
|
||||||
|
* @return metadata fields that match the parameters
|
||||||
|
*/
|
||||||
public List<MetadataValue> getMetadata(Item item, String schema, String element, String qualifier,
|
public List<MetadataValue> getMetadata(Item item, String schema, String element, String qualifier,
|
||||||
String lang, boolean enableVirtualMetadata);
|
String lang, boolean enableVirtualMetadata);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user