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