boolean hasType = AuthorizationUtil.authorizeAs(authorizingUser, new Callable<Boolean>() { @Override public Boolean call() throws Exception { AuthorizationUtil.authorizeAs(authorizingUser, new Callable<Void>() { @Override public Void call() throws Exception {
props.put(Constants.Security.PRINCIPAL, ownerPrincipal.getPrincipal()); AuthorizationUtil.authorizeAs(authorizingUser, new Callable<Void>() { @Override public Void call() throws Exception {
boolean hasType = AuthorizationUtil.authorizeAs(authorizingUser, new Callable<Boolean>() { @Override public Boolean call() throws Exception { AuthorizationUtil.authorizeAs(authorizingUser, new Callable<Void>() { @Override public Void call() throws Exception {
final DatasetCreationSpec instanceSpec = instanceEntry.getValue(); DatasetSpecification existingSpec = AuthorizationUtil.authorizeAs(authorizingUser, new Callable<DatasetSpecification>() { @Override public DatasetSpecification call() throws Exception { if (existingSpec == null) { LOG.info("Adding dataset instance: {}", instanceName); AuthorizationUtil.authorizeAs(authorizingUser, new Callable<Void>() { @Override public Void call() throws Exception { AuthorizationUtil.authorizeAs(authorizingUser, new Callable<Void>() { @Override public Void call() throws Exception {
final DatasetCreationSpec instanceSpec = instanceEntry.getValue(); DatasetSpecification existingSpec = AuthorizationUtil.authorizeAs(authorizingUser, new Callable<DatasetSpecification>() { @Override public DatasetSpecification call() throws Exception { if (existingSpec == null) { LOG.info("Adding dataset instance: {}", instanceName); AuthorizationUtil.authorizeAs(authorizingUser, new Callable<Void>() { @Override public Void call() throws Exception { AuthorizationUtil.authorizeAs(authorizingUser, new Callable<Void>() { @Override public Void call() throws Exception {
final DatasetTypeId typeId = namespaceId.datasetType(typeName); DatasetTypeMeta typeMeta = AuthorizationUtil.authorizeAs(authorizingUser, new Callable<DatasetTypeMeta>() { @Override public DatasetTypeMeta call() throws Exception {
final DatasetTypeId typeId = namespaceId.datasetType(typeName); DatasetTypeMeta typeMeta = AuthorizationUtil.authorizeAs(authorizingUser, new Callable<DatasetTypeMeta>() { @Override public DatasetTypeMeta call() throws Exception {
AuthorizationUtil.getAppAuthorizingUser(ownerAdmin, authenticationContext, appId, ownerPrincipal); DatasetSpecification existingSpec = AuthorizationUtil.authorizeAs(authorizingUser, new Callable<DatasetSpecification>() { @Override public DatasetSpecification call() throws Exception {
AuthorizationUtil.getAppAuthorizingUser(ownerAdmin, authenticationContext, appId, ownerPrincipal); DatasetSpecification existingSpec = AuthorizationUtil.authorizeAs(authorizingUser, new Callable<DatasetSpecification>() { @Override public DatasetSpecification call() throws Exception {