public void enableQueryAuthCheck(AuthorizationCheck authCheck) { List<String> authGroupIds = authCheck.getAuthGroupIds(); String authUserId = authCheck.getAuthUserId(); authCheck.setAuthorizationCheckEnabled(true); authCheck.setAuthGroupIds(filterAuthenticatedGroupIds(authGroupIds)); authCheck.setRevokeAuthorizationCheckEnabled(isRevokeAuthCheckEnabled(authUserId, authGroupIds)); }
public void enableQueryAuthCheck(AuthorizationCheck authCheck) { List<String> authGroupIds = authCheck.getAuthGroupIds(); String authUserId = authCheck.getAuthUserId(); authCheck.setAuthorizationCheckEnabled(true); authCheck.setAuthGroupIds(filterAuthenticatedGroupIds(authGroupIds)); authCheck.setRevokeAuthorizationCheckEnabled(isRevokeAuthCheckEnabled(authUserId, authGroupIds)); }
public void configureQuery(ListQueryParameterObject query) { AuthorizationCheck authCheck = query.getAuthCheck(); authCheck.getPermissionChecks().clear(); if(isAuthCheckExecuted()) { Authentication currentAuthentication = getCurrentAuthentication(); authCheck.setAuthUserId(currentAuthentication.getUserId()); authCheck.setAuthGroupIds(currentAuthentication.getGroupIds()); enableQueryAuthCheck(authCheck); } else { authCheck.setAuthorizationCheckEnabled(false); authCheck.setAuthUserId(null); authCheck.setAuthGroupIds(null); } }
public void configureQuery(ListQueryParameterObject query) { AuthorizationCheck authCheck = query.getAuthCheck(); authCheck.getPermissionChecks().clear(); if(isAuthCheckExecuted()) { Authentication currentAuthentication = getCurrentAuthentication(); authCheck.setAuthUserId(currentAuthentication.getUserId()); authCheck.setAuthGroupIds(currentAuthentication.getGroupIds()); enableQueryAuthCheck(authCheck); } else { authCheck.setAuthorizationCheckEnabled(false); authCheck.setAuthUserId(null); authCheck.setAuthGroupIds(null); } }
public void enableQueryAuthCheck(AuthorizationCheck authCheck) { List<String> authGroupIds = authCheck.getAuthGroupIds(); String authUserId = authCheck.getAuthUserId(); authCheck.setAuthorizationCheckEnabled(true); authCheck.setAuthGroupIds(filterAuthenticatedGroupIds(authGroupIds)); authCheck.setRevokeAuthorizationCheckEnabled(isRevokeAuthCheckEnabled(authUserId, authGroupIds)); }
public void configureQuery(ListQueryParameterObject query) { AuthorizationCheck authCheck = query.getAuthCheck(); authCheck.getPermissionChecks().clear(); if(isAuthCheckExecuted()) { Authentication currentAuthentication = getCurrentAuthentication(); authCheck.setAuthUserId(currentAuthentication.getUserId()); authCheck.setAuthGroupIds(currentAuthentication.getGroupIds()); enableQueryAuthCheck(authCheck); } else { authCheck.setAuthorizationCheckEnabled(false); authCheck.setAuthUserId(null); authCheck.setAuthGroupIds(null); } }