当前位置: 首页>>代码示例>>Java>>正文


Java User类代码示例

本文整理汇总了Java中com.woorea.openstack.keystone.model.User的典型用法代码示例。如果您正苦于以下问题:Java User类的具体用法?Java User怎么用?Java User使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


User类属于com.woorea.openstack.keystone.model包,在下文中一共展示了User类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: execute

import com.woorea.openstack.keystone.model.User; //导入依赖的package包/类
@Override
public void execute(Keystone keystone, CommandLine cmd) {
	
	final Users users = keystone.users().list().execute();
	
	Table t = new Table(new TableModel<User>(users.getList()) {

		@Override
		public Column[] getHeaders() {
			return new Column[]{
				new Column("id", 32, Column.ALIGN_LEFT),
				new Column("name", 10, Column.ALIGN_LEFT),
				new Column("email", 22, Column.ALIGN_LEFT),
				new Column("tenant", 32, Column.ALIGN_LEFT),
				new Column("enabled", 7, Column.ALIGN_LEFT)
			};
		}

		@Override
		public String[] getRow(User user) {
			return new String[]{
				user.getId(),
				user.getName(),
				user.getEmail(),
				user.getTenantId(),
				user.getEnabled().toString()
			};
		}
	});
	System.out.println(t.render());
}
 
开发者ID:CIETstudents,项目名称:openstack-maven-CIET-students,代码行数:32,代码来源:KeystoneUserList.java

示例2: showAllUsers

import com.woorea.openstack.keystone.model.User; //导入依赖的package包/类
private void showAllUsers() {
	System.out.println("\n\nUsers:\n");
	Users users = keystone.users().list().execute();
	for (User user: users) {
		printJson(user);
	}
}
 
开发者ID:jdutton,项目名称:java-openstack-sdk-cli-example,代码行数:8,代码来源:Cli.java

示例3: create

import com.woorea.openstack.keystone.model.User; //导入依赖的package包/类
public Create create(User user) {
	return new Create(user);
}
 
开发者ID:CIETstudents,项目名称:openstack-maven-CIET-students,代码行数:4,代码来源:UsersResource.java

示例4: update

import com.woorea.openstack.keystone.model.User; //导入依赖的package包/类
public Update update(String id, User user) {
	return new Update(id, user);
}
 
开发者ID:CIETstudents,项目名称:openstack-maven-CIET-students,代码行数:4,代码来源:UsersResource.java

示例5: Create

import com.woorea.openstack.keystone.model.User; //导入依赖的package包/类
public Create(User user) {
	super(client, HttpMethod.POST, "/users", Entity.json(user), User.class);
	this.user = user;
}
 
开发者ID:CIETstudents,项目名称:openstack-maven-CIET-students,代码行数:5,代码来源:UsersResource.java

示例6: Show

import com.woorea.openstack.keystone.model.User; //导入依赖的package包/类
public Show(String id) {
	super(client, HttpMethod.GET, new StringBuilder("/users/").append(id).toString(), null, User.class);
}
 
开发者ID:CIETstudents,项目名称:openstack-maven-CIET-students,代码行数:4,代码来源:UsersResource.java

示例7: Update

import com.woorea.openstack.keystone.model.User; //导入依赖的package包/类
public Update(String id, User user) {
	super(client, HttpMethod.PUT, new StringBuilder("/users/").append(id).toString(), Entity.json(user), User.class);
	this.user = user;
}
 
开发者ID:CIETstudents,项目名称:openstack-maven-CIET-students,代码行数:5,代码来源:UsersResource.java

示例8: getList

import com.woorea.openstack.keystone.model.User; //导入依赖的package包/类
/**
 * @return the list
 */
public List<User> getList() {
	return list;
}
 
开发者ID:CIETstudents,项目名称:openstack-maven-CIET-students,代码行数:7,代码来源:Users.java

示例9: iterator

import com.woorea.openstack.keystone.model.User; //导入依赖的package包/类
@Override
public Iterator<User> iterator() {
	return list.iterator();
}
 
开发者ID:CIETstudents,项目名称:openstack-maven-CIET-students,代码行数:5,代码来源:Users.java


注:本文中的com.woorea.openstack.keystone.model.User类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。