/** * Returns an instance of the configured authorization handler.<p> * * @return an instance of the configured authorization handler */ public I_CmsAuthorizationHandler getAuthorizationHandler() { if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_authorizationHandler)) { return new CmsDefaultAuthorizationHandler(); } try { I_CmsAuthorizationHandler authorizationHandler = (I_CmsAuthorizationHandler)Class.forName( m_authorizationHandler).newInstance(); if (LOG.isInfoEnabled()) { LOG.info(Messages.get().getBundle().key( Messages.INIT_AUTHORIZATION_HANDLER_CLASS_SUCCESS_1, m_authorizationHandler)); } authorizationHandler.setParameters(m_runtimeProperties); return authorizationHandler; } catch (Throwable t) { LOG.error(Messages.get().getBundle().key( Messages.INIT_AUTHORIZATION_HANDLER_CLASS_INVALID_1, m_authorizationHandler), t); return new CmsDefaultAuthorizationHandler(); } }
/** * Returns an instance of the configured authorization handler.<p> * * @return an instance of the configured authorization handler */ public I_CmsAuthorizationHandler getAuthorizationHandler() { if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_authorizationHandler)) { return new CmsDefaultAuthorizationHandler(); } try { I_CmsAuthorizationHandler authorizationHandler = (I_CmsAuthorizationHandler)Class.forName( m_authorizationHandler).newInstance(); if (LOG.isInfoEnabled()) { LOG.info( Messages.get().getBundle().key( Messages.INIT_AUTHORIZATION_HANDLER_CLASS_SUCCESS_1, m_authorizationHandler)); } authorizationHandler.setParameters(m_runtimeProperties); return authorizationHandler; } catch (Throwable t) { LOG.error( Messages.get().getBundle().key( Messages.INIT_AUTHORIZATION_HANDLER_CLASS_INVALID_1, m_authorizationHandler), t); return new CmsDefaultAuthorizationHandler(); } }