Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Commit b608716

Browse files
committed
Routes change for upload/download my data
partial support of (application local) href generation
1 parent 051d9da commit b608716

File tree

3 files changed

+111
-74
lines changed

3 files changed

+111
-74
lines changed

src/main/java/org/energyos/espi/common/domain/Routes.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ public class Routes {
5858
public static final String ROOT_SUBSCRIPTION_MEMBER = "/espi/1_1/resource/Subscription/{subscriptionId}";
5959
public static final String ROOT_APPLICATION_INFORMATION_COLLECTION = "/espi/1_1/resource/ApplicationInformation";
6060
public static final String ROOT_APPLICATION_INFORMATION_MEMBER = "/espi/1_1/resource/ApplicationInformation/{applicationInformationId}";
61-
public static final String ROOT_RETAIL_CUSTOMER_COLLECTION = "/espi/1_1/resource/RetailCustomer/";
62-
public static final String ROOT_RETAIL_CUSTOMER_MEMBER = "/espi/1_1/resource/RetailCustomer/{retailCustomerId}";
6361

6462
// patterns for RESTful xpath access to management entities
6563
//
@@ -101,6 +99,12 @@ public class Routes {
10199
public static final String ELECTRIC_POWER_USAGE_SUMMARY_COLLECTION = "/espi/1_1/resource/RetailCustomer/{retailCustomerId}/UsagePoint/{usagePointId}/ElectricPowerUsageSummary";
102100
public static final String ELECTRIC_POWER_USAGE_SUMMARY_MEMBER = "/espi/1_1/resource/RetailCustomer/{retailCustomerId}/UsagePoint/{usagePointId}/ElectricPowerUsageSummary/{electricPowerUsageSummaryId}";
103101

102+
// patterns for RESTful RetailCustomer services
103+
public static final String RETAIL_CUSTOMER_COLLECTION = "/espi/1_1/resource/RetailCustomer";
104+
public static final String RETAIL_CUSTOMER_MEMBER = "/espi/1_1/resource/RetailCustomer/{retailCustomerId}";
105+
public static final String RETAIL_CUSTOMER_MEMBER_DOWNLOAD_MY_DATA = "/espi/1_1/resource/RetailCustomer/{retailCustomerId}/DownloadMyData";
106+
public static final String RETAIL_CUSTOMER_MEMBER_UPLOAD_MY_DATA = "/espi/1_1/resource/RetailCustomer/{retailCustomerId}/UploadMyData";
107+
104108
public static String buildDataCustodianRESTUsagePointCollection(String retailCustomerHashedId) {
105109
return DATA_CUSTODIAN_REST_USAGE_POINT_COLLECTION.replace("{retailCustomerId}", retailCustomerHashedId);
106110
}

src/main/java/org/energyos/espi/common/service/ExportService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void exportMeterReadings(Long retailCustomerId, Long usagePointId,
9696
void exportReadingType(Long readingTypeId, OutputStream outputStream, ExportFilter exportFilter) throws IOException;
9797

9898
// - XPath form
99-
public void exportReadingType(Long retailCustomerId, Long usagePointId, Long meterTypeId, Long readingTypeId,
99+
public void exportReadingType(Long retailCustomerId, Long usagePointId, Long meterReadingId, Long readingTypeId,
100100
OutputStream stream, ExportFilter exportFilter) throws IOException;
101101

102102
public void exportReadingTypes(Long retailCustomerId, Long usagePointId,

0 commit comments

Comments
 (0)