Class TypeSystemExportJob

All Implemented Interfaces:
Serializable, Comparable

@Deprecated(since="4.3", forRemoval=false) 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:
  • Constructor Details

    • TypeSystemExportJob

      public TypeSystemExportJob()
      Deprecated.
  • Method Details

    • canUndo

      protected boolean canUndo(CronJob cronJob)
      Deprecated.
      Returns always true, because the TypeSystemExportJob supports the undo-process.
      Overrides:
      canUndo in class Job
      Parameters:
      cronJob - the CronJob, which should be undone
      Returns:
      true
      See Also:
    • 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:
    • performCronJob

      public CronJob.CronJobResult performCronJob(CronJob forCronJob)
      Deprecated.
      Starts the execution of the TypeSystemExportJob using the specified CronJob.
      Specified by:
      performCronJob in class Job
      Parameters:
      forCronJob - which will be used to perform the Job
      Returns:
      the CronJobResult of the execution
      See Also:
    • doExport

      protected void doExport(MediaProcessCronJob cronJob, JaloSession jaloSession, ZipOutputStream zos, org.znerd.xmlenc.XMLOutputter xout, String extensionName, 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