Package de.dlr.proseo.api.prip.odata
Klasse ProductUtil
java.lang.Object
de.dlr.proseo.api.prip.odata.ProductUtil
Utility class to convert product objects from prosEO database model to PRIP (OData) REST API
- Autor:
- Dr. Thomas Bassler
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic 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
-
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 productURISyntaxException
- if a valid URI cannot be generated from any product UUID
-