Package org.ametys.web.glyph
Class SkinGlyphSourceManager
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.glyph.SkinGlyphSourceManager
- All Implemented Interfaces:
LogEnabled
,Component
,Contextualizable
,Serviceable
public class SkinGlyphSourceManager
extends AbstractLogEnabled
implements Serviceable, Component, Contextualizable
Manager for skin glyph sources
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) getCSSFiles
(String siteName) Get the CSS files with 'font-face' rule in the skingetCssUrisWithFontFace
(String skinName) Get the URI of CSS files with the 'font-face' ruleGet the CSS class names for glyphes contained in the skingetGlyphsStore
(String skinName) Get the glyphs provided by the skinboolean
Determines if the skin has available glyphesIdevoid
service
(ServiceManager smanager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
The Avalon Role
-
-
Constructor Details
-
SkinGlyphSourceManager
public SkinGlyphSourceManager()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
hasGlyphs
Determines if the skin has available glyphesIde- Parameters:
siteName
- The site name- Returns:
- true if the skin has available glyphes
- Throws:
Exception
- if failed to read skin files
-
getGlyphsStore
Get the glyphs provided by the skin- Parameters:
skinName
- The skin name- Returns:
- The CSS class names for glyphs
- Throws:
Exception
- if failed to read skin files
-
getGlyphs
Get the CSS class names for glyphes contained in the skin- Parameters:
skinName
- The skin name- Returns:
- The CSS class names for glyphes
- Throws:
Exception
- if failed to read skin files
-
getCSSFiles
Get the CSS files with 'font-face' rule in the skin- Parameters:
siteName
- The site name- Returns:
- The CSS files with font
- Throws:
Exception
- If failed to get the list of CSS files with 'font-face' rule
-
getCssUrisWithFontFace
Get the URI of CSS files with the 'font-face' rule- Parameters:
skinName
- The skin name- Returns:
- the URI of CSS files with the 'font-face' rule
- Throws:
Exception
- if fails to read conf/glyph.xml file
-