public class DamLanguageUtil extends Object
Constructor and Description |
---|
DamLanguageUtil() |
Modifier and Type | Method and Description |
---|---|
static Language |
getLanguage(String path)
Returns the language for the given asset path by only analyzing the
path names starting at the root.
|
static Asset |
getLanguageCopy(String assetPath,
String languageCode,
ResourceResolver resolver)
This method returns the Language copy asset if language copy exists, for
the asked locale
|
static String |
getLanguageRoot(String path)
Returns the language root for the given asset path by only analyzing the
path names starting at the root.
|
static boolean |
hasLanguageCopy(String assetPath,
String languageCode,
ResourceResolver resolver)
This method returns true if language copy of an asset exists, for the
asked locale
|
public static boolean hasLanguageCopy(String assetPath, String languageCode, ResourceResolver resolver)
assetPath
- The path of an asset for which language copy is askedlanguageCode
- Language for which language copy is askedresolver
- ResourceResolverpublic static Asset getLanguageCopy(String assetPath, String languageCode, ResourceResolver resolver)
assetPath
- The path of an asset for which language copy is askedlanguageCode
- Language for which language copy is askedresolver
- ResourceResolverpublic static String getLanguageRoot(String path)
path
- pathnull
if not foundpublic static Language getLanguage(String path)
path
- pathnull
if not found"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"