use of org.apache.nifi.toolkit.cli.impl.result.CurrentUserResult in project nifi by apache.
the class CurrentUser method doExecute.
@Override
public CurrentUserResult doExecute(final NiFiRegistryClient client, final Properties properties) throws IOException, NiFiRegistryException {
final UserClient userClient = client.getUserClient();
final org.apache.nifi.registry.authorization.CurrentUser currentUser = userClient.getAccessStatus();
return new CurrentUserResult(getResultType(properties), currentUser);
}
Aggregations