overload saveWidgetType, getWidgetTypes, getBundleWidgetTypesInfos methods
This commit is contained in:
parent
431d8d92e2
commit
523651b71c
@ -2767,13 +2767,24 @@ public class RestClient implements Closeable {
|
||||
}
|
||||
|
||||
public WidgetTypeDetails saveWidgetType(WidgetTypeDetails widgetTypeDetails) {
|
||||
return restTemplate.postForEntity(baseURL + "/api/widgetType", widgetTypeDetails, WidgetTypeDetails.class).getBody();
|
||||
return saveWidgetType(widgetTypeDetails, null);
|
||||
}
|
||||
|
||||
public WidgetTypeDetails saveWidgetType(WidgetTypeDetails widgetTypeDetails, Boolean updateExistingByFqn) {
|
||||
if (updateExistingByFqn == null) {
|
||||
return restTemplate.postForEntity(baseURL + "/api/widgetType", widgetTypeDetails, WidgetTypeDetails.class).getBody();
|
||||
}
|
||||
return restTemplate.postForEntity(baseURL + "/api/widgetType?updateExistingByFqn={updateExistingByFqn}", widgetTypeDetails, WidgetTypeDetails.class, updateExistingByFqn).getBody();
|
||||
}
|
||||
|
||||
public void deleteWidgetType(WidgetTypeId widgetTypeId) {
|
||||
restTemplate.delete(baseURL + "/api/widgetType/{widgetTypeId}", widgetTypeId.getId());
|
||||
}
|
||||
|
||||
public PageData<WidgetTypeInfo> getWidgetTypes(PageLink pageLink) {
|
||||
return getWidgetTypes(pageLink, null, null, null, null);
|
||||
}
|
||||
|
||||
public PageData<WidgetTypeInfo> getWidgetTypes(PageLink pageLink, Boolean tenantOnly, Boolean fullSearch,
|
||||
DeprecatedFilter deprecatedFilter, List<String> widgetTypeList) {
|
||||
Map<String, String> params = new HashMap<>();
|
||||
@ -2856,6 +2867,10 @@ public class RestClient implements Closeable {
|
||||
bundleAlias).getBody();
|
||||
}
|
||||
|
||||
public PageData<WidgetTypeInfo> getBundleWidgetTypesInfos(WidgetsBundleId widgetsBundleId, PageLink pageLink) {
|
||||
return getBundleWidgetTypesInfos(widgetsBundleId, pageLink, null, null, null, null);
|
||||
}
|
||||
|
||||
public PageData<WidgetTypeInfo> getBundleWidgetTypesInfos(WidgetsBundleId widgetsBundleId, PageLink pageLink,
|
||||
Boolean tenantOnly, Boolean fullSearch,
|
||||
DeprecatedFilter deprecatedFilter, List<String> widgetTypeList) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user