Examples of KeystoneCliContext


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

Examples of org.platformlayer.keystone.cli.KeystoneCliContext

    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
Copyright © 2018 www.massapi.com. 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.