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