Updated ImExporter to work with updated AbstractContentItemImExporter
parent
a6b6c72d18
commit
903d3a1c76
|
|
@ -14,7 +14,7 @@ public abstract class AbstractPublicationImExporter<T extends Publication>
|
|||
|
||||
@Inject
|
||||
private PublicationRepository publicationRepo;
|
||||
|
||||
|
||||
@Override
|
||||
protected void saveImportedEntity(final Publication publication) {
|
||||
publicationRepo.save(publication);
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ package org.scientificcms.publications;
|
|||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -13,7 +12,6 @@ public abstract class AbstractPublicationWithPublisherImExporter<T extends Publi
|
|||
extends AbstractPublicationImExporter<T> {
|
||||
|
||||
@Override
|
||||
@PostConstruct
|
||||
protected final void init() {
|
||||
addRequiredEntities(
|
||||
Set.of(
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import org.librecms.contentsection.AbstractContentItemImExporter;
|
|||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import javax.enterprise.context.RequestScoped;
|
||||
|
||||
/**
|
||||
|
|
@ -16,10 +15,8 @@ import javax.enterprise.context.RequestScoped;
|
|||
@Processes(ArticleInCollectedVolumeItem.class)
|
||||
public class ArticleInCollectedVolumeItemImExporter extends AbstractContentItemImExporter<ArticleInCollectedVolumeItem> {
|
||||
|
||||
@PostConstruct
|
||||
@Override
|
||||
protected void init() {
|
||||
super.init();
|
||||
protected void initContentItemImExporter() {
|
||||
addRequiredEntities(
|
||||
Set.of(
|
||||
CollectedVolumeItem.class
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ import org.scientificcms.publications.assets.JournalAsset;
|
|||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import javax.enterprise.context.RequestScoped;
|
||||
|
||||
/**
|
||||
|
|
@ -18,9 +17,8 @@ import javax.enterprise.context.RequestScoped;
|
|||
public class ArticleInJournalItemImExporter
|
||||
extends AbstractContentItemImExporter<ArticleInJournalItem> {
|
||||
|
||||
@PostConstruct
|
||||
@Override
|
||||
protected void init() {
|
||||
protected void initContentItemImExporter() {
|
||||
super.init();
|
||||
addRequiredEntities(
|
||||
Set.of(
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ import org.scientificcms.publications.assets.PublisherAsset;
|
|||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import javax.enterprise.context.RequestScoped;
|
||||
|
||||
/**
|
||||
|
|
@ -18,9 +17,8 @@ import javax.enterprise.context.RequestScoped;
|
|||
public class CollectedVolumeItemImExporter
|
||||
extends AbstractContentItemImExporter<CollectedVolumeItem> {
|
||||
|
||||
@PostConstruct
|
||||
@Override
|
||||
protected void init() {
|
||||
protected void initContentItemImExporter() {
|
||||
super.init();
|
||||
addRequiredEntities(
|
||||
Set.of(
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ import org.librecms.contentsection.AbstractContentItemImExporter;
|
|||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import javax.enterprise.context.RequestScoped;
|
||||
|
||||
/**
|
||||
|
|
@ -18,9 +17,8 @@ import javax.enterprise.context.RequestScoped;
|
|||
public class ExpertiseItemImExporter
|
||||
extends AbstractContentItemImExporter<ExpertiseItem> {
|
||||
|
||||
@PostConstruct
|
||||
@Override
|
||||
protected void init() {
|
||||
protected void initContentItemImExporter() {
|
||||
super.init();
|
||||
addRequiredEntities(
|
||||
Set.of(
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ import org.librecms.contentsection.AbstractContentItemImExporter;
|
|||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import javax.enterprise.context.RequestScoped;
|
||||
|
||||
/**
|
||||
|
|
@ -18,9 +17,8 @@ import javax.enterprise.context.RequestScoped;
|
|||
public class GreyLiteratureItemImExporter
|
||||
extends AbstractContentItemImExporter<GreyLiteratureItem> {
|
||||
|
||||
@PostConstruct
|
||||
@Override
|
||||
protected void init() {
|
||||
protected void initContentItemImExporter() {
|
||||
super.init();
|
||||
addRequiredEntities(
|
||||
Set.of(
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import org.librecms.contentsection.AbstractContentItemImExporter;
|
|||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import javax.enterprise.context.RequestScoped;
|
||||
|
||||
/**
|
||||
|
|
@ -17,9 +16,8 @@ import javax.enterprise.context.RequestScoped;
|
|||
public class InProceedingsItemImExporter
|
||||
extends AbstractContentItemImExporter<InProceedingsItem> {
|
||||
|
||||
@PostConstruct
|
||||
@Override
|
||||
protected void init() {
|
||||
protected void initContentItemImExporter() {
|
||||
super.init();
|
||||
addRequiredEntities(
|
||||
Set.of(
|
||||
|
|
|
|||
|
|
@ -14,9 +14,16 @@ import javax.enterprise.context.RequestScoped;
|
|||
public class InternetArticleItemImExporter
|
||||
extends AbstractContentItemImExporter<InternetArticleItem>{
|
||||
|
||||
@Override
|
||||
protected void initContentItemImExporter() {
|
||||
// Nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<InternetArticleItem> getEntityClass() {
|
||||
return InternetArticleItem.class;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ import org.scientificcms.publications.assets.PublisherAsset;
|
|||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import javax.enterprise.context.RequestScoped;
|
||||
|
||||
/**
|
||||
|
|
@ -18,10 +17,8 @@ import javax.enterprise.context.RequestScoped;
|
|||
public class MonographItemImExporter
|
||||
extends AbstractContentItemImExporter<MonographItem> {
|
||||
|
||||
@PostConstruct
|
||||
@Override
|
||||
protected void init() {
|
||||
super.init();
|
||||
protected void initContentItemImExporter() {
|
||||
addRequiredEntities(
|
||||
Set.of(
|
||||
PublisherAsset.class
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ import org.scientificcms.publications.assets.PublisherAsset;
|
|||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import javax.enterprise.context.RequestScoped;
|
||||
|
||||
/**
|
||||
|
|
@ -19,9 +18,8 @@ import javax.enterprise.context.RequestScoped;
|
|||
public class ProceedingsItemImExporter
|
||||
extends AbstractContentItemImExporter<ProceedingsItem> {
|
||||
|
||||
@PostConstruct
|
||||
@Override
|
||||
protected void init() {
|
||||
protected void initContentItemImExporter() {
|
||||
super.init();
|
||||
addRequiredEntities(
|
||||
Set.of(
|
||||
|
|
|
|||
|
|
@ -19,4 +19,9 @@ public class TalkItemImExporter
|
|||
return TalkItem.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void initContentItemImExporter() {
|
||||
// Nothing
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ import org.librecms.contentsection.AbstractContentItemImExporter;
|
|||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import javax.enterprise.context.RequestScoped;
|
||||
|
||||
/**
|
||||
|
|
@ -18,9 +17,8 @@ import javax.enterprise.context.RequestScoped;
|
|||
public class WorkingPaperItemImExporter
|
||||
extends AbstractContentItemImExporter<WorkingPaperItem> {
|
||||
|
||||
@PostConstruct
|
||||
@Override
|
||||
protected void init() {
|
||||
protected void initContentItemImExporter() {
|
||||
super.init();
|
||||
addRequiredEntities(
|
||||
Set.of(
|
||||
|
|
|
|||
|
|
@ -14,6 +14,12 @@ import javax.enterprise.context.RequestScoped;
|
|||
public class SciDepartmentImExporter
|
||||
extends AbstractContentItemImExporter<SciDepartment>{
|
||||
|
||||
@Override
|
||||
protected void initContentItemImExporter() {
|
||||
// Nothing
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Class<SciDepartment> getEntityClass() {
|
||||
return SciDepartment.class;
|
||||
|
|
|
|||
|
|
@ -18,6 +18,11 @@ import javax.enterprise.context.RequestScoped;
|
|||
@Processes(SciProject.class)
|
||||
public class SciProjectImExporter extends AbstractContentItemImExporter<SciProject>{
|
||||
|
||||
@Override
|
||||
protected void initContentItemImExporter() {
|
||||
// Nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<SciProject> getEntityClass() {
|
||||
return SciProject.class;
|
||||
|
|
|
|||
Loading…
Reference in New Issue