- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContributor.getIdentity()
方法的一些代码示例,展示了YContributor.getIdentity()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YContributor.getIdentity()
方法的具体详情如下:
包路径:pl.edu.icm.model.bwmeta.y.YContributor
类名称:YContributor
方法名:getIdentity
暂无
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
private static void proceedIdentity(YContributor yc,
LinkedList<PredicateAndObject> pao) {
if(!yc.getIdentity().isEmpty())
pao.add(new PredicateAndObject(RelConstants.RL_IS_PERSON,RelConstants.NS_PERSON+yc.getIdentity()));
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
private static void proceedInstitutions(YContributor yc,
LinkedList<PredicateAndObject> pao) {
if(yc.isInstitution()){
if (yc.getIdentity()!=null & ! yc.getIdentity().isEmpty())
pao.add(new PredicateAndObject(RelConstants.RL_IS_INSTITUTION,RelConstants.NS_INSTITUTION+yc.getIdentity()));
}
}
代码示例来源:origin: pl.edu.icm.yadda/yaddaweb-lite-core
protected void fetchPersonality(final YContributor contributor, final ViewContributor viewContributor,
final IFilteringContext filteringContext) {
if (!contributor.isInstitution() || contributor.getIdentity() == null || contributor.getIdentity().isEmpty()) {
return;
}
try {
final YInstitution inst = dataSourcesFactory.getYCatalogDataSource()
.getInstitutionById(contributor.getIdentity());
if (inst != null) {
final String addr = inst.getOneAttributeSimpleValue(YConstants.AT_CONTACT_LOCATION);
viewContributor.setPublisherId(contributor.getIdentity());
viewContributor.getAddresses().add(detailsFilter.filter(addr, InputType.RICH_TEXT, filteringContext));
viewContributor.getContacts()
.addAll(CommonBuilderUtils.resolveContacts(inst, filteringContext, detailsFilter));
}
} catch (final Exception e) {
throw new SystemException(Modules.DETAILS, "Error fetching intitution: " + contributor.getIdentity(), e);
}
}
代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers
protected void fillContributors(YElement yElement, List<YExportable> referedElements, Map<String, List<StringWithAttributes>> ret) {
// creator element
for (YContributor yContributor : yElement.getContributors()) {
String dcRoleElementName = null;
String role=yContributor.getRole();
if (role.equals(ContributorRoles.CR_AUTHOR) || role.equals(ContributorRoles.CR_EDITOR)) {
dcRoleElementName = E_CREATOR;
} else if (role.equals(ContributorRoles.CR_PUBLISHER)) {
dcRoleElementName = E_PUBLISHER;
} else if (role.equals(ContributorRoles.CR_OTHER)) {
dcRoleElementName = E_CONTRIBUTOR;
}
if (dcRoleElementName != null) {
if (!ret.containsKey(dcRoleElementName)) {
ret.put(dcRoleElementName, new ArrayList<StringWithAttributes>());
}
if (StringUtils.isNotBlank(yContributor.getIdentity())) {
ret.get(dcRoleElementName).add(new StringWithAttributes(yContributor.getIdentity()));
} else {
ret.get(dcRoleElementName).add(new StringWithAttributes(yContributor.getDefaultName().getText()));
}
}
}
}
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import
public List<String> getBasicIds(YElement elem) {
ArrayList<String> ret = new ArrayList<String>();
for (YAffiliation aff: elem.getAffiliations()) {
if (aff.getIdentity()!=null && !aff.getIdentity().isEmpty()){
ret.add(aff.getIdentity());
}
}
for (YContributor cont : elem.getContributors()) {
if (!cont.getIdentity().isEmpty()) {
ret.add(cont.getIdentity());
}
}
for (YStructure struct : elem.getStructures()) {
for (YAncestor anc : struct.getAncestors()) {
if (!anc.getIdentity().isEmpty()) {
ret.add(anc.getIdentity());
}
}
}
return ret;
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
if(!yc.getIdentity().isEmpty())
pao.add(new PredicateAndObject(RelConstants.RL_IS_PERSON,RelConstants.NS_PERSON+yc.getIdentity()));
if(!yc.getNames().isEmpty()){
String sname = "";
if (yc.getIdentity()!=null & ! yc.getIdentity().isEmpty())
pao.add(new PredicateAndObject(RelConstants.RL_IS_INSTITUTION,RelConstants.NS_INSTITUTION+yc.getIdentity()));
代码示例来源:origin: pl.edu.icm.yadda/yaddaweb-lite-core
private void buildViewContributors(final IFilteringContext filteringContext, final YElement element,
final List<ViewContributor> partModel) {
final List<YContributor> result = new ArrayList<YContributor>(element.getContributors());
for (final YContributor yContr : result) {
if (isVisible(yContr)) {
ContributorInfo contrInfo = contributorInfoBuilder.prepareContributorInfo(yContr);
String title = prepareTitle(yContr, contrInfo);
final ViewContributor viewContributor = new ViewContributor(contrInfo.getMd5(),
detailsFilter.filter(title, InputType.PLAIN_TEXT, filteringContext),
detailsFilter.filter(yContr.getRole(), InputType.IDENTIFIER, filteringContext),
filterEmail(resolveEmail(yContr), filteringContext),
resolveAffiliations(yContr, element, filteringContext));
viewContributor.getAddresses().addAll(resolveAddresses(yContr, filteringContext));
viewContributor.getContacts().addAll(resolveContributorContacts(yContr, filteringContext));
if (personalityContacts && yContr.getIdentity() != null && yContr.getIdentity().length() > 0) {
fetchPersonality(yContr, viewContributor, filteringContext);
}
partModel.add(viewContributor);
}
}
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-content
if(!yc.getIdentity().isEmpty())
pao.add(new PredicateAndObject(RelConstants.RL_IS_PERSON,RelConstants.NS_PERSON+yc.getIdentity()));
if(!yc.getNames().isEmpty()){
String sname = "";
if (yc.getIdentity()!=null & ! yc.getIdentity().isEmpty())
pao.add(new PredicateAndObject(RelConstants.RL_IS_INSTITUTION,RelConstants.NS_INSTITUTION+yc.getIdentity()));
专家, 我刚刚发现 Zend_Auth 的一个奇怪行为,即它无法在服务器中存储 session 。我所有使用 Zend_Auth 进行身份验证的现有应用程序都会突然发生这种情况,所以我确定代码没有问题
使用这个: System.out.println("PRIMARY KEY: " + DSL.table(DSL.name(tableName)).getPrimaryKey()); 返回 null
本文整理了Java中pl.edu.icm.model.bwmeta.y.YAncestor.getIdentity()方法的一些代码示例,展示了YAncestor.getIdentity()的具体用法
本文整理了Java中pl.edu.icm.model.bwmeta.y.YContributor.getIdentity()方法的一些代码示例,展示了YContributor.getIdentity(
我是一名优秀的程序员,十分优秀!