- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContributor.addAffiliationRef()
方法的一些代码示例,展示了YContributor.addAffiliationRef()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YContributor.addAffiliationRef()
方法的具体详情如下:
包路径:pl.edu.icm.model.bwmeta.y.YContributor
类名称:YContributor
方法名:addAffiliationRef
暂无
代码示例来源:origin: pl.edu.icm.yadda.repowebeditor/repository-web-editor-core
public ArticleBuilder setAuthors(Map<Integer, PersonInfoViewObject> personsMap) {
List<YContributor> contributors = new ArrayList<>();
for (Map.Entry<Integer, PersonInfoViewObject> entry : personsMap.entrySet()) {
PersonInfoViewObject personViewObject = entry.getValue();
YContributor author = new YContributor(YConstants.CR_AUTHOR, false);
author.setNames(extractPersonYNames(personViewObject));
final List<String> affiliationNames = personViewObject.getAffiliations();
Boolean isCorrespondingAuthor = personViewObject.getCorrespondingAuthor();
boolean addCorrespondenceAff = isCorrespondingAuthor != null ? isCorrespondingAuthor : false;
if (CollectionUtils.isNotEmpty(affiliationNames)) {
for (String affiliationName : affiliationNames) {
if (StringUtils.isNotBlank(affiliationName)) {
final String affiliationId = UUID.randomUUID().toString();
YAffiliation affiliation = new YAffiliation(affiliationId, affiliationName);
author.addAffiliationRef(affiliationId);
article.addAffiliation(affiliation);
if (addCorrespondenceAff) {
author.addAttribute(CommonAttributeTypes.AT_CORRESPONDENCE, affiliationName);
addCorrespondenceAff = false;
}
}
}
}
author.addAttribute(extractEmailAttributes(personViewObject));
contributors.add(author);
}
article.setContributors(contributors);
return this;
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
private static void putAuthor(YElement element, String author, List<String> refs) {
author = author.replaceAll(" +\\.", ".");
YName name = new YName().setType(YConstants.NM_CANONICAL).setText(author);
YContributor contributor = new YContributor().setRole(YConstants.CR_AUTHOR).addName(name);
for (String ref : refs) {
if (ref.equals("*") || ref.equals("†")) {
// Currently nothing is done
} else {
String id = Enhancers.affiliationIdFromIndex(ref);
if (element.getAffiliation(id) != null) {
contributor.addAffiliationRef(id);
}
}
}
element.addContributor(contributor);
}
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
.addName(y.name(YLanguage.NoLinguisticContent, forenames, NameTypes.NM_FORENAMES))
.addAttribute(CommonAttributeTypes.AT_CONTACT_EMAIL, JDOMHelper.toNull(JDOMHelper.getTextTrim(JDOMHelper.optDescendant(c, "email"))))
.addAffiliationRef(aref);
for (String a:aRefs){
cont.addAffiliationRef(a);
.addName(y.name(YLanguage.NoLinguisticContent, forenames, NameTypes.NM_FORENAMES))
.addAttribute(CommonAttributeTypes.AT_CONTACT_EMAIL, JDOMHelper.toNull(JDOMHelper.getTextTrim(JDOMHelper.optDescendant(c, "email"))))
.addAffiliationRef(aref);
for (String a:aRefs){
cont.addAffiliationRef(a);
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
ycont.addAffiliationRef((String) o);
if (StringUtils.isNotBlank(inName.getName())) {
if (nameAffID.containsKey(inName.getName())) {
ycont.addAffiliationRef(nameAffID.get(inName.getName()));
} else {
String affid = affPref + num;
article.addAffiliation(aff);
nameAffID.put(inName.getName(), affid);
ycont.addAffiliationRef(affid);
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
cont.addAttribute(CommonAttributeTypes.AT_CONTACT_EMAIL, toNull(getTextTrim(optDescendant(c, "email")))).addAffiliationRef(aref)).addAffiliation(y.affiliation(aref, address));
} else {
YContributor cont= new YContributor(ContributorRoles.CR_OTHER, false).addName(y.canonicalName(YLanguage.NoLinguisticContent, (defName).trim()));
cont.addAttribute(CommonAttributeTypes.AT_CONTACT_EMAIL, toNull(getTextTrim(optDescendant(c, "email")))).addAffiliationRef(aref)).addAffiliation(y.affiliation(aref, address));
代码示例来源:origin: pl.edu.icm.synat/synat-portal-core
private YContributor initYContributor(ResourceContributor input, String yRole) {
YContributor contributor = new YContributor();
contributor.addName(new YName(UserProfileUtils.createFullName(input.getForenames(), input.getSurname())).setType(NameTypes.NM_CANONICAL));
contributor.addName(new YName(input.getForenames()).setType(NameTypes.NM_FORENAMES));
contributor.addName(new YName(input.getSurname()).setType(NameTypes.NM_SURNAME));
contributor.setRole(yRole);
if (StringUtils.isNotBlank(input.getOrigApprovedId())) {
BwmetaContributorUtils.setContributorIdentity(contributor, input.getOrigApprovedId());
}
if (input.getContributorId() == null) {
throw new IllegalArgumentException();
}
BwmetaContributorUtils.setContributorId(contributor, input.getContributorId());
if(input.getAffiliationIds() != null){
for (String affId : input.getAffiliationIds()) {
if(StringUtils.isNotBlank(affId)){
contributor.addAffiliationRef(affId);
}
}
}
return contributor;
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
if (contributorRoles.contains(ctValue)) {
article.addContributor(
new YContributor(ctValue, false).addName(y.canonicalName(YLanguage.NoLinguisticContent, canonicalName)).addName(y.name(YLanguage.NoLinguisticContent, surname, NM_SURNAME)).addName(y.name(YLanguage.NoLinguisticContent, forenames, NM_FORENAMES)).addAttribute(AT_CONTACT_EMAIL, toNull(getTextTrim(optDescendant(c, "email")))).addAffiliationRef(aref)).addAffiliation(y.affiliation(aref, address));
} else {
article.addContributor(
new YContributor(YConstants.CR_OTHER, false).addName(y.canonicalName(YLanguage.NoLinguisticContent, canonicalName)).addName(y.name(YLanguage.NoLinguisticContent, surname, NM_SURNAME)).addName(y.name(YLanguage.NoLinguisticContent, forenames, NM_FORENAMES)).addAttribute(AT_CONTACT_EMAIL, toNull(getTextTrim(optDescendant(c, "email")))).addAffiliationRef(aref)).addAffiliation(y.affiliation(aref, address));
本文整理了Java中pl.edu.icm.yadda.service2.YaddaError类的一些代码示例,展示了YaddaError类的具体用法。这些代码示例主要来源于Github/Stackov
本文整理了Java中pl.edu.icm.yadda.common.YaddaException类的一些代码示例,展示了YaddaException类的具体用法。这些代码示例主要来源于Github/S
本文整理了Java中pl.edu.icm.ceon.commons.YaddaCollectionsUtils类的一些代码示例,展示了YaddaCollectionsUtils类的具体用法。这些代码示
本文整理了Java中pl.edu.icm.model.bwmeta.YElement类的一些代码示例,展示了YElement类的具体用法。这些代码示例主要来源于Github/Stackoverflow
本文整理了Java中pl.edu.icm.model.bwmeta.YContributor类的一些代码示例,展示了YContributor类的具体用法。这些代码示例主要来源于Github/Stack
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContentFile类的一些代码示例,展示了YContentFile类的具体用法。这些代码示例主要来源于Github/Sta
本文整理了Java中pl.edu.icm.model.bwmeta.y.YDescription类的一些代码示例,展示了YDescription类的具体用法。这些代码示例主要来源于Github/Sta
本文整理了Java中pl.edu.icm.model.bwmeta.y.YCurrent类的一些代码示例,展示了YCurrent类的具体用法。这些代码示例主要来源于Github/Stackoverfl
本文整理了Java中pl.edu.icm.model.bwmeta.y.YName类的一些代码示例,展示了YName类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Mav
本文整理了Java中pl.edu.icm.model.bwmeta.y.YStructure类的一些代码示例,展示了YStructure类的具体用法。这些代码示例主要来源于Github/Stackov
本文整理了Java中pl.edu.icm.model.bwmeta.y.YElement类的一些代码示例,展示了YElement类的具体用法。这些代码示例主要来源于Github/Stackoverfl
本文整理了Java中pl.edu.icm.model.bwmeta.y.YCategoryRef类的一些代码示例,展示了YCategoryRef类的具体用法。这些代码示例主要来源于Github/Sta
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContentDirectory类的一些代码示例,展示了YContentDirectory类的具体用法。这些代码示例主要来源于
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContentEntry类的一些代码示例,展示了YContentEntry类的具体用法。这些代码示例主要来源于Github/S
本文整理了Java中pl.edu.icm.model.bwmeta.y.YId类的一些代码示例,展示了YId类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平
本文整理了Java中pl.edu.icm.model.bwmeta.y.YRelation类的一些代码示例,展示了YRelation类的具体用法。这些代码示例主要来源于Github/Stackover
本文整理了Java中pl.edu.icm.model.bwmeta.y.YAncestor类的一些代码示例,展示了YAncestor类的具体用法。这些代码示例主要来源于Github/Stackover
本文整理了Java中pl.edu.icm.model.bwmeta.y.YAffiliation类的一些代码示例,展示了YAffiliation类的具体用法。这些代码示例主要来源于Github/Sta
本文整理了Java中pl.edu.icm.model.bwmeta.y.YDate类的一些代码示例,展示了YDate类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Mav
本文整理了Java中pl.edu.icm.model.bwmeta.y.YLanguage类的一些代码示例,展示了YLanguage类的具体用法。这些代码示例主要来源于Github/Stackover
我是一名优秀的程序员,十分优秀!