@ProxyEvent @Override public void onAdministrationPermissionRequest(RequestAdministrationPermissionEvent event) { ResourceAuthorizationRequestBuilderFactory.newBuilder() .forResource("/users") .get() .authorize( new CompositeAuthorizer(event.getHasAuthorization(), new ListUsersAuthorization())) .send(); }
@ProxyEvent @Override public void onAdministrationPermissionRequest(RequestAdministrationPermissionEvent event) { ResourceAuthorizationRequestBuilderFactory.newBuilder() .forResource(UriBuilders.PROFILES.create().build()) // .authorize( new CompositeAuthorizer( event.getHasAuthorization(), new ListProfilesAuthorization())) // .get() .send(); }