public class SkinGlyphSourceManager extends AbstractLogEnabled implements Serviceable, Component, Contextualizable
Modifier and Type | Field and Description |
---|---|
private Context |
_context |
private Map<String,List<String>> |
_cssFiles |
private CssFontHelper |
_cssFontHelper |
private long |
_lastUpdate |
private SourceResolver |
_resolver |
private SiteManager |
_siteManager |
static String |
ROLE
The Avalon Role
|
Constructor and Description |
---|
SkinGlyphSourceManager() |
Modifier and Type | Method and Description |
---|---|
private List<String> |
_getRelativeCssFiles(String skinName)
Get the URI of CSS files listed in conf/glyph.xml file
|
void |
contextualize(Context context) |
Map<String,Object> |
getCSSFiles(String siteName)
Get the CSS files with 'font-face' rule in the skin
|
Set<String> |
getGlyphs(String skinName)
Get the CSS class names for glyphes contained in the skin
|
List<Map<String,String>> |
getGlyphsStore(String skinName)
Get the glyphs provided by the skin
|
List<String> |
getRelativeCssFilesWithFontFace(String skinName)
Get the URI of CSS files with the 'font-face' rule
|
boolean |
hasGlyphs(String siteName)
Determines if the skin has available glyphesIde
|
void |
service(ServiceManager smanager) |
getLogger, setLogger
private CssFontHelper _cssFontHelper
private SourceResolver _resolver
private SiteManager _siteManager
private long _lastUpdate
public SkinGlyphSourceManager()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
ServiceException
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public boolean hasGlyphs(String siteName) throws Exception
siteName
- The site nameException
- if failed to read skin filespublic List<Map<String,String>> getGlyphsStore(String skinName) throws Exception
skinName
- The skin nameException
- if failed to read skin filespublic Set<String> getGlyphs(String skinName) throws Exception
skinName
- The skin nameException
- if failed to read skin filespublic Map<String,Object> getCSSFiles(String siteName) throws Exception
siteName
- The site nameException
- If failed to get the list of CSS files with 'font-face' rulepublic List<String> getRelativeCssFilesWithFontFace(String skinName) throws Exception
skinName
- The skin nameException
- if fails to read conf/glyph.xml file