org.dspace.app.webui.util
Class MetadataStyleSelection

java.lang.Object
  extended by org.dspace.app.webui.util.AKeyBasedStyleSelection
      extended by org.dspace.app.webui.util.MetadataStyleSelection
All Implemented Interfaces:
StyleSelection

public class MetadataStyleSelection
extends AKeyBasedStyleSelection

Use the value of the metadata specified with the key webui.display.metadata-style as name for the display style of the item. Style name is case insensitive.

Version:
$Revision: 5845 $
Author:
Andrea Bollini

Constructor Summary
MetadataStyleSelection()
           
 
Method Summary
 java.lang.String getStyleForItem(Item item)
          Get the style using an item metadata
 
Methods inherited from class org.dspace.app.webui.util.AKeyBasedStyleSelection
getConfigurationForStyle, isConfigurationDefinedForStyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataStyleSelection

public MetadataStyleSelection()
Method Detail

getStyleForItem

public java.lang.String getStyleForItem(Item item)
                                 throws java.sql.SQLException
Get the style using an item metadata

Returns:
the style name to use for display simple metadata of the item
Throws:
java.sql.SQLException


Copyright © 2010 DuraSpace. All Rights Reserved.