SbloodyS commented on code in PR #12048:
URL:
https://github.com/apache/dolphinscheduler/pull/12048#discussion_r1005256866
##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/UsersServiceImpl.java:
##########
@@ -685,6 +778,139 @@ public Map<String, Object> revokeProject(User loginUser,
int userId, long projec
return result;
}
+ /**
+ * Change the resource ids from String to Set
+ *
+ * @param ResourceIds resource id array that need authorize
+ * @return Integer Set of resource ids
+ */
+ private Set<Integer> getNeedAuthorizeResIds(String ResourceIds) {
+ Set<Integer> needAuthorizeResIds = new HashSet<>();
+ if (StringUtils.isNotBlank(ResourceIds)) {
+ String[] resourceFullIdArr = ResourceIds.split(",");
Review Comment:
```suggestion
String[] resourceFullIdArr = ResourceIds.split(Constants.COMMA);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]