gpt4 book ai didi

pl.edu.icm.yadda.model.source.YModelSource.getElementWithAncestors()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 23:31:31 27 4
gpt4 key购买 nike

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

YModelSource.getElementWithAncestors介绍

暂无

代码示例

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

public Ancestors getAncestorsFor(String elementId) throws ModelDataSourceException{
  ElementAncestors<YElement> ea = getYSource().getElementWithAncestors(elementId);
  
  return ea!=null ? ea.getAncestors() : null;
}

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

private ElementAncestors<YElement> getYElementWithAncestors(String id) {
  try {
    ElementAncestors<YElement> yElemAncest = dataSourcesFactory.getYCatalogDataSource().getElementWithAncestors(id);
    return setJournalIdsInOrigSequence(yElemAncest);
  } catch (ModelDataSourceException e) {
    throw new SystemException(Modules.CATALOG, "Error while fetching YElement from catalog");
  }
}

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

@Override
public ElementAncestors<YElement> getElementWithAncestors(String id) throws RepositoryException {
  try {
    final YModelSource ySource = dataSourcesFactory.getYSourceFactory().getYSource();
    final ElementAncestors<YElement> elementWithAncestors = ySource.getElementWithAncestors(id);
    return elementWithAncestors;
  } catch (ModelDataSourceException e) {
    throw new RepositoryException();
  }
}

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

@Override
protected CatalogInformationEnhancedObject<YExportable> readElement() {
  try {
    final CatalogInformationEnhancedObject<YExportable> result = dataSourcesFactory
        .getYModelGenericDataSource().getEnhancedObjectById(id);
    updateReferencesFromMetadata(result);
    
    if (result.getObject() instanceof YElement) {
      ElementAncestors<YElement> elementWithAncestors = dataSourcesFactory.getYCatalogDataSource()
          .getElementWithAncestors(id);
      parameters.put(DetailsConstants.VIEW_PARAM_ANCESTORS, elementWithAncestors.getAncestors());
    }
    
    return result;
  } catch (final Exception ex) {
    log.error("Error getting data from catalog! id=" + id);
    throw new SystemException(Modules.CATALOG, "Error getting data from catalog!", ex);
  }
}

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