This method sets every module status to Open. @param ApplicationRoot Current running director of the application @param moduleId The identifier of the module that is been set to open status @return Boolean result depicting success of statement
(String ApplicationRoot)
| 131 | * @return Boolean result depicting success of statement |
| 132 | */ |
| 133 | public static boolean openAllModules (String ApplicationRoot) |
| 134 | { |
| 135 | log.debug("*** Setter.openAllModules ***"); |
| 136 | boolean result = false; |
| 137 | Connection conn = Database.getCoreConnection(ApplicationRoot); |
| 138 | try |
| 139 | { |
| 140 | PreparedStatement callstmt = conn.prepareStatement("UPDATE modules SET moduleStatus = 'open'"); |
| 141 | callstmt.execute(); |
| 142 | log.debug("All modules Set to open"); |
| 143 | result = true; |
| 144 | } |
| 145 | catch (SQLException e) |
| 146 | { |
| 147 | log.error("Could not open all modules: " + e.toString()); |
| 148 | } |
| 149 | Database.closeConnection(conn); |
| 150 | log.debug("*** END setModuleStatusOpen ***"); |
| 151 | return result; |
| 152 | } |
| 153 | |
| 154 | //TODO - Replace this with a new mobile/web/etc attribute in the modules table |
| 155 | final public static String webModuleCategoryHardcodedWhereClause = new String("" |