org.kuali.rice.coreservice.impl.style
Class StyleServiceImpl

java.lang.Object
  extended by org.kuali.rice.coreservice.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)

Constructor Summary
StyleServiceImpl()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleServiceImpl

public StyleServiceImpl()
Method Detail

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-2014 The Kuali Foundation. All Rights Reserved.