Skip to content
Permalink
Browse files
Merge pull request #57 from isururanawaka/sharing_service_impl
Add notification service rest endpoints
  • Loading branch information
isururanawaka committed Sep 6, 2021
2 parents 501b613 + d53a923 commit 11d1f2438e8ff5d54c6b7ae79ba89ef0e2858388
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
@@ -187,14 +187,10 @@ public void run() {
shareResourcesWithUsers(Collections.singletonList(resourceList.get(resourceList.size() - 1)),
adminUser, owner, "VIEWER");

shareResourcesWithGroups(Collections.singletonList(resourceList.get(resourceList.size() - 1)), adminUser,
shareResourcesWithGroups(Collections.singletonList(resourceList.get(0)), adminUser,
configuration.getTenantConfigs().getAdminGroup(),
"EDITOR");

// shareResourcesWithGroups(Collections.singletonList(resourceList.get(resourceList.size() - 1)), adminUser,
// configuration.getTenantConfigs().getUserGroup(),
// "VIEWER");

GenericResource resourceObj = resourceList.get(resourceList.size() - 1);

Optional<AnyStoragePreference> sourceSPOp = this.drmsConnector.getStoragePreference(
@@ -83,14 +83,26 @@ message NotificationStatusListResponse {
service NotificationService {

rpc registerNotification (NotificationRegisterRequest) returns (NotificationRegisterResponse) {
option (google.api.http) = {
post: "/v1.0/api/dataorch/notification"
};
}

rpc listNotifications (NotificationListRequest) returns (NotificationListResponse) {
option (google.api.http) = {
get: "/v1.0/api/dataorch/notifications"
};
}

rpc registerNotificationStatus (NotificationStatusRegisterRequest) returns (NotificationStatusRegisterResponse) {
option (google.api.http) = {
post: "/v1.0/api/dataorch/notification/status"
};
}

rpc listNotificationStatus(NotificationStatusListRequest) returns (NotificationStatusListResponse) {
option (google.api.http) = {
get: "/v1.0/api/dataorch/notification/status"
};
}
}
Binary file not shown.

0 comments on commit 11d1f24

Please sign in to comment.