Class ClassicConnectorService

    • Field Detail

      • ddcCache

        protected com.saperion.cache.Cache<DdcCacheKey,​com.saperion.cache.data.CacheEntry<DdcCacheKey>> ddcCache
    • Constructor Detail

      • ClassicConnectorService

        public ClassicConnectorService()
        Creates a new ClassicConnectorService.
      • ClassicConnectorService

        public ClassicConnectorService​(javax.servlet.http.HttpSession session)
        Creates a new ClassicConnectorService.
        Parameters:
        session - HTTP session
      • ClassicConnectorService

        protected ClassicConnectorService​(ConnectionProvider<com.saperion.connector.SaClassicConnector> conProvider)
        Creates a new ClassicConnectorService.
        Parameters:
        conProvider - Provider
    • Method Detail

      • getConnectionProvider

        protected final ConnectionProvider<com.saperion.connector.SaClassicConnector> getConnectionProvider()
        Returns the classic connector connection provider.
        Returns:
        connection provider
      • getWfConnectionProvider

        protected final ConnectionProvider<com.saperion.connector.wf.SaWFConnector> getWfConnectionProvider()
        Returns the workflow connection provider.
        Returns:
        workflow connection provider
      • isActive

        public final boolean isActive()
        Returns connection status.
        Specified by:
        isActive in interface Service
        Returns:
        true if user is logged on, otherwise false.
        See Also:
        Service.isActive()
      • convertAuthenticationException

        protected final AuthenticationException convertAuthenticationException​(com.saperion.exception.SaAuthenticationException orig)
        Converts an SaAuthenticationException to an AuthenticationException.
        Parameters:
        orig - classic connector exception
        Returns:
        NGC exception
      • getSession

        protected final javax.servlet.http.HttpSession getSession()
        Gets the session.
        Returns:
        the session
      • getCurrentUserFromSession

        protected final User getCurrentUserFromSession()
        Returns the current user from the session.
        Returns:
        the current user from the session
      • getCachedDDC

        protected final com.saperion.intf.DDC getCachedDDC​(java.lang.String ddcName)
                                                    throws com.saperion.exception.SaSystemException,
                                                           com.saperion.exception.SaAuthenticationException
        Loads the specified DDC from the cache or, if the cache is not available, from the backend.
        Parameters:
        ddcName - the name of the DDC
        Returns:
        the DDC
        Throws:
        com.saperion.exception.SaSystemException - system error when loading DDC
        com.saperion.exception.SaAuthenticationException - authentication error when loading DDC