You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2014/12/17 10:41:21 UTC

stratos git commit: Updating return type of StratosApi41.getTenants() method

Repository: stratos
Updated Branches:
  refs/heads/4.1.0-test 9d42f00a0 -> 60036c214


Updating return type of StratosApi41.getTenants() method


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

Branch: refs/heads/4.1.0-test
Commit: 60036c2145eab66a890f1192873e051bb0a573fa
Parents: 9d42f00
Author: Imesh Gunaratne <im...@apache.org>
Authored: Wed Dec 17 15:11:14 2014 +0530
Committer: Imesh Gunaratne <im...@apache.org>
Committed: Wed Dec 17 15:11:14 2014 +0530

----------------------------------------------------------------------
 .../org/apache/stratos/rest/endpoint/api/StratosApiV41.java  | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/60036c21/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java
index f9d19b4..f7dc1c3 100644
--- a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java
+++ b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java
@@ -1012,7 +1012,7 @@ public class StratosApiV41 extends AbstractApi {
     @Produces("application/json")
     @AuthorizationAction("/permission/protected/manage/monitor/tenants")
     @SuperTenantService(true)
-    public TenantInfoBean[] getTenants() throws RestAPIException {
+    public org.apache.stratos.common.beans.TenantInfoBean[] getTenants() throws RestAPIException {
         List<org.apache.stratos.common.beans.TenantInfoBean> tenantList = null;
         try {
             tenantList = getAllTenants();
@@ -1021,7 +1021,7 @@ public class StratosApiV41 extends AbstractApi {
             log.error(msg, e);
             throw new RestAPIException(msg);
         }
-        return tenantList.toArray(new TenantInfoBean[tenantList.size()]);
+        return tenantList.toArray(new org.apache.stratos.common.beans.TenantInfoBean[tenantList.size()]);
     }
 
     private List<org.apache.stratos.common.beans.TenantInfoBean> getAllTenants() throws RestAPIException {
@@ -1057,7 +1057,9 @@ public class StratosApiV41 extends AbstractApi {
     @Produces("application/json")
     @AuthorizationAction("/permission/protected/manage/monitor/tenants")
     @SuperTenantService(true)
-    public TenantInfoBean[] getPartialSearchTenants(@PathParam("tenantDomain") String tenantDomain) throws RestAPIException {
+    public TenantInfoBean[] getPartialSearchTenants(@PathParam("tenantDomain") String tenantDomain)
+            throws RestAPIException {
+
         List<TenantInfoBean> tenantList = null;
         try {
             tenantList = searchPartialTenantsDomains(tenantDomain);