Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

some fixes

  • Loading branch information...
commit 0bb1d77f2bd3c59560409297090d0da76523bdda 1 parent f225a1e
@woorea authored
View
22 keystone-client/src/main/java/org/openstack/keystone/api/ShowUser.java
@@ -0,0 +1,22 @@
+package org.openstack.keystone.api;
+
+import javax.ws.rs.client.WebTarget;
+import javax.ws.rs.core.MediaType;
+
+import org.openstack.keystone.KeystoneCommand;
+import org.openstack.keystone.model.User;
+
+public class ShowUser implements KeystoneCommand<User>{
+
+ private String id;
+
+ public ShowUser(String id) {
+ this.id = id;
+ }
+
+ @Override
+ public User execute(WebTarget target) {
+ return target.path("users").path(id).request(MediaType.APPLICATION_JSON).get(User.class);
+ }
+
+}
View
34 keystone-model/src/main/java/org/openstack/keystone/model/Role.java
@@ -10,6 +10,10 @@
private String id;
private String name;
+
+ private String description;
+
+ private String enabled;
/**
* @return the id
@@ -32,6 +36,32 @@ public void setName(String name) {
this.name = name;
}
-
-
+ /**
+ * @return the description
+ */
+ public String getDescription() {
+ return description;
+ }
+
+ /**
+ * @param description the description to set
+ */
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ /**
+ * @return the enabled
+ */
+ public String getEnabled() {
+ return enabled;
+ }
+
+ /**
+ * @param enabled the enabled to set
+ */
+ public void setEnabled(String enabled) {
+ this.enabled = enabled;
+ }
+
}
Please sign in to comment.
Something went wrong with that request. Please try again.