Package de.xima.fc.gui.transfer
Class EntityExportHelper
- java.lang.Object
-
- de.xima.fc.gui.transfer.EntityExportHelper
-
public class EntityExportHelper extends Object
Helper class for generatingStreamedContent
from entities- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T extends de.xima.cmn.dao.interfaces.IEntity<Long>>
org.primefaces.model.StreamedContentgetStreamedContent(IEntityExporter<T> exporter, Benutzer user)
Deprecated.static <T extends de.xima.cmn.dao.interfaces.IEntity<Long>>
org.primefaces.model.StreamedContentgetStreamedContent(IEntityExporter<T> exporter, IUser user)
static org.primefaces.model.StreamedContent
getV1ProjectExport(IEntityContext ec, Projekt project, Benutzer user)
-
-
-
Method Detail
-
getStreamedContent
@Deprecated public static final <T extends de.xima.cmn.dao.interfaces.IEntity<Long>> org.primefaces.model.StreamedContent getStreamedContent(IEntityExporter<T> exporter, Benutzer user) throws Exception
Deprecated.- Type Parameters:
T
- Type of the entity to export.- Parameters:
exporter
- Exporter to use for serializing the entity.user
- Current user who initiated the export.- Returns:
- The serialized entityt as a streamed content instance.
- Throws:
Exception
- When the export could not be performed.
-
getStreamedContent
public static final <T extends de.xima.cmn.dao.interfaces.IEntity<Long>> org.primefaces.model.StreamedContent getStreamedContent(IEntityExporter<T> exporter, IUser user) throws Exception
- Type Parameters:
T
- Type of the entity to export.- Parameters:
exporter
- Exporter to use for serializing the entity.user
- Current user who initiated the export.- Returns:
- The serialized entityt as a streamed content instance.
- Throws:
Exception
- When the export could not be performed.
-
getV1ProjectExport
public static final org.primefaces.model.StreamedContent getV1ProjectExport(IEntityContext ec, Projekt project, Benutzer user) throws Exception
- Throws:
Exception
-
-