/*
- * Copyright (C) 2016, 2017 Roland Häder
+ * Copyright (C) 2016 - 2022 Free Software Foundation
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
package org.mxchange.jfinancials.beans.generic_product;
import java.io.Serializable;
-import java.util.List;
import javax.ejb.Local;
-import javax.faces.view.facelets.FaceletException;
-import org.mxchange.jproduct.exceptions.product.ProductNotFoundException;
-import org.mxchange.jproduct.model.product.Product;
/**
* An interface for products
@Local
public interface FinancialProductWebRequestController extends Serializable {
- /**
- * Checks whether the given product i18n key has already used.
- * <p>
- * @param productI18nKey Product i18n key
- * <p>
- * @return Whether the i18n key has been used
- */
- boolean isProductI18nKeyAdded (final String productI18nKey);
-
- /**
- * Some "getter" for a linked list of only available products
- * <p>
- * @return Only available products
- * <p>
- * @throws javax.faces.view.facelets.FaceletException If anything went wrong
- */
- List<Product> allProducts () throws FaceletException;
-
- /**
- * Returns a product instance (entity) for given primary key. If not found,
- * a proper exception is thrown.
- * <p>
- * @param productId Product id (primary key)
- * <p>
- * @return Product entity matching to primary key
- * <p>
- * @throws ProductNotFoundException If a product with given primary key
- * could not be found
- */
- Product findProductById (final Long productId) throws ProductNotFoundException;
-
}