ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sneet...@apache.org
Subject [2/2] git commit: Adding PublicAPIs changes
Date Tue, 16 Sep 2014 15:44:07 GMT
Adding PublicAPIs changes


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

Branch: refs/heads/master
Commit: a4ec210ed4987952fd8dcdfe2adaf6b09e680682
Parents: 0ee4b9b
Author: sneethiraj <sneethir@apache.org>
Authored: Tue Sep 16 11:43:28 2014 -0400
Committer: sneethiraj <sneethir@apache.org>
Committed: Tue Sep 16 11:43:28 2014 -0400

----------------------------------------------------------------------
 .../src/main/java/com/xasecure/rest/PublicAPIs.java          | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/a4ec210e/security-admin/src/main/java/com/xasecure/rest/PublicAPIs.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/rest/PublicAPIs.java b/security-admin/src/main/java/com/xasecure/rest/PublicAPIs.java
index fd07166..c59018a 100644
--- a/security-admin/src/main/java/com/xasecure/rest/PublicAPIs.java
+++ b/security-admin/src/main/java/com/xasecure/rest/PublicAPIs.java
@@ -19,6 +19,7 @@
 
  package com.xasecure.rest;
 
+import java.util.ArrayList;
 import javax.servlet.http.HttpServletRequest;
 import javax.ws.rs.DELETE;
 import javax.ws.rs.GET;
@@ -177,6 +178,12 @@ public class PublicAPIs {
 	public VXLong countRepositories(@Context HttpServletRequest request) {
 		SearchCriteria searchCriteria = searchUtil.extractCommonCriterias(
 				request, xAssetService.sortFields);
+
+        ArrayList<Integer> valueList = new ArrayList<Integer>();
+        valueList.add(XAConstants.STATUS_DISABLED);
+        valueList.add(XAConstants.STATUS_ENABLED);
+        searchCriteria.addParam("status", valueList);
+
 		return assetMgr.getXAssetSearchCount(searchCriteria);
 	}
 
@@ -286,6 +293,7 @@ public class PublicAPIs {
 		SearchCriteria searchCriteria = searchUtil.extractCommonCriterias(
 				request, xResourceService.sortFields);
 
+
 		return assetMgr.getXResourceSearchCount(searchCriteria);
 	}
 


Mime
View raw message