summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-widget-ms/widget-ms/src/main/java/org/openecomp/portalapp/widget/service/WidgetCatalogService.java
blob: e9bd0f33366da275acb6a50cb1fd4501910117f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package org.openecomp.portalapp.widget.service;

import java.util.List;

import org.openecomp.portalapp.widget.domain.WidgetCatalog;

public interface WidgetCatalogService {
	
	List<WidgetCatalog> getWidgetCatalog();
	
	List<WidgetCatalog> getUserWidgetCatalog(String loginName);

	WidgetCatalog getWidgetCatalog(Long widgetCatalogId);
	
	void deleteWidgetCatalog(long WidgetCatalogId);
	
	long saveWidgetCatalog(WidgetCatalog newWidgetCatalog);

	void updateWidgetCatalog(Long widgetCatalogId, WidgetCatalog newWidgetCatalog);	
	
	Long getServiceIdByWidget(Long widgetCatalogId);
	
	boolean getWidgetIdByName(String newWidgetName);
	
	List<WidgetCatalog> getWidgetsByServiceId(Long serviceId);
	

}