LDEV-3292: Improve Add Lesson dialog response time:Fetch all users and filter them afterwards instead of fetchin one by one.Make some collections lazy or extra-lazy.
LDEV-3293: Use Spring support for Hibernate 4 instead of 3 (session factory and filters).Use new path for Hibernate DTDs. Make XDoclet generate hbm.xml files with the correct path by providing it a new template.
LDEV-3293: Use the new Spring's support for Hibernate 4 instead of Hibernate 3. Switch from using HibernateDaoSupport.getSession() to its getSessionFactory().getSession(). The latter is sure to close the session automatically while a session returned by the first method should be closed manually. Theoritecally we do it in OpenSessionInViewFilter, but it may not be always the case, leading to open Hibernate session being left behind.
LDEV-3293: Cast DAO methods' results to their return type.Java 8 is more restrictive about generics. Hibernate find() methods returns List<?> and it can not be quietly cast to List<SomeClass>. Each occurence was explicitly casted and warnings about the type being unchecked were supressed.
LDEV-3275: Decrease version of Hibernate from 4.x (delivered to WildFly) to 3.6.10 (newer than used before, but still 3.x as otherwise Spring won't work with it).
LDEV-2463 Added new method "learnerStrictAuth" available to LoginRequest. It works the same way as "learner" but requires hash to also contain lesson id parameter.
LDEV-3275: Use Apache Commons IO version 2.1 -> 2.4 delivered with WildFly.Previous similar upgrades were:Apache Commons Collections 3.1 -> 3.2.1Apache Commons BeanUtils 1.6 -> 1.8.3Saaj 1.2 -> 1.3JaxRPC same version, but delivered with WildFly.
LDEV-3275: Deploy EAR libraries as WildFly modules.In JBoss there were several folders where libraries could be simply copied.In WildFly it is more organised, with module.xml files describing each library.In order not to keep libs in EAR, so only real LAMS code remains there, they are moved to WildFly as modules and get referenced by EAR with META-INF/jboss-deployment-structure.xml.
LDEV-3275: Add quartz.jar as a 3rd party module since it is not a part of WildFly distribution.Old version (1.5.3) stays as upgrading to the latest (2.2.1) requires code changes (different API).