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

Method getModuleNameLocaleKey

src/main/java/dbProcs/Getter.java:1211–1234  ·  view source on GitHub ↗

This method retrieves the i18n local key for a module's name. @param applicationRoot Application Running Context @param moduleId ID of the module to lookup @return Locale key for the Module's Name.

(String applicationRoot, String moduleId)

Source from the content-addressed store, hash-verified

1209 * @return Locale key for the Module's Name.
1210 */
1211 public static String getModuleNameLocaleKey(String applicationRoot, String moduleId)
1212 {
1213 log.debug("*** Getter.getModuleNameLocaleKey ***");
1214 String result = new String();
1215 Connection conn = Database.getCoreConnection(applicationRoot);
1216 try
1217 {
1218 CallableStatement callstmt = conn.prepareCall("call moduleGetNameLocale(?)");
1219 log.debug("Gathering moduleGetNameLocale ResultSet");
1220 callstmt.setString(1, moduleId);
1221 ResultSet resultSet = callstmt.executeQuery();
1222 log.debug("Opening Result Set from moduleGetNameLocale");
1223 resultSet.next();
1224 result = resultSet.getString(1);
1225 }
1226 catch (SQLException e)
1227 {
1228 log.error("Could not execute moduleGetNameLocale: " + e.toString());
1229 result = null;
1230 }
1231 Database.closeConnection(conn);
1232 log.debug("*** END getModuleNameLocaleKey ***");
1233 return result;
1234 }
1235
1236 /**
1237 * @param ApplicationRoot The current running context of the application

Callers 2

updatePlayerResultMethod · 0.95

Calls 2

getCoreConnectionMethod · 0.95
closeConnectionMethod · 0.95

Tested by 1