|
From: <bir...@us...> - 2007-10-15 18:36:02
|
Revision: 113
http://mptstore.svn.sourceforge.net/mptstore/?rev=113&view=rev
Author: birkland
Date: 2007-10-15 11:35:51 -0700 (Mon, 15 Oct 2007)
Log Message:
-----------
Minor changes to satisfy checkstyle
Modified Paths:
--------------
trunk/src/java/org/nsdl/mptstore/impl/postgres/PostgresDDLGenerator.java
Modified: trunk/src/java/org/nsdl/mptstore/impl/postgres/PostgresDDLGenerator.java
===================================================================
--- trunk/src/java/org/nsdl/mptstore/impl/postgres/PostgresDDLGenerator.java 2007-10-15 16:59:41 UTC (rev 112)
+++ trunk/src/java/org/nsdl/mptstore/impl/postgres/PostgresDDLGenerator.java 2007-10-15 18:35:51 UTC (rev 113)
@@ -37,7 +37,14 @@
_groups = splitProperty("mptstore.postgres.autoGrantGroups");
}
- public PostgresDDLGenerator(String[] users, String[] groups) {
+ /**
+ * Construct a PostgresDDLGenerator that will grant access on new tables to
+ * specified users or groups.
+ *
+ * @param users Users to assign privileges to when creating new tables.
+ * @param groups Groups to assign privileges to when creating new tables.
+ */
+ public PostgresDDLGenerator(final String[] users, final String[] groups) {
if (users == null) {
_users = new String[0];
} else {
@@ -50,7 +57,7 @@
}
}
- private static String[] splitProperty(String name) {
+ private static String[] splitProperty(final String name) {
String val = System.getProperty(name);
if (val == null || val.trim().length() == 0) {
return new String[0];
@@ -59,7 +66,7 @@
}
}
- private void addSelectGrants(List<String> cmds, String table) {
+ private void addSelectGrants(final List<String> cmds, final String table) {
for (String name : _users) {
cmds.add("GRANT SELECT ON TABLE " + table + " TO " + name);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|