cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [13/28] git commit: updated refs/heads/auth-refactor to 03ad002
Date Tue, 12 Aug 2014 08:55:43 GMT
response: add command response for login and logout command classes

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/ef3a86ea
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ef3a86ea
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ef3a86ea

Branch: refs/heads/auth-refactor
Commit: ef3a86ea28c4c474e623ba37d783436d345c2091
Parents: 097211b
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Tue Aug 12 07:31:51 2014 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Tue Aug 12 09:19:43 2014 +0200

----------------------------------------------------------------------
 .../api/response/AuthenticationCmdResponse.java |  22 +++
 .../api/response/LoginCmdResponse.java          | 156 +++++++++++++++++++
 .../api/response/LogoutCmdResponse.java         |  36 +++++
 3 files changed, 214 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ef3a86ea/api/src/org/apache/cloudstack/api/response/AuthenticationCmdResponse.java
----------------------------------------------------------------------
diff --git a/api/src/org/apache/cloudstack/api/response/AuthenticationCmdResponse.java b/api/src/org/apache/cloudstack/api/response/AuthenticationCmdResponse.java
new file mode 100644
index 0000000..43aaee4
--- /dev/null
+++ b/api/src/org/apache/cloudstack/api/response/AuthenticationCmdResponse.java
@@ -0,0 +1,22 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+package org.apache.cloudstack.api.response;
+
+import org.apache.cloudstack.api.BaseResponse;
+
+public class AuthenticationCmdResponse extends BaseResponse {
+}

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ef3a86ea/api/src/org/apache/cloudstack/api/response/LoginCmdResponse.java
----------------------------------------------------------------------
diff --git a/api/src/org/apache/cloudstack/api/response/LoginCmdResponse.java b/api/src/org/apache/cloudstack/api/response/LoginCmdResponse.java
new file mode 100644
index 0000000..3139b6f
--- /dev/null
+++ b/api/src/org/apache/cloudstack/api/response/LoginCmdResponse.java
@@ -0,0 +1,156 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+package org.apache.cloudstack.api.response;
+
+import com.cloud.serializer.Param;
+import com.google.gson.annotations.SerializedName;
+import org.apache.cloudstack.api.ApiConstants;
+
+public class LoginCmdResponse extends AuthenticationCmdResponse {
+
+    @SerializedName(value = ApiConstants.USERNAME)
+    @Param(description = "Username")
+    private String username;
+
+    @SerializedName(value = ApiConstants.USER_ID)
+    @Param(description = "User ID")
+    private String userId;
+
+    @SerializedName(value = ApiConstants.DOMAIN_ID)
+    @Param(description = "Domain ID that the user belongs to")
+    private String domainId;
+
+    @SerializedName(value = ApiConstants.TIMEOUT)
+    @Param(description = "the time period before the session has expired")
+    private Integer timeout;
+
+    @SerializedName(value = ApiConstants.ACCOUNT)
+    @Param(description = "the account name the user belongs to")
+    private String account;
+
+    @SerializedName(value = ApiConstants.FIRSTNAME)
+    @Param(description = "first name of the user")
+    private String firstName;
+
+    @SerializedName(value = ApiConstants.LASTNAME)
+    @Param(description = "last name of the user")
+    private String lastName;
+
+    @SerializedName(value = ApiConstants.TYPE)
+    @Param(description = "the account type (admin, domain-admin, read-only-admin, user)")
+    private String type;
+
+    @SerializedName(value = ApiConstants.TIMEZONE)
+    @Param(description = "user time zone")
+    private String timeZone;
+
+    @SerializedName(value = ApiConstants.REGISTERED)
+    @Param(description = "Is user registered")
+    private String registered;
+
+    @SerializedName(value = ApiConstants.SESSIONKEY)
+    @Param(description = "Session key that can be passed in subsequent Query command calls")
+    private String sessionKey;
+
+    public String getUsername() {
+        return username;
+    }
+
+    public void setUsername(String username) {
+        this.username = username;
+    }
+
+    public String getUserId() {
+        return userId;
+    }
+
+    public void setUserId(String userId) {
+        this.userId = userId;
+    }
+
+    public String getDomainId() {
+        return domainId;
+    }
+
+    public void setDomainId(String domainId) {
+        this.domainId = domainId;
+    }
+
+    public Integer getTimeout() {
+        return timeout;
+    }
+
+    public void setTimeout(Integer timeout) {
+        this.timeout = timeout;
+    }
+
+    public String getAccount() {
+        return account;
+    }
+
+    public void setAccount(String account) {
+        this.account = account;
+    }
+
+    public String getFirstName() {
+        return firstName;
+    }
+
+    public void setFirstName(String firstName) {
+        this.firstName = firstName;
+    }
+
+    public String getLastName() {
+        return lastName;
+    }
+
+    public void setLastName(String lastName) {
+        this.lastName = lastName;
+    }
+
+    public String getType() {
+        return type;
+    }
+
+    public void setType(String type) {
+        this.type = type;
+    }
+
+    public String getTimeZone() {
+        return timeZone;
+    }
+
+    public void setTimeZone(String timeZone) {
+        this.timeZone = timeZone;
+    }
+
+    public String getRegistered() {
+        return registered;
+    }
+
+    public void setRegistered(String registered) {
+        this.registered = registered;
+    }
+
+    public String getSessionKey() {
+        return sessionKey;
+    }
+
+    public void setSessionKey(String sessionKey) {
+        this.sessionKey = sessionKey;
+    }
+}

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ef3a86ea/api/src/org/apache/cloudstack/api/response/LogoutCmdResponse.java
----------------------------------------------------------------------
diff --git a/api/src/org/apache/cloudstack/api/response/LogoutCmdResponse.java b/api/src/org/apache/cloudstack/api/response/LogoutCmdResponse.java
new file mode 100644
index 0000000..4f872f5
--- /dev/null
+++ b/api/src/org/apache/cloudstack/api/response/LogoutCmdResponse.java
@@ -0,0 +1,36 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+package org.apache.cloudstack.api.response;
+
+import com.cloud.serializer.Param;
+import com.google.gson.annotations.SerializedName;
+import org.apache.cloudstack.api.ApiConstants;
+
+@SuppressWarnings("unused")
+public class LogoutCmdResponse extends AuthenticationCmdResponse {
+    @SerializedName(value = ApiConstants.DESCRIPTION)
+    @Param(description = "Response description")
+    private String description;
+
+    public String getDescription() {
+        return this.description;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+}


Mime
View raw message