Class ProductArchiveRestMapper

java.lang.Object
de.dlr.proseo.archivemgr.rest.model.ProductArchiveRestMapper

public class ProductArchiveRestMapper extends Object
Rest - Model Mapper for Product Archive
Author:
Denys Chaykovskiy
  • Field Details

    • mission

      String mission
      Mission
  • Constructor Details

    • ProductArchiveRestMapper

      public ProductArchiveRestMapper(RestProductArchive restArchive, String mission)
      Constructor with restArchive parameter
      Parameters:
      restArchive - rest archive
      mission - the mission code
  • Method Details

    • get

      public RestProductArchive get()
      Gets checked in constructor rest product archive
      Returns:
      rest product archive
    • toModel

      public ProductArchive toModel() throws IllegalArgumentException
      Convert a REST ProductArchive into a prosEO model ProductArchive AvailableProductClasses will not be set here, the field will be null
      Returns:
      model Product Archive
      Throws:
      IllegalArgumentException - if the REST Product Archive has a wrong archive type