|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.dam.setup.migration.DamMigrationUtil
public class DamMigrationUtil
Utility methods used in migration tasks.
Constructor Summary | |
---|---|
DamMigrationUtil()
|
Method Summary | |
---|---|
static String |
buildI18nSuffixPropertyName(String propertyName,
String propertyNameSuffix)
Based on propertyName build a i18n suffixed property name. - if the propertyName has no local suffix (myPropertyName) return propertyName+propertyNameSufix (propertyNamepropertyNameSufix) - if the propertyName has a valid i18n suffix (myPropertyName_en) return propertyName+propertyNameSufix + i18n suffix (propertyNamepropertyNameSufix_en). |
static String |
getI18nLocalBasedOnPropertyName(String propertyName)
|
static String |
getPropertyNameWithoutLocalSuffix(String propertyName)
|
static boolean |
isPropertyNameI18nBased(String propertyName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DamMigrationUtil()
Method Detail |
---|
public static String buildI18nSuffixPropertyName(String propertyName, String propertyNameSuffix)
propertyName
- root property name.propertyNameSufix
- suffix to add to the property name
public static boolean isPropertyNameI18nBased(String propertyName)
public static String getI18nLocalBasedOnPropertyName(String propertyName)
propertyName
- (propertyName_en return en, propertyName return null)
public static String getPropertyNameWithoutLocalSuffix(String propertyName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |