Search in sources :

Example 1 with CurrentUserResult

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);
}
Also used : CurrentUserResult(org.apache.nifi.toolkit.cli.impl.result.CurrentUserResult) UserClient(org.apache.nifi.registry.client.UserClient)

Aggregations

UserClient (org.apache.nifi.registry.client.UserClient)1 CurrentUserResult (org.apache.nifi.toolkit.cli.impl.result.CurrentUserResult)1