|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@StableMinor(version="6.2", sinceVersion="4.2") public interface ILocalizationManager
Manager responsible for string localization and locales
Field Summary | |
---|---|
static String |
DO_NOT_RENDER_PARAMETERS
|
Method Summary | |
---|---|
String |
addCustomString(SessionConfig sessionConfig,
CustomStringConfig customStringConfig,
ITransaction transaction)
Add a Custom String |
void |
clearCache()
Clear the localization cache. |
void |
clearCache(String resourcePath)
Clear the localization cache by passing the resource path. |
void |
clearCache(String resourcePath,
Locale locale)
Clear the localization cache by passing the resource path and the locale. |
void |
deleteCustomString(SessionConfig sessionConfig,
String customStringId,
ITransaction transaction)
Delete a specified Custom String |
Iterable<String> |
getCachedResourcePaths()
Get the keys for all cached items |
CustomStringConfig |
getCustomString(SessionConfig sessionConfig,
String customStringId,
ITransaction transaction)
Get the Custom String object |
Collection<LocaleConfig> |
getLocales(ITransaction transaction)
Returns the available locales for the portal. |
String |
localize(String id,
IResource resource)
Localizes the given string id using the given resource. |
String |
localize(String id,
IResource resource,
Locale locale)
|
String |
localize(String id,
List<IResource> resources)
Localizes the given string id using the given list of resources. |
String |
localize(String id,
List<IResource> resources,
Locale locale)
|
void |
updateCustomString(SessionConfig sessionConfig,
CustomStringConfig customStringConfig,
ITransaction transaction)
Update a specified Custom String |
Field Detail |
---|
static final String DO_NOT_RENDER_PARAMETERS
Method Detail |
---|
String localize(String id, IResource resource) throws ManagerException, PortalException
id
- resource
-
ManagerException
PortalException
Collection<LocaleConfig> getLocales(ITransaction transaction) throws PortalException
transaction
- the transaction for persistence access.
PortalException
String localize(String id, List<IResource> resources) throws ManagerException, PortalException
id
- resources
-
ManagerException
PortalException
String localize(String id, IResource resource, Locale locale) throws ManagerException, PortalException
id
- resource
- locale
-
ManagerException
PortalException
String localize(String id, List<IResource> resources, Locale locale) throws ManagerException, PortalException
id
- resources
- locale
-
ManagerException
PortalException
void clearCache() throws ManagerException, PortalException
ManagerException
PortalException
void clearCache(String resourcePath) throws ManagerException, PortalException
resourcePath
-
ManagerException
PortalException
void clearCache(String resourcePath, Locale locale) throws ManagerException, PortalException
resourcePath
- locale
-
ManagerException
PortalException
Iterable<String> getCachedResourcePaths() throws ManagerException
ManagerException
String addCustomString(SessionConfig sessionConfig, CustomStringConfig customStringConfig, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- customStringConfig
- transaction
-
ManagerException
PortalException
void updateCustomString(SessionConfig sessionConfig, CustomStringConfig customStringConfig, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- customStringConfig
- transaction
-
ManagerException
PortalException
void deleteCustomString(SessionConfig sessionConfig, String customStringId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- customStringId
- transaction
-
ManagerException
PortalException
CustomStringConfig getCustomString(SessionConfig sessionConfig, String customStringId, ITransaction transaction) throws PortalException
sessionConfig
- customStringId
- transaction
-
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |