Skip to content
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

Permission visitor normalization #2035

Merged
merged 7 commits into from
Apr 28, 2021
Merged

Conversation

Chandrasekar-Rajasekar
Copy link
Collaborator

Description

Add Normalization visitor for Permission Expression class.
Change PermissionToFilterExpressionVisitor to work on normalized expression.

How Has This Been Tested?

Unit Test

License

I confirm that this contribution is made under an Apache 2.0 license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

aklish
aklish previously approved these changes Apr 28, 2021

package com.yahoo.elide.core.security.permissions.expressions;

public interface ExpressionVisitor<T> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add interface comments.

import com.yahoo.elide.core.security.permissions.expressions.NotExpression;
import com.yahoo.elide.core.security.permissions.expressions.OrExpression;

public class PermissionExpressionNormalizationVisitor implements ExpressionVisitor<Expression> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add comments.

@aklish aklish merged commit e64bd8e into master Apr 28, 2021
@aklish aklish deleted the permission_visitor_normalization branch April 28, 2021 19:20
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