Klasse ProductUtil

java.lang.Object
de.dlr.proseo.api.prip.odata.ProductUtil

public class ProductUtil extends Object
Utility class to convert product objects from prosEO database model to PRIP (OData) REST API
Autor:
Dr. Thomas Bassler
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    static org.apache.olingo.commons.api.data.Entity
    toPripProduct(Product modelProduct)
    Create a PRIP interface product from a prosEO interface product; when setting PRIP product attributes the product metadata attributes are overridden by product parameters, if a product parameter with the intended attribute name exists

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • ProductUtil

      public ProductUtil()
  • Methodendetails

    • toPripProduct

      public static org.apache.olingo.commons.api.data.Entity toPripProduct(Product modelProduct) throws IllegalArgumentException, URISyntaxException
      Create a PRIP interface product from a prosEO interface product; when setting PRIP product attributes the product metadata attributes are overridden by product parameters, if a product parameter with the intended attribute name exists
      Parameter:
      modelProduct - the prosEO model product to convert
      Gibt zurück:
      an OData entity object representing the prosEO interface product
      Löst aus:
      IllegalArgumentException - if any mandatory information is missing from the prosEO interface product
      URISyntaxException - if a valid URI cannot be generated from any product UUID