Class EntityExportHelper


  • public class EntityExportHelper
    extends Object
    Helper class for generating StreamedContent from entities
    Author:
    XIMA MEDIA GmbH
    • 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
        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.