Package io.goobi.viewer.model.metadata
Class MetadataView
java.lang.Object
io.goobi.viewer.model.metadata.MetadataView
A MetadataView represents a single record metadata view page within a record (along with an own link in the views widget).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumerates the possible display locations for a metadata view, either in the main object view or in the sidebar. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetIndex()getLabel()getUrl()booleanbooleanbooleanChecks link visibility conditions.setCondition(String condition) setIndex(int index) setLocation(MetadataView.MetadataViewLocation location)
-
Constructor Details
-
MetadataView
public MetadataView()
-
-
Method Details
-
isVisible
Checks link visibility conditions.- Parameters:
se- structure element to check the visibility condition against- Returns:
- true if conditions empty or satisfied; false otherwise
-
isDisplayInSidebar
public boolean isDisplayInSidebar() -
isDisplayInObjectView
public boolean isDisplayInObjectView() -
getIndex
public int getIndex() -
setIndex
- Parameters:
index- the position index of this view within the ordered list of metadata views- Returns:
- this
-
getLabel
-
setLabel
- Parameters:
label- the message key used as the display label for this metadata view tab- Returns:
- this
-
getUrl
-
setUrl
- Parameters:
url- the URL or navigation target linked from this metadata view tab- Returns:
- this
-
getCondition
-
setCondition
- Parameters:
condition- the Solr-query-style condition that must be satisfied for this view to be shown- Returns:
- this
-
getLocation
-
setLocation
- Parameters:
location- the UI location where this metadata view is rendered (e.g. main content or sidebar)- Returns:
- this
-