Class TypeSystemExportJob

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable

    @Deprecated
    public class TypeSystemExportJob
    extends GeneratedTypeSystemExportJob
    Deprecated.
    since 4.3
    The TypeSystemExportJob creates a dump of the type system and stores the dump into the JobMedia of the specified CronJob as a zip file.

    The items.xml and the localization files of the hybris Platform core types are stored in the /core directory in the zip file. For each configured extension the corresponding files are stored in separated directories (/EXTENSIONNAME).

    See Also:
    Serialized Form
    • Constructor Detail

      • TypeSystemExportJob

        public TypeSystemExportJob()
        Deprecated.
    • Method Detail

      • undoCronJob

        public CronJob.CronJobResult undoCronJob​(CronJob cronJob)
        Deprecated.
        Removes the assigned JobMedia of the specified CronJob.
        Overrides:
        undoCronJob in class Job
        Parameters:
        cronJob - the CronJob which should undone
        Returns:
        the CronJobResult of the undo-process
      • prepareMedia

        protected JobMedia prepareMedia​(CronJob cronJob)
        Deprecated.
        Prepares the JobMedia of the specified Cronjob for the execution of the TypeSystemExportJob.

        The preparation consists of the following steps:

        • If no JobMedia is assigned, a new JobMedia is created.
        • The mimetype of the JobMedia is set to "application/zip"
        • The real filename is set to "yyyyMMdd_hhmmss.zip"
        Parameters:
        cronJob - the CronJob, whose JobMedia should be prepared
        Returns:
        the prepared JobMedia
      • canPerform

        protected boolean canPerform​(CronJob cronJob)
        Deprecated.
        Returns true if the TypeSystemExportJob can be performed using the specified CronJob. The TypeSystemExportJob can be performed if there is JobMedia assigned to the specified CronJob, which is not locked.
        Overrides:
        canPerform in class Job
        Parameters:
        cronJob - which should be performed
        Returns:
        true if the TypeSystemExportJob can be performed using the specified CronJob
        See Also:
        Job.canPerform(de.hybris.platform.cronjob.jalo.CronJob)
      • doExport

        protected void doExport​(MediaProcessCronJob cronJob,
                                JaloSession jaloSession,
                                java.util.zip.ZipOutputStream zos,
                                org.znerd.xmlenc.XMLOutputter xout,
                                java.lang.String extensionName,
                                java.util.Collection languages)
        Deprecated.
        Exports the type configuration of the specified extension.
        Parameters:
        cronJob - the CronJob, which is used for the export
        jaloSession - the JaloSession, which is used for the export
        zos - the ZipOutputStream, which is used to store the export result
        xout - the XMLOutputter, which is used to create the items.xml
        extensionName - the name of the extension, which should be exported. If null is specified, the core types will be exported
        languages - a Collection of all Languages which should be exported