Add methods to filter commercialfeatures from metadata

commercial-features1
prathabanKavin 2 years ago
parent 1689a9b8bd
commit d006820987

@ -84,7 +84,7 @@ public class CommercialFeatureServiceImpl implements CommercialFeatureService {
MetadataList metadataList = new MetadataList();
try {
MetadataManagementService metadataManagementService = DeviceMgtAPIUtils.getMetadataManagementService();
PaginationResult result = metadataManagementService.retrieveAllMetadata(request);
PaginationResult result = metadataManagementService.retrieveAllMetadataWithFilter(request, "commercialFeatures");
metadataList.setCount(result.getRecordsTotal());
metadataList.setMetadataList((List<Metadata>) result.getData());
return Response.status(Response.Status.OK).entity(metadataList).build();

Loading…
Cancel
Save