org.kuali.rice.core.impl.style
Class StyleServiceImpl
java.lang.Object
org.kuali.rice.core.impl.style.StyleServiceImpl
- All Implemented Interfaces:
- StyleService
public class StyleServiceImpl
- extends Object
- implements StyleService
Implements generic StyleService via existing EDL style table
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StyleServiceImpl
public StyleServiceImpl()
setStyleRepositoryService
public void setStyleRepositoryService(StyleRepositoryService styleRepositoryService)
getStyle
public Style getStyle(String styleName)
- Loads the named style from the database, or (if configured) imports it from a file
specified via a configuration parameter with a name of the format edl.style.<styleName>
- Specified by:
getStyle
in interface StyleService
- See Also:
StyleRepositoryService.getStyle(String)
getStyleAsTranslet
public Templates getStyleAsTranslet(String name)
throws TransformerConfigurationException
- Description copied from interface:
StyleService
- Gets a compiled version of the style with the given name.
- Specified by:
getStyleAsTranslet
in interface StyleService
- Parameters:
name
- the name of the style for which to retrieve a compiled version
- Returns:
- a compiled version of the stylesheet as a
Templates
instance
- Throws:
TransformerConfigurationException
- if compilation of the stylesheet fails
saveStyle
public void saveStyle(Style style)
- Specified by:
saveStyle
in interface StyleService
- See Also:
StyleRepositoryService.saveStyle(Style)
getAllStyleNames
public List<String> getAllStyleNames()
- Specified by:
getAllStyleNames
in interface StyleService
- See Also:
StyleRepositoryService.getAllStyleNames()
Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.