This is used to only open Mobile category levels @param ApplicationRoot Used to locate database properties file @return
(String ApplicationRoot)
| 179 | * @return |
| 180 | */ |
| 181 | public static boolean openOnlyMobileCategories (String ApplicationRoot) |
| 182 | { |
| 183 | log.debug("*** Setter.openOnlyMobileCategories ***"); |
| 184 | boolean result = false; |
| 185 | Connection conn = Database.getCoreConnection(ApplicationRoot); |
| 186 | try |
| 187 | { |
| 188 | PreparedStatement prepstmt = conn.prepareStatement("UPDATE modules SET moduleStatus = 'closed' WHERE " + webModuleCategoryHardcodedWhereClause); |
| 189 | prepstmt.execute(); |
| 190 | log.debug("Web Levels have been closed"); |
| 191 | prepstmt = conn.prepareStatement("UPDATE modules SET moduleStatus = 'open' WHERE " + mobileModuleCategoryHardcodedWhereClause); |
| 192 | prepstmt.execute(); |
| 193 | log.debug("Mobile Levels have been opened"); |
| 194 | result = true; |
| 195 | } |
| 196 | catch (SQLException e) |
| 197 | { |
| 198 | log.error("Could not only open Mobile Levels: " + e.toString()); |
| 199 | } |
| 200 | Database.closeConnection(conn); |
| 201 | log.debug("*** END openOnlyMobileCategories ***"); |
| 202 | return result; |
| 203 | } |
| 204 | |
| 205 | /** |
| 206 | * This is used to only open Mobile category levels |