LDEV-3335, LDEV-3340: Make SessionManager a storage for servlet context, so it can be accesses by other classes at any time. Remove obsolete SSO classes.
LDEV-3335, LDEV-3340: Remove a filter which sets inactive timeout in sessions. With new SSO it is just needed in Central and it is already taken care of by SessionListener.
LDEV-3335, LDEV-3334: Use SSO mechanism introduced in WildFly 9. Do not create web.xml files with XDoclet as it can not produce them based on 3.1 schema. Use static ones instead. Make SessionManager just a proxy to webserver's HTTP session. Remov custom shared sessions and JSESSIONIDSSO cookie as they are obsolete. Remove own session monitoring as the container should take care of invalidation. Move injecting UserDTO into session to SsoHandler intead of UniversalLoginModule as an authentication request may not reach the latter due to WildFly credentials caching.
LDEV-3275: Make XStream use enhanced mode in which it can instantinate classes without no-arg constructors. This requires Oracle's JVM to be used, but it is a requirement of LAMS anyway. Otherwise multiple LAMS classes (mainly DTOs) would have to be given no-arg constructors or implement Serializable.
LDEV-3275: Add missing dependencies. Update XStream to version 1.5.0, and its corresponding libraries. Reimplement LD attachment importing. Reimplement Content Repository credential check. Moja joda-time library to separate folder as it is not a part of XStream deployment anymore, but it is still needed in LAMS code.
LDEV-3320: Switch TransactionManager used by LAMS to JTA. Update hibernate.properties to use JTA platform as transactions provier. Update hibernate.properties to use TransactionAwareSessionContext .In order for Infinispan and Hibernate to correctly cooperate within transactions - it is recommended to use TransactionManager that supports JTATransactions (LAMS was using JDBCTransaction type). http://infinispan.org/docs/6.0.x/user_guide/user_guide.html#_jta_transactions_configuration
LDEV-3364: add TransactionAwareSessionContext implementation to fix 'No Session Found for current thread' issue.This is not yet bound to hibernate.properties
LDEV-3364: Fix CRON ResendMessagesJob execution when no Hibernate Session was bound to thread.Remove EventNotificationService usage via singleton reference and call DAO methods with service layer in-between to support transactions.