public class Related extends Object implements VirtualMetadataConfiguration
VirtualMetadataConfiguration interface to achieve the generation of
Virtual metadata by traversing the path of relation specified in the config for this bean
The Related bean will find the relationshiptype defined in the relationshipTypeString property on
the current item and it'll use the related item from that relationship to pass it along to the
virtualMetadataConfiguration property which in turn refers to another VirtualBean instance and it continues
the chain until it reaches either a Concatenate or Collected bean to retrieve the values. It will then return
that value through the chain again and it'll fill the values into the virtual metadata fields that are defined
in the map for the first Related bean.| Constructor and Description |
|---|
Related() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getPlace()
Generic getter for the place property of this class
|
String |
getRelationshipTypeString()
Generic getter for the relationshipTypeString property of this class
|
boolean |
getUseForPlace()
Generic getter for the useForPlace property
|
List<String> |
getValues(Context context,
Item item)
This method will find the correct Relationship from the given item to retrieve the other item from it
and pass this along to the next VirtualBean that's stored in this class.
|
VirtualMetadataConfiguration |
getVirtualMetadataConfiguration()
Generic getter for the virtualMetadataConfiguration property of this class
|
void |
setPlace(Integer place)
Generic setter for the place property of this class
|
void |
setRelationshipTypeString(String relationshipTypeString)
Generic setter for the relationshipTypeString property of this class
|
void |
setUseForPlace(boolean useForPlace)
Generic setter for the useForPlace property
|
void |
setVirtualMetadataConfiguration(VirtualMetadataConfiguration virtualMetadataConfiguration)
Generic setter for the virtualMetadataConfiguration property of this class
|
public String getRelationshipTypeString()
public void setRelationshipTypeString(String relationshipTypeString)
relationshipTypeString - The String to which the relationshipTypeString will be set topublic Integer getPlace()
public void setPlace(Integer place)
place - The Integer to which the place property will be set topublic VirtualMetadataConfiguration getVirtualMetadataConfiguration()
public void setVirtualMetadataConfiguration(VirtualMetadataConfiguration virtualMetadataConfiguration)
virtualMetadataConfiguration - The VirtualBean to which the
virtualMetadataConfiguration property will be set topublic void setUseForPlace(boolean useForPlace)
setUseForPlace in interface VirtualMetadataConfigurationuseForPlace - The boolean value that the useForPlace property will be set topublic boolean getUseForPlace()
getUseForPlace in interface VirtualMetadataConfigurationpublic List<String> getValues(Context context, Item item) throws SQLException
getValues in interface VirtualMetadataConfigurationcontext - The relevant DSpace contextitem - The item that will be used to find the related item through its relationshipsSQLException - If something goes wrongCopyright © 2019 DuraSpace. All rights reserved.