public abstract class UIIMControlRenderer
extends org.exoplatform.container.component.BaseComponentPlugin
IMType's value control in user profile. IM value control is optional. This class
already a component plugin for use with UserProfileRenderingService.| Modifier and Type | Field and Description |
|---|---|
static String |
IM_TYPE_ID
The Constant IM_TYPE_ID.
|
protected org.exoplatform.social.core.profile.settings.IMType |
imType
The IM type for this renderer.
|
| Modifier | Constructor and Description |
|---|---|
|
UIIMControlRenderer(org.exoplatform.social.core.profile.settings.IMType imtype)
Instantiates a new IM type renderer without configuration.
|
protected |
UIIMControlRenderer(org.exoplatform.social.core.profile.settings.UserProfileSettingsService settingsService,
org.exoplatform.container.xml.InitParams initParams)
Instantiates a new IM type renderer from configuration's parameters.
|
| Modifier and Type | Method and Description |
|---|---|
protected static org.exoplatform.social.core.profile.settings.IMType |
findIMType(String imtId,
org.exoplatform.social.core.profile.settings.UserProfileSettingsService settingsService)
Finds the IM type.
|
org.exoplatform.social.core.profile.settings.IMType |
getType()
Gets the IM type associated with this renderer.
|
protected static String |
readTypeID(org.exoplatform.container.xml.InitParams initParams)
Read type ID.
|
abstract void |
render(String imValue,
org.exoplatform.webui.application.WebuiRequestContext context)
Add required page markup (HTML), styles, scripts or perform other UI manipulations for given IM value
(account).
|
public static final String IM_TYPE_ID
protected final org.exoplatform.social.core.profile.settings.IMType imType
protected UIIMControlRenderer(org.exoplatform.social.core.profile.settings.UserProfileSettingsService settingsService,
org.exoplatform.container.xml.InitParams initParams)
throws org.exoplatform.container.configuration.ConfigurationException
settingsService - the settings serviceinitParams - the init paramsorg.exoplatform.container.configuration.ConfigurationException - the configuration exceptionpublic UIIMControlRenderer(org.exoplatform.social.core.profile.settings.IMType imtype)
imtype - the imtypeprotected static String readTypeID(org.exoplatform.container.xml.InitParams initParams) throws org.exoplatform.container.configuration.ConfigurationException
initParams - the init paramsorg.exoplatform.container.configuration.ConfigurationException - if IM type ID not configuredprotected static org.exoplatform.social.core.profile.settings.IMType findIMType(String imtId, org.exoplatform.social.core.profile.settings.UserProfileSettingsService settingsService) throws org.exoplatform.container.configuration.ConfigurationException
imtId - the imt idsettingsService - the settings servicenullorg.exoplatform.container.configuration.ConfigurationException - if IM type not found in UserProfileSettingsServicepublic org.exoplatform.social.core.profile.settings.IMType getType()
nullpublic abstract void render(String imValue, org.exoplatform.webui.application.WebuiRequestContext context) throws IOException, Exception
imValue - the IM valuecontext - the WebUI contextIOException - Signals that an I/O exception has occurred.Exception - the exceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.