Search in sources :

Example 1 with CurrentUserEntityResult

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);
}
Also used : CurrentUserEntity(org.apache.nifi.web.api.entity.CurrentUserEntity) CurrentUserEntityResult(org.apache.nifi.toolkit.cli.impl.result.CurrentUserEntityResult) FlowClient(org.apache.nifi.toolkit.cli.impl.client.nifi.FlowClient)

Aggregations

FlowClient (org.apache.nifi.toolkit.cli.impl.client.nifi.FlowClient)1 CurrentUserEntityResult (org.apache.nifi.toolkit.cli.impl.result.CurrentUserEntityResult)1 CurrentUserEntity (org.apache.nifi.web.api.entity.CurrentUserEntity)1