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