- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中pl.edu.icm.model.bwmeta.y.YExportable
类的一些代码示例,展示了YExportable
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YExportable
类的具体详情如下:
包路径:pl.edu.icm.model.bwmeta.y.YExportable
类名称:YExportable
暂无
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import
public synchronized void foundNewElementForImporting(YExportable exp) {
idsToLevelsHierarchyOfElements.put(exp.getId(), getHierarchyLevels(exp));
}
代码示例来源:origin: pl.edu.icm.yadda/yaddaweb-lite-core
@Override
protected Object buildElementViewPart(YExportable exp,
String[] elementTags, Map<String, Object> additionalParameters,
IFilteringContext filteringContext) {
Map<String, Object> model = new HashMap<String, Object>();
try {
model.put("list", annotationManager.retrieveNotes(exp.getId(), null, null));
} catch (AnnotationManagerException e) {
logger.error(e.getMessage(), e);
}
return model;
}
代码示例来源:origin: pl.edu.icm.yadda/yaddaweb-lite-core
@Override
protected Object buildElementViewPart(final YExportable exp, final String[] elementTags,
final Map<String, Object> additionalParameters, final IFilteringContext filteringContext) {
TreeNode treeNode = null;
try {
final List<TreeNode> items = hierarchyTreeUtils.createItems(exp.getId(), null);
boolean emptyOrRootOnly = isEmpty(items) || isEmpty(items.get(0).getChildren());
if (!emptyOrRootOnly) {
treeNode = items.get(0);
}
} catch (final Exception e) {
log.error("Details: Error getting element from browser! extId=" + exp.getId(), e);
}
final HierarchyTreeView hierarchyTreeView = new HierarchyTreeView(treeNode);
return hierarchyTreeView;
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-external-apis
protected void retrieveYElements(List<OaiItem> list) throws OAIInternalServerError {
try {
Collection<String> ids = new ArrayList<String>();
Map<String, OaiItem> map = new LinkedHashMap<String, OaiItem>();
for (OaiItem item : list) {
ids.add(item.getId());
map.put(item.getId(), item);
}
Collection<YExportable> objects = bwmetaSource.getByIds(ids);
for (YExportable yobject : objects) {
if (yobject instanceof YElement) {
OaiItem item = map.get(yobject.getId());
item.setYobject((YElement) yobject);
}
}
} catch (Exception e) {
log.error("Error during record retrieval", e);
throw new OAIInternalServerError("Error during record retrieval");
}
}
代码示例来源:origin: pl.edu.icm.coansys/coansys-io-input
protected void addBwmetaMedia(List<YExportable> bwmeta, String docNewId, DocumentProtos.DocumentWrapper.Builder builder) throws UnsupportedEncodingException {
for (YExportable ex : bwmeta) {
if (ex instanceof YElement) {
if (((YElement) ex).getStructure(HierarchyWithLevelIds.EXT_HIERARCHY_JOURNAL) != null
&& HierarchyWithLevelIds.EXT_LEVEL_JOURNAL_ARTICLE.equalsIgnoreCase(((YElement) ex)
.getStructure(HierarchyWithLevelIds.EXT_HIERARCHY_JOURNAL).getCurrent().getLevel())) {
if (NON_ID_CHARS.matcher(ex.getId()).find()) {
String nid = docNewId;
nid = nid.replaceAll("[^a-zA-Z0-9\\-_]", "_");
((YElement) ex).setId(nid);
}
} else {
if (NON_ID_CHARS.matcher(ex.getId()).find()) {
String nid = ex.getId();
nid = nid.replaceAll("[^a-zA-Z0-9\\-_]", "_");
((YElement) ex).setId(nid);
}
}
}
}
String bwmetas = ywriter.write(bwmeta);
builder.getMediaContainerBuilder().addMediaBuilder().
setKey(BWMeta2Constants.KEY_BWMETA2_RECORD).
setMediaType(BWMeta2Constants.TYPE_BWMETA2_RECORD).
setContent(ByteString.copyFrom(bwmetas.getBytes("utf-8")));
}
代码示例来源:origin: pl.edu.icm.ceon/ceon-converters-commons
boolean isMediaLeaf = isMediaLeaf(entity);
if (storeJournalsInSeparatePacks) {
if (journalStorageIds.contains(entity.getId())) {
continue;
journalStorageIds.add(entity.getId());
if (storageIds.contains(entity.getId())) {
if (isLeaf) {
log.warn("Skipping previously stored leaf " + entity.getId() + "; current source: " + metaPart.getId());
} else {
log.debug("Skipping previously stored " + entity.getId() + "; current source: " + metaPart.getId());
storageIds.add(entity.getId());
if (isLeaf) {
leaves.add((YElement) entity);
for (YExportable ex : toAdd) {
if (ex instanceof YElement) {
processFile(elementContentSource.getDataForElement(ex.getId()), Collections.singletonList((YElement) ex));
*/ "/" + entity.getId() + ".xml";
log.error("Cannot add entity " + entity.getId() + " original: " + metaPart.getId(), e);
*/ "/" + exp.getId() + ".xml");
journalsAndYearsPackWriter.getStream().write(xml.getBytes(Charset.forName("UTF8")));
if (isLeaf(exp)) {
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import
boolean isMediaLeaf = isMediaLeaf(entity);
if (storeJournalsInSeparatePacks) {
if (journalStorageIds.contains(entity.getId())) {
continue;
journalStorageIds.add(entity.getId());
if (storageIds.contains(entity.getId())) {
if (isLeaf) {
log.warn("Skipping previously stored leaf " + entity.getId() + "; current source: " + metaPart.getId());
} else {
log.debug("Skipping previously stored " + entity.getId() + "; current source: " + metaPart.getId());
storageIds.add(entity.getId());
if (isLeaf) {
leaves.add((YElement) entity);
for (YExportable ex : toAdd) {
if (ex instanceof YElement) {
processFile(elementContentSource.getDataForElement(ex.getId()), Collections.singletonList((YElement) ex));
*/ "/" + entity.getId() + ".xml";
log.error("Cannot add entity " + entity.getId() + " original: " + metaPart.getId(), e);
*/ "/" + exp.getId() + ".xml");
journalsAndYearsPackWriter.getStream().write(xml.getBytes());
if (isLeaf(exp)) {
代码示例来源:origin: pl.edu.icm.yadda/yaddaweb-lite-core
@Override
public IViewBuilder<CatalogInformationEnhancedObject<YExportable>> resolveViewBuilder(
CatalogInformationEnhancedObject<YExportable> catalogElement, Map<String, Object> parameters) {
if (catalogElement.getObject() instanceof YElement) {
YElement element = (YElement) catalogElement.getObject();
return resolveElement(element, parameters);
} else if (catalogElement.getObject() instanceof YInstitution) {
YInstitution inst = (YInstitution) catalogElement.getObject();
return resolveInstitution(inst, parameters);
}
throw new SystemException(Modules.DETAILS, "View for BWMETA part "
+ catalogElement==null?null:catalogElement.getObject().getId() + " not found");
}
本文整理了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
我是一名优秀的程序员,十分优秀!