Package org.platformlayer.keystone.cli

Examples of org.platformlayer.keystone.cli.KeystoneCliContext


    if (prefix.length() < 3) {
      // Let's avoid returning thousands of users
      return null;
    }

    KeystoneCliContext keystoneContext = (KeystoneCliContext) context;
    UserDatabase userRepository = keystoneContext.getUserRepository();
    List<String> userIds = userRepository.listAllUserNames(prefix);
    addSuffix(userIds, " ");

    return userIds;
  }
View Full Code Here


    if (prefix.length() <= 2) {
      // Let's avoid returning thousands of projects
      return null;
    }

    KeystoneCliContext keystoneContext = (KeystoneCliContext) context;
    UserDatabase userRepository = keystoneContext.getUserRepository();
    List<String> userIds = userRepository.listAllProjectNames(prefix);
    addSuffix(userIds, " ");

    return userIds;
  }
View Full Code Here

TOP

Related Classes of org.platformlayer.keystone.cli.KeystoneCliContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.