Package org.ametys.web.sitemap
Class SitemapIcon
- java.lang.Object
-
- org.ametys.web.sitemap.SitemapIcon
-
- Direct Known Subclasses:
SitemapDecorator
public class SitemapIcon extends Object
A icon for page in sitemap
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SitemapIcon.Condition
The tag condition.
-
Field Summary
Fields Modifier and Type Field Description private String
_iconDecorator
private String
_iconGlyph
private String
_iconPath
private boolean
_live
private Map<String,String>
_metadata
private SitemapIcon.Condition
_metadataCondition
private Page.PageType
_pageType
private Map<String,String>
_properties
private SitemapIcon.Condition
_propertiesCondition
private boolean
_restricted
private List<String>
_tags
private SitemapIcon.Condition
_tagsCondition
-
Constructor Summary
Constructors Constructor Description SitemapIcon()
Constructor
-
Method Summary
-
-
-
Field Detail
-
_iconGlyph
private String _iconGlyph
-
_iconDecorator
private String _iconDecorator
-
_live
private boolean _live
-
_restricted
private boolean _restricted
-
_pageType
private Page.PageType _pageType
-
_properties
private Map<String,String> _properties
-
_tagsCondition
private SitemapIcon.Condition _tagsCondition
-
_metadataCondition
private SitemapIcon.Condition _metadataCondition
-
_propertiesCondition
private SitemapIcon.Condition _propertiesCondition
-
-
Constructor Detail
-
SitemapIcon
public SitemapIcon()
Constructor
-
-
Method Detail
-
configure
public void configure(Configuration configuration) throws ConfigurationException
Configure decoration- Parameters:
configuration
- the configuration- Throws:
ConfigurationException
- if configuration is invalid
-
getIconGlyph
public String getIconGlyph()
The icon glyph- Returns:
- The icon glyph. Can be null.
-
getIconDecorator
public String getIconDecorator()
The icon decorator- Returns:
- The icon decorator
-
getMetadataCondition
public SitemapIcon.Condition getMetadataCondition()
Get the metadata condition- Returns:
- the metadata condition
-
getTagsCondition
public SitemapIcon.Condition getTagsCondition()
The tags condition- Returns:
- The tags condition
-
getPropertiesCondition
public SitemapIcon.Condition getPropertiesCondition()
Get the metadata condition- Returns:
- the metadata condition
-
getPageType
public Page.PageType getPageType()
The page type- Returns:
- The page type
-
isLive
public boolean isLive()
Determines the live version- Returns:
- true if this icon is for live version
-
isRestricted
public boolean isRestricted()
Determines the limited access- Returns:
- true if this icon is for page with limited access
-
getMetadata
public Map<String,String> getMetadata()
Get metadata- Returns:
- the metadata
-
getProperties
public Map<String,String> getProperties()
Get properties- Returns:
- the properties
-
_configureIcon
private String _configureIcon(Configuration iconConf) throws ConfigurationException
- Throws:
ConfigurationException
-
_configureTags
private List<String> _configureTags(Configuration tagsConf) throws ConfigurationException
- Throws:
ConfigurationException
-
_configurePageType
private Page.PageType _configurePageType(Configuration child)
-
_configureMetadata
private Map<String,String> _configureMetadata(Configuration metadataConf) throws ConfigurationException
- Throws:
ConfigurationException
-
_configureProperties
private Map<String,String> _configureProperties(Configuration propConf) throws ConfigurationException
- Throws:
ConfigurationException
-
-