|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.core.impl.style.StyleServiceImpl
public class StyleServiceImpl
Implements generic StyleService via existing EDL style table
| Constructor Summary | |
|---|---|
StyleServiceImpl()
|
|
| Method Summary | |
|---|---|
protected Templates |
fetchTemplatesFromCache(String styleName)
|
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. |
protected String |
getTemplatesCacheKey(String styleName)
Returns the key to be used for caching the Templates for the given style name. |
protected void |
putTemplatesInCache(String styleName,
Templates templates)
|
void |
saveStyle(Style style)
|
void |
setCache(RiceCacheAdministrator cache)
|
void |
setStyleRepositoryService(StyleRepositoryService styleRepositoryService)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StyleServiceImpl()
| Method Detail |
|---|
public void setStyleRepositoryService(StyleRepositoryService styleRepositoryService)
public void setCache(RiceCacheAdministrator cache)
public Style getStyle(String styleName)
getStyle in interface StyleServiceorg.kuali.rice.edl.impl.service.StyleService#getStyle(java.lang.String)
public Templates getStyleAsTranslet(String name)
throws TransformerConfigurationException
StyleService
getStyleAsTranslet in interface StyleServicename - the name of the style for which to retrieve a compiled version
Templates instance
TransformerConfigurationException - 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()protected String getTemplatesCacheKey(String styleName)
protected Templates fetchTemplatesFromCache(String styleName)
protected void putTemplatesInCache(String styleName,
Templates templates)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||