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) {
|
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) {
|
public void deleteWidgetType(WidgetTypeId widgetTypeId) {
|
||||||
restTemplate.delete(baseURL + "/api/widgetType/{widgetTypeId}", widgetTypeId.getId());
|
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,
|
public PageData<WidgetTypeInfo> getWidgetTypes(PageLink pageLink, Boolean tenantOnly, Boolean fullSearch,
|
||||||
DeprecatedFilter deprecatedFilter, List<String> widgetTypeList) {
|
DeprecatedFilter deprecatedFilter, List<String> widgetTypeList) {
|
||||||
Map<String, String> params = new HashMap<>();
|
Map<String, String> params = new HashMap<>();
|
||||||
@ -2856,6 +2867,10 @@ public class RestClient implements Closeable {
|
|||||||
bundleAlias).getBody();
|
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,
|
public PageData<WidgetTypeInfo> getBundleWidgetTypesInfos(WidgetsBundleId widgetsBundleId, PageLink pageLink,
|
||||||
Boolean tenantOnly, Boolean fullSearch,
|
Boolean tenantOnly, Boolean fullSearch,
|
||||||
DeprecatedFilter deprecatedFilter, List<String> widgetTypeList) {
|
DeprecatedFilter deprecatedFilter, List<String> widgetTypeList) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user