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 StyleServiceStyleRepositoryService.getStyle(String)public Templates getStyleAsTranslet(String name) throws TransformerConfigurationException
StyleServicegetStyleAsTranslet in interface StyleServicename - 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 StyleServiceStyleRepositoryService.saveStyle(Style)public List<String> getAllStyleNames()
getAllStyleNames in interface StyleServiceStyleRepositoryService.getAllStyleNames()Copyright © 2005–2016 The Kuali Foundation. All rights reserved.