Skip to content

Conversation

@jinmeiliao
Copy link
Member

… Resource and Operation.

  • still checks validity of the resource/operation except wildcards.
  • update tests

Copy link
Contributor

@jdeppe-pivotal jdeppe-pivotal left a 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)
Copy link
Contributor

@jdeppe-pivotal jdeppe-pivotal Jan 18, 2018

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)
Copy link
Contributor

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))
Copy link
Contributor

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))
Copy link
Contributor

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
@jinmeiliao jinmeiliao merged commit fccdd15 into apache:develop Jan 18, 2018
@jinmeiliao jinmeiliao deleted the permissions branch January 23, 2018 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants