MCPcopy Create free account
hub / github.com/OWASP/SecurityShepherd / getAdmins

Method getAdmins

src/main/java/dbProcs/Getter.java:1937–1956  ·  view source on GitHub ↗

@param ApplicationRoot The current running context of the application @return Result set containing admin info in the order userId, userName and userAddress

(String ApplicationRoot)

Source from the content-addressed store, hash-verified

1935 * @return Result set containing admin info in the order userId, userName and userAddress
1936 */
1937 public static ResultSet getAdmins(String ApplicationRoot)
1938 {
1939 ResultSet result = null;
1940 log.debug("*** Getter.adminGetAll () ***");
1941 Connection conn = Database.getCoreConnection(ApplicationRoot);
1942 try
1943 {
1944 CallableStatement callstmt = conn.prepareCall("call adminGetAll()");
1945 log.debug("Gathering adminGetAll ResultSet");
1946 result = callstmt.executeQuery();
1947 log.debug("Returning Result Set from adminGetAll");
1948 }
1949 catch (SQLException e)
1950 {
1951 log.error("Could not execute query: " + e.toString());
1952 result = null;
1953 }
1954 log.debug("*** END adminGetAll ***");
1955 return result;
1956 }
1957
1958 /**
1959 * Used to decipher whether or not a user exists as an admin

Callers 1

testGetAdminsMethod · 0.95

Calls 1

getCoreConnectionMethod · 0.95

Tested by 1

testGetAdminsMethod · 0.76