-
Notifications
You must be signed in to change notification settings - Fork 695
GEODE-4310: allow ResourcePermission to take Strings as arguments for… #1300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
jdeppe-pivotal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approval pending minor OCD changes
| this.target = StringUtils.stripStart(target, Region.SEPARATOR); | ||
| } | ||
| if (key != null) { | ||
| if (key != null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a block around the condition even when it's just one line.
| } | ||
|
|
||
| private String parsePart(String part, UnaryOperator<String> operator) { | ||
| if (part == null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto previous
| */ | ||
| public Resource getResource() { | ||
| return resource; | ||
| if (ALL.equals(resource)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto previous
| * Returns the operation, could be either ALL, NULL, MANAGE, WRITE or READ | ||
| */ | ||
| public Operation getOperation() { | ||
| if (ALL.equals(operation)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto previous
… Resource and Operation. * still checks validity of the resource/operation except wildcards. * update tests
a81f4ee to
2dae31d
Compare
… Resource and Operation.