All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.cli.completers.RolesCompleter Maven / Gradle / Ivy

package org.infinispan.cli.completers;

import java.io.IOException;
import java.util.Collection;

import org.infinispan.cli.Context;
import org.infinispan.cli.connection.Connection;

/**
 * @author Tristan Tarrant <[email protected]>
 * @since 14.0
 **/
public class RolesCompleter extends ListCompleter {

   @Override
   Collection getAvailableItems(Context context) throws IOException {
      Connection connection = context.getConnection();
      return connection.getRoles();
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy