Package io.goobi.viewer.controller.model
Class ViewAttributes
java.lang.Object
io.goobi.viewer.controller.model.ViewAttributes
Used to check whether a zoomImageView configuration block should be applied to the image view represented by the given viewManager and pageType
Stores
PageType (the type of view, like fullscreen or viewImage), MimeType of the current page, the number of pages in the record,
the main DocStructType of the record and the collections (based on SolrConstants.DC) of the record.-
Constructor Summary
ConstructorsConstructorDescriptionViewAttributes(MimeType mimeType, Integer recordPageCount, String docStructType, List<String> collections, PageType pageType) create an instance based on individual values.ViewAttributes(PageType pageType) ViewAttributes(PhysicalElement page, PageType pageType) ViewAttributes(PhysicalElement page, StructElement structElement, PageType pageType) ViewAttributes(ViewManager viewManager, PageType pageType) Creates an instance from aViewManagerAll values may be null if they can be ignored for the check. -
Method Summary
Modifier and TypeMethodDescriptionintbooleanmatchesConfiguration(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> conditionConfigNode)
-
Constructor Details
-
ViewAttributes
public ViewAttributes(MimeType mimeType, Integer recordPageCount, String docStructType, List<String> collections, PageType pageType) create an instance based on individual values. All values may be null if they can be ignored for the check- Parameters:
mimeType- the media mimeType of the pagerecordPageCount- the number of pages in the recorddocStructType- The DocStructType of the recordcollections- theSolrConstants.DCcollections of the recordpageType- the type of view, one of the values ofPageType
-
ViewAttributes
create an instance based on apageandStructElement, along with aPageType. All values may be null if they can be ignored for the check- Parameters:
page- the page to considerstructElement- the structural element to considerpageType- the type of view, one of the values ofPageType
-
ViewAttributes
Creates an instance from aViewManagerAll values may be null if they can be ignored for the check.- Parameters:
viewManager- theViewManagerpageType- the type of view, one of the values ofPageType
-
ViewAttributes
-
ViewAttributes
-
-
Method Details
-
matchesConfiguration
public boolean matchesConfiguration(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> conditionConfigNode) -
getPageType
-
getMimeType
-
getRecordPageCount
public int getRecordPageCount() -
getDocStructType
-
getCollection
-