1 package org.onap.portal.dao.ep;
4 import java.util.Optional;
5 import org.onap.portal.domain.db.ep.EpWidgetCatalogParameter;
6 import org.springframework.data.jpa.repository.JpaRepository;
7 import org.springframework.data.jpa.repository.Query;
8 import org.springframework.data.repository.query.Param;
9 import org.springframework.stereotype.Repository;
10 import org.springframework.transaction.annotation.Transactional;
14 public interface EpWidgetCatalogParameterDao extends JpaRepository<EpWidgetCatalogParameter, Long> {
17 Optional<List<EpWidgetCatalogParameter>> retrieveByParamId(@Param("PARAMID") Long paramId);
20 void deleteWidgetCatalogParameter(@Param("PARAMID") Long paramId);
23 Optional<List<EpWidgetCatalogParameter>> getUserParamById(@Param("WIDGETID") Long widgetId,
24 @Param("USERID") Long userId, @Param("PARAMID") Long paramId);