Example usage for com.liferay.portal.kernel.util LocalizationUtil getDefaultLanguageId

List of usage examples for com.liferay.portal.kernel.util LocalizationUtil getDefaultLanguageId

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util LocalizationUtil getDefaultLanguageId.

Prototype

public static String getDefaultLanguageId(String xml, Locale defaultLocale) 

Source Link

Usage

From source file:br.com.cnf.curso.inscricao.model.impl.PedidoMoedaDigitalModelImpl.java

License:Open Source License

@Override
public String getDefaultLanguageId() {
    String xml = getXmlEnvio();/*from w w w .j  a  va 2  s  . c  o m*/

    if (xml == null) {
        return StringPool.BLANK;
    }

    Locale defaultLocale = LocaleUtil.getDefault();

    return LocalizationUtil.getDefaultLanguageId(xml, defaultLocale);
}

From source file:br.com.prodevelopment.lapidarios.evento.model.EventoAgendaClp.java

License:Open Source License

@Override
public String getDefaultLanguageId() {
    String xml = getEventoNome();

    if (xml == null) {
        return StringPool.BLANK;
    }/*w w w.j a  v a 2s . co  m*/

    Locale defaultLocale = LocaleUtil.getDefault();

    return LocalizationUtil.getDefaultLanguageId(xml, defaultLocale);
}

From source file:br.com.prodevelopment.lapidarios.evento.model.EventoClp.java

License:Open Source License

@Override
public String getDefaultLanguageId() {
    String xml = getNome();/*from  w  w  w. j a  v a 2  s . c  o  m*/

    if (xml == null) {
        return StringPool.BLANK;
    }

    Locale defaultLocale = LocaleUtil.getDefault();

    return LocalizationUtil.getDefaultLanguageId(xml, defaultLocale);
}

From source file:br.com.prodevelopment.lapidarios.evento.model.impl.LocalModelImpl.java

License:Open Source License

@Override
public String getDefaultLanguageId() {
    String xml = getPontoReferencia();

    if (xml == null) {
        return StringPool.BLANK;
    }/*from  ww  w  .j av a 2s.  c  o m*/

    Locale defaultLocale = LocaleUtil.getDefault();

    return LocalizationUtil.getDefaultLanguageId(xml, defaultLocale);
}

From source file:br.com.prodevelopment.lapidarios.loja.model.impl.LojaModelImpl.java

License:Open Source License

@Override
public String getDefaultLanguageId() {
    String xml = getObservacao();

    if (xml == null) {
        return StringPool.BLANK;
    }/*www  .  j av  a 2 s  .com*/

    Locale defaultLocale = LocaleUtil.getDefault();

    return LocalizationUtil.getDefaultLanguageId(xml, defaultLocale);
}

From source file:com.bemis.portal.report.model.impl.ReportDefinitionModelImpl.java

License:Open Source License

@Override
public String getDefaultLanguageId() {
    String xml = getTitle();//w  w w.  j av a 2  s  .  c o  m

    if (xml == null) {
        return StringPool.BLANK;
    }

    Locale defaultLocale = LocaleUtil.getSiteDefault();

    return LocalizationUtil.getDefaultLanguageId(xml, defaultLocale);
}

From source file:com.dict.dao.model.DictCollectionAlpacaJSClp.java

License:Open Source License

@Override
public String getDefaultLanguageId() {
    String xml = getCollectionName();

    if (xml == null) {
        return StringPool.BLANK;
    }/*from   w  ww  .  ja v a 2 s . com*/

    Locale defaultLocale = LocaleUtil.getDefault();

    return LocalizationUtil.getDefaultLanguageId(xml, defaultLocale);
}

From source file:com.kisti.science.platform.app.model.impl.ScienceAppModelImpl.java

License:Open Source License

@Override
public String getDefaultLanguageId() {
    String xml = getTitle();/*from   w  w w  .j  a va  2 s .c  o  m*/

    if (xml == null) {
        return StringPool.BLANK;
    }

    Locale defaultLocale = LocaleUtil.getDefault();

    return LocalizationUtil.getDefaultLanguageId(xml, defaultLocale);
}

From source file:com.liferay.calendar.model.CalendarClp.java

License:Open Source License

@Override
public String getDefaultLanguageId() {
    String xml = getName();//from   www.jav a2 s .c o m

    if (xml == null) {
        return StringPool.BLANK;
    }

    Locale defaultLocale = LocaleUtil.getSiteDefault();

    return LocalizationUtil.getDefaultLanguageId(xml, defaultLocale);
}

From source file:com.liferay.dynamic.data.lists.model.impl.DDLRecordSetVersionModelImpl.java

License:Open Source License

@Override
public String getDefaultLanguageId() {
    String xml = getName();//from w  ww. j  ava 2  s  . co m

    if (xml == null) {
        return StringPool.BLANK;
    }

    Locale defaultLocale = LocaleUtil.getDefault();

    return LocalizationUtil.getDefaultLanguageId(xml, defaultLocale);
}