Java Code Examples for org.apache.kylin.rest.request.AccessRequest#setPermission()

The following examples show how to use org.apache.kylin.rest.request.AccessRequest#setPermission() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AccessControllerTest.java    From kylin-on-parquet-v2 with Apache License 2.0 5 votes vote down vote up
private AccessRequest getAccessRequest(String role, String permission, boolean isPrincipal) {
    AccessRequest accessRequest = new AccessRequest();
    accessRequest.setPermission(permission);
    accessRequest.setSid(role);
    accessRequest.setPrincipal(isPrincipal);
    return accessRequest;
}
 
Example 2
Source File: AclUtilTest.java    From kylin-on-parquet-v2 with Apache License 2.0 5 votes vote down vote up
private AccessRequest getAccessRequest(String role, String permission) {
    AccessRequest accessRequest = new AccessRequest();
    accessRequest.setPermission(permission);
    accessRequest.setSid(role);
    accessRequest.setPrincipal(true);
    return accessRequest;
}
 
Example 3
Source File: AccessControllerTest.java    From kylin with Apache License 2.0 5 votes vote down vote up
private AccessRequest getAccessRequest(String role, String permission, boolean isPrincipal) {
    AccessRequest accessRequest = new AccessRequest();
    accessRequest.setPermission(permission);
    accessRequest.setSid(role);
    accessRequest.setPrincipal(isPrincipal);
    return accessRequest;
}
 
Example 4
Source File: AclUtilTest.java    From kylin with Apache License 2.0 5 votes vote down vote up
private AccessRequest getAccessRequest(String role, String permission) {
    AccessRequest accessRequest = new AccessRequest();
    accessRequest.setPermission(permission);
    accessRequest.setSid(role);
    accessRequest.setPrincipal(true);
    return accessRequest;
}