gpt4 book ai didi

pl.edu.icm.model.bwmeta.y.YElement.getId()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-16 22:42:40 28 4
gpt4 key购买 nike

本文整理了Java中pl.edu.icm.model.bwmeta.y.YElement.getId()方法的一些代码示例,展示了YElement.getId()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YElement.getId()方法的具体详情如下:
包路径:pl.edu.icm.model.bwmeta.y.YElement
类名称:YElement
方法名:getId

YElement.getId介绍

暂无

代码示例

代码示例来源:origin: pl.edu.icm.synat/synat-process-common

private List<SearchCriterion> prepareConferenceFieldCriterionList(YElement element) {
  final List<SearchCriterion> fieldCriterionList = new ArrayList<SearchCriterion>();
  fieldCriterionList.add(new FieldCriterion(new StringBuilder(FIELD_CONFERENCE_EVENT_ID)
      .toString(), element.getId(), SearchOperator.AND));
  return fieldCriterionList;
}

代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers

protected void fillIdentifiers(YElement yElement, List<YExportable> referedElements, Map<String, List<StringWithAttributes>> ret) {
  //        identifier element
  ret.put(E_IDENTIFIER, new ArrayList<StringWithAttributes>());
  ret.get(E_IDENTIFIER).add(new StringWithAttributes(yElement.getId()));
  for (YId yId : yElement.getIds()) {
    StringWithAttributes id = new StringWithAttributes(yId.getValue());
    id.getAttributes().put("scheme", yId.getScheme());
    ret.get(E_IDENTIFIER).add(id);
  }
}

代码示例来源:origin: pl.edu.icm.synat/synat-sdk-sample-services

private void saveDocumentWithElement(DocumentRepository repository, Document document,
      YElement element) {
//        document.setMetadata(element);
    System.out.println("Element "+element.getId()+"  classified: "+element.getCategoryRefs());
//        repository.storeDocument(document, ImporterConstants.EVENT_TAG_TRIGGERED_BY_IMPORTER_PROCESS);
  }

代码示例来源:origin: pl.edu.icm.synat/synat-importer-direct

public static void copyDataToAncestor(YElement ele, YAncestor anc) {
  anc.getNames().addAll(ele.getNames());
  anc.getIds().addAll(ele.getIds());
  anc.getDates().addAll(ele.getDates());
  anc.setIdentity(ele.getId());
}

代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import

@Override
public String constructFieldValue(List<YElement> yelements) {
  List<YElement> journals = YElementsParsingToolbox.filterYElementsOfStructureLevel(yelements, YConstants.EXT_LEVEL_JOURNAL_JOURNAL);
  if (journals.size() == 0) {
    return null;
  }
  if (journals.size() > 1) {
    log.error("More than one journal found in package of yelements!");
  }       
  YElement journal = journals.get(0);

  return journal.getId(YConstants.EXT_SCHEME_ZBL);
}

代码示例来源:origin: pl.edu.icm.synat/synat-portal-core

protected void exposeBookDetails(YElement yElement, Model model) {
  model.addAttribute(TabConstants.TAB_TYPE, BOOK_COMMON_CONTENT);
  model.addAttribute("searchURL", "/resource/" + yElement.getId() + "/tab/" + allowedTab);
  model.addAttribute("advancedSearchURL", "/resource/" + yElement.getId() + "/tab/" + BOOK_ADVANCED_CONTENT);
  new ContentHandlerUtils(resourceDisplayUtils, relatedDisplayUtils).exposeContentDetails(yElement, model);
}

代码示例来源:origin: pl.edu.icm.synat/synat-process-common

private List<SearchCriterion> prepareFieldCriterionList(YElement element, String level) {
  final List<SearchCriterion> fieldCriterionList = new ArrayList<SearchCriterion>();
  fieldCriterionList.add(new FieldCriterion(new StringBuilder(FIELD_ANCESTOR_ID)
      .append(SEP).append(level).toString(), element.getId(), SearchOperator.AND));
  return fieldCriterionList;
}

代码示例来源:origin: pl.edu.icm.synat/synat-importer-direct

private void addResponseToMap(DataResponse response, Map<String, DataResponse> responses) {
  if(responses.containsKey(response.getyElement().getId())){
    DataResponse dataResponse = responses.get(response.getyElement().getId());
    if(!response.isBetterThan(dataResponse)){
      return;
    }
  }
  responses.put(response.getyElement().getId(), response);
}

代码示例来源:origin: pl.edu.icm.synat/synat-business-services-impl

private void addSpecificMetadata(List<MdSecType> dmdSecs, YElement yElement,
    MetadataFormat format, String type, String label) {
  try {
    Element element = convertYToElement(yElement, format);
    ss(dmdSecs, element, type, label);
    
  } catch (Exception e) {
    logger.error("Exception occured while converting YElement [{}]", yElement.getId(), e);
  }
}

代码示例来源:origin: pl.edu.icm.synat/synat-business-services-api

@Override
public ThumbnailRef extractThumbnailRef(YElement yElement) {
  ThumbnailRef thumbnailRef = findThumbnailPath(yElement, yElement.getId());
  if (thumbnailRef == null) {
    thumbnailRef = findThumbnailPathInAncestors(yElement);
  }
  return thumbnailRef;
}

代码示例来源:origin: pl.edu.icm.bwmeta/bwmeta-2-foreign-transformers

@Override
  public String getBookPartId(String eudmlId, String bookPartName, YElement parent) {
    
     if (eudmlId != null) {
      return ImportUtils.normalizeIdPart(eudmlId);
    }
    return IdPrefixes.EXT_PREFIX_ELEMENT +idgen.generateIdSuffix(parent.getId(), bookPartName != null ? bookPartName : null);
  }
}

代码示例来源:origin: pl.edu.icm.synat/synat-portal-core

private PersonData prepareCreatorWithoutThumbnail(YElement yElement) {
  List<String> editors = contentEditor.findUsersWithRole(yElement.getId(), RoleInResource.CREATOR);
  for (String editor : editors) {
    return bussinesPersonService.resolvePersonData(editor);
  }
  return null;
}

代码示例来源:origin: pl.edu.icm.synat/synat-portal-core

public static YContributor getContributor(YElement element, final String requestPersonId) {
  for(YContributor contributor:element.getContributors()){
    String personId  = BwmetaContributorUtils.buildContributorId(element.getId(), contributor);
    if(personId.equals(requestPersonId)){
      return contributor;
    }
  }
  throw new NotFoundException(requestPersonId);
}

代码示例来源:origin: pl.edu.icm.yadda/yaddaweb-lite-core

protected IViewBuilder<CatalogInformationEnhancedObject<YExportable>> resolveElement(YElement e,
    Map<String, Object> parameters) {
  
  for (YStructure level : e.getStructures()) {
    final String levelId = level.getCurrent().getLevel();
    if (elementViewBuilders.containsKey(levelId)) {
      return elementViewBuilders.get(levelId);
    }
  }
  throw new SystemException(Modules.DETAILS, "View for BWMETA1 element " + e.getId() + " not found");
}

代码示例来源:origin: pl.edu.icm.synat/synat-portal-core

public static List<PersonData> resolveElementContributors(YElement element, String type) {
  List<PersonData> people = new ArrayList<PersonData>();
  Map<String, FilteredString> affiliations = processAffiliations(element);
  for (YContributor contributor : element.getContributors()) {
    if (type.equals(contributor.getRole()) && contributor.getOneName() != null) {
      people.add(parseContributor(contributor, element.getId(), affiliations));
    }
  }
  return people;
}

代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl

@Override
public void store(EnrichedPayload<YElement>[] data, ProcessContext ctx)
    throws Exception {

for(EnrichedPayload<YElement> enrichedP : data){
  log.info("----------------------\n" + 
      "Element Id:" + enrichedP.getObject().getId() + "\n" + 
      "Element Name:" + enrichedP.getObject().getNames().get(0) + "\n" +
      "Element Structures:" + enrichedP.getObject().getStructures() + "\n"); 
}

}

代码示例来源:origin: pl.edu.icm.synat/synat-portal-core

public static PersonData parseContributor(String personId, YElement element) {
  YContributor contributor = getContributor(element, personId);
  Map<String, FilteredString> affiliationsMap = processAffiliations(element);
  return parseContributor(contributor, element.getId(), affiliationsMap);
}

代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import

public boolean updateJournalId(ZentralBlattSeFieldParser.SeFieldData seData, YAncestor ancestor) {
  // ZBL-ID:
  if (seData.jrnlId != null && seData.jrnlId.length() > 0) {
    YId zblId = new YId(YConstants.EXT_SCHEME_ZBL, seData.jrnlId);
    yJournal.addId(zblId);
    updateYElementIdBasingOnZblId(yJournal, "jrnl:");
    ancestor.setIdentity(yJournal.getId());
    ancestor.addId(zblId);
    return true;
  }
  return false;
}

代码示例来源:origin: pl.edu.icm.yadda.repowebeditor/repository-web-editor-core

private SaveOperation buildSaveOperationForElement(YElement element, Ancestors ancestors,
                          WebUserDetails userDetails) throws TransformationException, IOException {
  SaveOperation saveOperation = buildSaveOperationForElement(element,userDetails);
  final String elementExtId = element.getId();
  final String serializedAncestors = ancestorsSerializer.toString(elementExtId, ancestors);
  saveOperation.getObject().addPart(new CatalogObjectPart<>(CatalogParamConstants.TYPE_ELEMENT_ANCESTORS3,
      serializedAncestors));
  return saveOperation;
}

代码示例来源:origin: pl.edu.icm.yadda.repowebeditor/repository-web-editor-core

private YElementWithContents extractContent(ArticleEditForm form, YElement article) {
  ContentItem contentItem = contentMapping.joinContentsFrom(form, article.getId());
  article.setContents(contentItem.getYContentEntries());
  return new YElementWithContents(article, contentItem.getFileWithStreams());
}

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com