Several fixes and improvements for ImExporters for publications
parent
903d3a1c76
commit
4d9704f8ac
|
|
@ -33,7 +33,7 @@ public class JournalIdResolver implements Serializable, ObjectIdResolver {
|
||||||
.orElseThrow(
|
.orElseThrow(
|
||||||
() -> new IllegalArgumentException(
|
() -> new IllegalArgumentException(
|
||||||
String.format(
|
String.format(
|
||||||
"No Journa with UUID %s found in the database.",
|
"No Journal with UUID %s found in the database.",
|
||||||
id.key.toString()
|
id.key.toString()
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,3 @@
|
||||||
/*
|
|
||||||
* To change this license header, choose License Headers in Project Properties.
|
|
||||||
* To change this template file, choose Tools | Templates
|
|
||||||
* and open the template in the editor.
|
|
||||||
*/
|
|
||||||
package org.scientificcms.publications;
|
package org.scientificcms.publications;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
|
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,10 @@ package org.scientificcms.publications.assets;
|
||||||
import org.libreccm.imexport.AbstractEntityImExporter;
|
import org.libreccm.imexport.AbstractEntityImExporter;
|
||||||
import org.libreccm.imexport.Processes;
|
import org.libreccm.imexport.Processes;
|
||||||
import org.librecms.contentsection.AssetRepository;
|
import org.librecms.contentsection.AssetRepository;
|
||||||
|
import org.scientificcms.publications.Journal;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
import javax.annotation.PostConstruct;
|
import javax.annotation.PostConstruct;
|
||||||
import javax.enterprise.context.RequestScoped;
|
import javax.enterprise.context.RequestScoped;
|
||||||
|
|
@ -27,7 +29,7 @@ public class JournalAssetImExporter
|
||||||
@PostConstruct
|
@PostConstruct
|
||||||
@Override
|
@Override
|
||||||
protected void init() {
|
protected void init() {
|
||||||
// Nothing
|
addRequiredEntities(Set.of(Journal.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,6 @@ public class ArticleInJournalItemImExporter
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void initContentItemImExporter() {
|
protected void initContentItemImExporter() {
|
||||||
super.init();
|
|
||||||
addRequiredEntities(
|
addRequiredEntities(
|
||||||
Set.of(
|
Set.of(
|
||||||
JournalAsset.class
|
JournalAsset.class
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,6 @@ public class CollectedVolumeItemImExporter
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void initContentItemImExporter() {
|
protected void initContentItemImExporter() {
|
||||||
super.init();
|
|
||||||
addRequiredEntities(
|
addRequiredEntities(
|
||||||
Set.of(
|
Set.of(
|
||||||
PublisherAsset.class
|
PublisherAsset.class
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,6 @@ public class ExpertiseItemImExporter
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void initContentItemImExporter() {
|
protected void initContentItemImExporter() {
|
||||||
super.init();
|
|
||||||
addRequiredEntities(
|
addRequiredEntities(
|
||||||
Set.of(
|
Set.of(
|
||||||
Organization.class
|
Organization.class
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,6 @@ public class GreyLiteratureItemImExporter
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void initContentItemImExporter() {
|
protected void initContentItemImExporter() {
|
||||||
super.init();
|
|
||||||
addRequiredEntities(
|
addRequiredEntities(
|
||||||
Set.of(
|
Set.of(
|
||||||
Organization.class
|
Organization.class
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ public class InProceedingsItemImExporter
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void initContentItemImExporter() {
|
protected void initContentItemImExporter() {
|
||||||
super.init();
|
|
||||||
addRequiredEntities(
|
addRequiredEntities(
|
||||||
Set.of(
|
Set.of(
|
||||||
ProceedingsItem.class
|
ProceedingsItem.class
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,6 @@ public class ProceedingsItemImExporter
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void initContentItemImExporter() {
|
protected void initContentItemImExporter() {
|
||||||
super.init();
|
|
||||||
addRequiredEntities(
|
addRequiredEntities(
|
||||||
Set.of(
|
Set.of(
|
||||||
Organization.class,
|
Organization.class,
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,6 @@ public class WorkingPaperItemImExporter
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void initContentItemImExporter() {
|
protected void initContentItemImExporter() {
|
||||||
super.init();
|
|
||||||
addRequiredEntities(
|
addRequiredEntities(
|
||||||
Set.of(
|
Set.of(
|
||||||
Organization.class
|
Organization.class
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue