本文整理了Java中pl.edu.icm.synat.logic.model.utils.YModelUtils.getDefaultDescription()
方法的一些代码示例,展示了YModelUtils.getDefaultDescription()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YModelUtils.getDefaultDescription()
方法的具体详情如下:
包路径:pl.edu.icm.synat.logic.model.utils.YModelUtils
类名称:YModelUtils
方法名:getDefaultDescription
[英]Utility function retrieving default description of NDA element
[中]检索NDA元素默认描述的实用函数
代码示例来源:origin: pl.edu.icm.synat/synat-portal-core
@Override
public HtmlMetaHeaders prepareDescriptionMetadata(final YElement yElement) {
HtmlMetaHeaders descriptionMetadata = new HtmlMetaHeaders();
String description = YModelUtils.getDefaultDescription(yElement);
if (description != null && description.length() > 0) {
descriptionMetadata.addMetadataName("description", description);
}
return descriptionMetadata;
}
代码示例来源:origin: pl.edu.icm.synat/synat-business-services-api
public static String getDefaultDescriptionString(AbstractNDA<?> element, YLanguage language) {
final YDescription defaultDescription = getDefaultDescription(element, language);
if (defaultDescription != null) {
return yRichTextToString(defaultDescription.getRichText());
} else {
return "";
}
}
代码示例来源:origin: pl.edu.icm.synat/synat-business-services-api
/**
* Creates BriefElementData using YModel (YElement)
*
* @param yElement
* bwmeta YModel
*/
@Deprecated
public BriefElementData(YElement yElement) {
this(yElement.getId(), YModelUtils.getDefaultName(yElement));
String text = YModelUtils.getDefaultDescription(yElement);
this.description = new HighlightedString(text, -1);
}
代码示例来源:origin: pl.edu.icm.synat/synat-portal-core
/**
* Method for preparation of Abstracts list, and additional flag if
* generated abstract was shortened for displaying, with specified language
*
* @param yElement
* Ymodel element
* @param language
* language to display
* @return List of Abstracts in yElement
*/
private FilteredString prepareAbstract(YElement yElement, final YLanguage language) {
final YDescription defaultDescription = YModelUtils.getDefaultDescription(yElement, language);
if (defaultDescription == null) {
return null;
}
YRichText descriptionText = defaultDescription.getRichText();
return buildFilteredString(descriptionText);
}
代码示例来源:origin: pl.edu.icm.synat/synat-business-services-api
private void populateBaseProperties(AbstractNDA<?> e, BriefElementData d) {
d.setName(YModelUtils.getDefaultName(e));
String text = YModelUtils.getDefaultDescription(e);
d.setRenderableDescription(new HighlightedString(text, -1));
}
代码示例来源:origin: pl.edu.icm.synat/synat-portal-core
personData = new ContributorData(id, nameName, surname, personPortalRole, contributor.getRole());
}else {
final String description = YModelUtils.getDefaultDescription(contributor);
personData = new ContributorData(id, name, description, personPortalRole, contributor.getRole());
代码示例来源:origin: pl.edu.icm.synat/synat-portal-core
.withSharedComponentType(ElementType.BOOK)
.withTitle(resourceDisplayUtils.prepareName(yElement).toString())
.withDescription(YModelUtils.getDefaultDescription(yElement))
.withAuthors(contributorUtilsImpl.prepareContributors(yElement, ContributorRoles.CR_AUTHOR))
.withThumbnail(resourceDisplayUtils.prepareThumbnailUrl(yElement.getId()));
代码示例来源:origin: pl.edu.icm.synat/synat-portal-core
.withSharedComponentType(ElementType.ARTICLE)
.withTitle(resourceDisplayUtils.prepareName(yElement).toString())
.withDescription(YModelUtils.getDefaultDescription(yElement))
.withAuthors(contributorUtilsImpl.prepareContributors(yElement, ContributorRoles.CR_AUTHOR))
.withThumbnail(resourceDisplayUtils.prepareThumbnailUrl(yElement.getId()));
内容来源于网络,如有侵权,请联系作者删除!