public class StyleServiceImpl extends Object implements StyleService
Constructor and Description |
---|
StyleServiceImpl() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAllStyleNames() |
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>
|
Templates |
getStyleAsTranslet(String name)
Gets a compiled version of the style with the given name.
|
void |
saveStyle(Style style) |
void |
setStyleRepositoryService(StyleRepositoryService styleRepositoryService) |
public StyleServiceImpl()
public void setStyleRepositoryService(StyleRepositoryService styleRepositoryService)
public Style getStyle(String styleName)
getStyle
in interface StyleService
StyleRepositoryService.getStyle(String)
public Templates getStyleAsTranslet(String name) throws TransformerConfigurationException
StyleService
getStyleAsTranslet
in interface StyleService
name
- the name of the style for which to retrieve a compiled versionTemplates
instanceTransformerConfigurationException
- if compilation of the stylesheet failspublic void saveStyle(Style style)
saveStyle
in interface StyleService
StyleRepositoryService.saveStyle(Style)
public List<String> getAllStyleNames()
getAllStyleNames
in interface StyleService
StyleRepositoryService.getAllStyleNames()
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.