@Test public void testBuildRequest() { }
AuthorizationSession buildRequest() { verifyBuildable(); zapAuthorizationState(); RangerAccessResourceImpl resource = new RangerHBaseResource(); if (isNameSpaceOperation() && StringUtils.isNotBlank(_otherInformation)) { resource.setValue(RangerHBaseResource.KEY_TABLE, _otherInformation + RangerHBaseResource.NAMESPACE_SEPARATOR); } else { resource.setValue(RangerHBaseResource.KEY_TABLE, _table); } resource.setValue(RangerHBaseResource.KEY_COLUMN_FAMILY, _columnFamily); resource.setValue(RangerHBaseResource.KEY_COLUMN, _column); String user = _userUtils.getUserAsString(_user); RangerAccessRequestImpl request = new RangerAccessRequestImpl(resource, _access, user, _groups, null); request.setAction(_operation); request.setRequestData(_otherInformation); request.setClientIPAddress(_remoteAddress); request.setResourceMatchingScope(_resourceMatchingScope); request.setAccessTime(new Date()); _request = request; if (LOG.isDebugEnabled()) { LOG.debug("Built request: " + request.toString()); } return this; }
AuthorizationSession { AuthorizationSession buildRequest() { verifyBuildable(); zapAuthorizationState(); RangerAccessResourceImpl resource = new RangerHBaseResource(); if (isNameSpaceOperation() && StringUtils.isNotBlank(_otherInformation)) { resource.setValue(RangerHBaseResource.KEY_TABLE, _otherInformation + RangerHBaseResource.NAMESPACE_SEPARATOR); } else { resource.setValue(RangerHBaseResource.KEY_TABLE, _table); } resource.setValue(RangerHBaseResource.KEY_COLUMN_FAMILY, _columnFamily); resource.setValue(RangerHBaseResource.KEY_COLUMN, _column); String user = _userUtils.getUserAsString(_user); RangerAccessRequestImpl request = new RangerAccessRequestImpl(resource, _access, user, _groups, null); request.setAction(_operation); request.setRequestData(_otherInformation); request.setClientIPAddress(_remoteAddress); request.setResourceMatchingScope(_resourceMatchingScope); request.setAccessTime(new Date()); _request = request; if (LOG.isDebugEnabled()) { LOG.debug("Built request: " + request.toString()); } return this; } }
AuthorizationSession { AuthorizationSession buildRequest() { verifyBuildable(); zapAuthorizationState(); RangerAccessResourceImpl resource = new RangerHBaseResource(); if (isNameSpaceOperation() && StringUtils.isNotBlank(_otherInformation)) { resource.setValue(RangerHBaseResource.KEY_TABLE, _otherInformation + RangerHBaseResource.NAMESPACE_SEPARATOR); } else { resource.setValue(RangerHBaseResource.KEY_TABLE, _table); } resource.setValue(RangerHBaseResource.KEY_COLUMN_FAMILY, _columnFamily); resource.setValue(RangerHBaseResource.KEY_COLUMN, _column); String user = _userUtils.getUserAsString(_user); RangerAccessRequestImpl request = new RangerAccessRequestImpl(resource, _access, user, _groups, null); request.setAction(_operation); request.setRequestData(_otherInformation); request.setClientIPAddress(_remoteAddress); request.setResourceMatchingScope(_resourceMatchingScope); request.setAccessTime(new Date()); _request = request; if (LOG.isDebugEnabled()) { LOG.debug("Built request: " + request.toString()); } return this; } AuthorizationSession(RangerBasePlugin authorizer); }
AuthorizationSession { AuthorizationSession buildRequest() { verifyBuildable(); zapAuthorizationState(); RangerAccessResourceImpl resource = new RangerHBaseResource(); if (isNameSpaceOperation() && StringUtils.isNotBlank(_otherInformation)) { resource.setValue(RangerHBaseResource.KEY_TABLE, _otherInformation + RangerHBaseResource.NAMESPACE_SEPARATOR); } else { resource.setValue(RangerHBaseResource.KEY_TABLE, _table); } resource.setValue(RangerHBaseResource.KEY_COLUMN_FAMILY, _columnFamily); resource.setValue(RangerHBaseResource.KEY_COLUMN, _column); String user = _userUtils.getUserAsString(_user); RangerAccessRequestImpl request = new RangerAccessRequestImpl(resource, _access, user, _groups, null); request.setAction(_operation); request.setRequestData(_otherInformation); request.setClientIPAddress(_remoteAddress); request.setResourceMatchingScope(_resourceMatchingScope); request.setAccessTime(new Date()); _request = request; if (LOG.isDebugEnabled()) { LOG.debug("Built request: " + request.toString()); } return this; } AuthorizationSession(RangerBasePlugin authorizer);  }
AuthorizationSession { AuthorizationSession buildRequest() { verifyBuildable(); zapAuthorizationState(); RangerAccessResourceImpl resource = new RangerHBaseResource(); if (isNameSpaceOperation() && StringUtils.isNotBlank(_otherInformation)) { resource.setValue(RangerHBaseResource.KEY_TABLE, _otherInformation + RangerHBaseResource.NAMESPACE_SEPARATOR); } else { resource.setValue(RangerHBaseResource.KEY_TABLE, _table); } resource.setValue(RangerHBaseResource.KEY_COLUMN_FAMILY, _columnFamily); resource.setValue(RangerHBaseResource.KEY_COLUMN, _column); String user = _userUtils.getUserAsString(_user); RangerAccessRequestImpl request = new RangerAccessRequestImpl(resource, _access, user, _groups, null); request.setAction(_operation); request.setRequestData(_otherInformation); request.setClientIPAddress(_remoteAddress); request.setResourceMatchingScope(_resourceMatchingScope); request.setAccessTime(new Date()); _request = request; if (LOG.isDebugEnabled()) { LOG.debug("Built request: " + request.toString()); } return this; } AuthorizationSession(RangerBasePlugin authorizer);   }