作者:iflbicfb_6114756 | 来源:互联网 | 2023-05-31 17:43
本文整理了Java中com.xpn.xwiki.doc.XWikiDocument.getLocale()方法的一些代码示例,展示了XWikiDocument.getLocale()的具体用法。这些代
本文整理了Java中com.xpn.xwiki.doc.XWikiDocument.getLocale()
方法的一些代码示例,展示了XWikiDocument.getLocale()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XWikiDocument.getLocale()
方法的具体详情如下:
包路径:com.xpn.xwiki.doc.XWikiDocument
类名称:XWikiDocument
方法名:getLocale
XWikiDocument.getLocale介绍
暂无
代码示例
代码示例来源:origin: org.xwiki.platform/xwiki-platform-localization-source-wiki
@Override
public void onEvent(Event event, Object source, Object data)
{
if (event instanceof WikiDeletedEvent) {
this.bundleCache.clear();
this.disposed = true;
} else {
XWikiDocument document = (XWikiDocument) source;
this.bundleCache.remove(document.getLocale());
if (document.getLocale().equals(Locale.ROOT)) {
this.bundleCache.remove(document.getDefaultLocale());
}
}
}
代码示例来源:origin: org.xwiki.platform/xwiki-platform-search-solr-api
if (event instanceof DocumentUpdatedEvent) {
XWikiDocument document = (XWikiDocument) source;
if (Locale.ROOT.equals(document.getLocale())) {
XWikiDocument document = (XWikiDocument) source;
if (!Locale.ROOT.equals(document.getLocale())) {
代码示例来源:origin: org.xwiki.platform/xwiki-platform-wikistream-instance-oldcore
localeParameters.put(WikiDocumentFilter.PARAMETER_LASTREVISION, document.getVersion());
documentFilter.beginWikiDocumentLocale(document.getLocale(), localeParameters);
documentFilter.endWikiDocumentLocale(document.getLocale(), FilterEventParameters.EMPTY);
代码示例来源:origin: org.xwiki.platform/xwiki-platform-search-solr-api
solrDocument.setField(FieldUtils.COMMENT, translatedDocument.getComment());
solrDocument.setField(FieldUtils.DOCUMENT_LOCALE, translatedDocument.getLocale().toString());
addLocales(translatedDocument, translatedDocument.getLocale(), solrDocument);