org.kuali.rice.coreservice.api.style
Interface StyleService

All Known Implementing Classes:
StyleServiceImpl

public interface StyleService

Service for working with stylesheets. This service provides pure data-oriented operations as well as operations dealing with pre-compiled stylesheets. It's intended that most clients will interact with this service in lieu of the lower-level StyleRepositoryService.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Style, StyleRepositoryService

Method Summary
 List<String> getAllStyleNames()
           
 Style getStyle(String styleName)
           
 Templates getStyleAsTranslet(String styleName)
          Gets a compiled version of the style with the given name.
 void saveStyle(Style data)
           
 

Method Detail

getStyle

Style getStyle(String styleName)
See Also:
StyleRepositoryService.getStyle(String)

getAllStyleNames

List<String> getAllStyleNames()
See Also:
StyleRepositoryService.getAllStyleNames()

saveStyle

@CacheEvict(value="http://rice.kuali.org/core/v2_0/StyleType",
            allEntries=true)
void saveStyle(Style data)
See Also:
StyleRepositoryService.saveStyle(Style)

getStyleAsTranslet

@Cacheable(value="http://rice.kuali.org/core/v2_0/StyleType",
           key="\'styleName=\' + #p0")
Templates getStyleAsTranslet(String styleName)
                             throws TransformerConfigurationException
Gets a compiled version of the style with the given name.

Parameters:
styleName - 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
IllegalArgumentException - if the given styleName is null or blank


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.