use of org.apache.nifi.toolkit.cli.impl.result.CurrentUserEntityResult in project nifi by apache.
the class CurrentUser method doExecute.
@Override
public CurrentUserEntityResult doExecute(NiFiClient client, Properties properties) throws NiFiClientException, IOException {
final FlowClient flowClient = client.getFlowClient();
final CurrentUserEntity currentUserEntity = flowClient.getCurrentUser();
return new CurrentUserEntityResult(getResultType(properties), currentUserEntity);
}
Aggregations