Class LocalizedWAComponent
- java.lang.Object
-
- org.silverpeas.core.admin.component.model.LocalizedComponent
-
- org.silverpeas.core.admin.component.model.LocalizedWAComponent
-
public class LocalizedWAComponent extends LocalizedComponent
- Author:
- ehugonnet
-
-
Constructor Summary
Constructors Constructor Description LocalizedWAComponent(WAComponent component, String lang)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getComponentName()
String
getLanguage()
protected String
getLocalized(String bundleKey, Map<String,String> messages)
Gets the localized data first into bundle property files if any, then into map of translations.LocalizedProfile
getProfile(String name)
List<LocalizedProfile>
getProfiles()
String
getRouter()
String
getSuite()
boolean
isPortlet()
boolean
isVisibleInPersonalSpace()
-
Methods inherited from class org.silverpeas.core.admin.component.model.LocalizedComponent
getDescription, getLabel, getName, isVisible
-
-
-
-
Constructor Detail
-
LocalizedWAComponent
public LocalizedWAComponent(WAComponent component, String lang)
-
-
Method Detail
-
getProfiles
public List<LocalizedProfile> getProfiles()
-
getProfile
public LocalizedProfile getProfile(String name)
-
getRouter
public String getRouter()
-
getSuite
public String getSuite()
-
isPortlet
public boolean isPortlet()
-
isVisibleInPersonalSpace
public boolean isVisibleInPersonalSpace()
-
getComponentName
public String getComponentName()
-
getLanguage
public String getLanguage()
-
getLocalized
protected String getLocalized(String bundleKey, Map<String,String> messages)
Gets the localized data first into bundle property files if any, then into map of translations.- Parameters:
bundleKey
- the bundle key.messages
- the map of translations extracted from XML component descriptors.- Returns:
- the localized data as string.
- Throws:
MissingResourceException
- if no translation can be found from the different resource locations.
-
-