public class DefaultSiteType extends Object implements SiteType, Configurable, PluginAware, ThreadSafe, Serviceable
Modifier and Type | Field and Description |
---|---|
protected I18nizableText |
_description
Description.
|
protected String |
_iconGlyph
Glyph icon
|
protected String |
_id
Site type id.
|
protected I18nizableText |
_label
Label.
|
protected String |
_largeIcon
Large icon URI 48x48.
|
protected String |
_mediumIcon
Medium icon URI 32x32.
|
protected String |
_name
Site type name.
|
protected String |
_pluginName
Plugin name.
|
protected String |
_smallIcon
Small icon URI 16x16.
|
protected SourceResolver |
_srcResolver
The source resolver
|
DEFAULT_SITE_TYPE_ID
Constructor and Description |
---|
DefaultSiteType() |
Modifier and Type | Method and Description |
---|---|
protected I18nizableText |
_parseI18nizableText(Configuration config,
String name)
Parse an i18n text.
|
protected String |
_parseIcon(Configuration configuration,
String name)
Parse an icon path
|
void |
configure(Configuration configuration) |
I18nizableText |
getDescription()
Retrieves the description of the site type.
|
String |
getIconGlyph()
Retrieves the CSS class to use for glyph icon
|
String |
getId()
Retrieves the id of the site type.
|
I18nizableText |
getLabel()
Retrieves the label of the site type.
|
String |
getLargeIcon()
Retrieves the URL of the icon without the context path.
|
String |
getMediumIcon()
Retrieves the URL of the icon without the context path.
|
String |
getName()
Retrieves the name of the site type.
|
String |
getPluginName()
Retrieves the name of the plugin declaring this site type.
|
String |
getSmallIcon()
Retrieves the URL of the icon without the context path.
|
void |
service(ServiceManager smanager) |
void |
setPluginInfo(String pluginName,
String featureName,
String id)
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isPrivateType, siteInitiallyRestricted
protected String _pluginName
protected I18nizableText _label
protected I18nizableText _description
protected String _iconGlyph
protected String _smallIcon
protected String _mediumIcon
protected String _largeIcon
protected SourceResolver _srcResolver
public DefaultSiteType()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
ServiceException
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public String getId()
SiteType
public String getName()
SiteType
public I18nizableText getLabel()
SiteType
public I18nizableText getDescription()
SiteType
getDescription
in interface SiteType
public String getIconGlyph()
SiteType
getIconGlyph
in interface SiteType
public String getLargeIcon()
SiteType
getLargeIcon
in interface SiteType
public String getMediumIcon()
SiteType
getMediumIcon
in interface SiteType
public String getSmallIcon()
SiteType
getSmallIcon
in interface SiteType
public String getPluginName()
SiteType
getPluginName
in interface SiteType
public void setPluginInfo(String pluginName, String featureName, String id)
PluginAware
setPluginInfo
in interface PluginAware
pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)id
- Unique identifier of this componentprotected I18nizableText _parseI18nizableText(Configuration config, String name) throws ConfigurationException
config
- the configuration to use.name
- the child name.ConfigurationException
- if the configuration is not valid.protected String _parseIcon(Configuration configuration, String name) throws ConfigurationException
configuration
- the configuration to usename
- the child name.ConfigurationException
- if the configuration is not valid.