public class ClassicConnectorService extends Object implements Service
Modifier and Type | Field and Description |
---|---|
protected com.saperion.cache.Cache<DdcCacheKey,com.saperion.cache.data.CacheEntry<DdcCacheKey>> |
ddcCache |
Modifier | Constructor and Description |
---|---|
|
ClassicConnectorService()
Creates a new ClassicConnectorService.
|
protected |
ClassicConnectorService(ConnectionProvider<com.saperion.connector.SaClassicConnector> conProvider)
Creates a new ClassicConnectorService.
|
|
ClassicConnectorService(javax.servlet.http.HttpSession session)
Creates a new ClassicConnectorService.
|
Modifier and Type | Method and Description |
---|---|
protected AuthenticationException |
convertAuthenticationException(com.saperion.exception.SaAuthenticationException orig)
Converts an SaAuthenticationException to an AuthenticationException.
|
protected com.saperion.intf.DDC |
getCachedDDC(String ddcName)
Loads the specified DDC from the cache or, if the cache is not available, from the backend.
|
protected ConnectionProvider<com.saperion.connector.SaClassicConnector> |
getConnectionProvider()
Returns the classic connector connection provider.
|
protected User |
getCurrentUserFromSession()
Returns the current user from the session.
|
protected javax.servlet.http.HttpSession |
getSession()
Gets the session.
|
protected ConnectionProvider<com.saperion.connector.wf.SaWFConnector> |
getWfConnectionProvider()
Returns the workflow connection provider.
|
boolean |
isActive()
Returns connection status.
|
protected com.saperion.cache.Cache<DdcCacheKey,com.saperion.cache.data.CacheEntry<DdcCacheKey>> ddcCache
public ClassicConnectorService()
public ClassicConnectorService(javax.servlet.http.HttpSession session)
session
- HTTP sessionprotected ClassicConnectorService(ConnectionProvider<com.saperion.connector.SaClassicConnector> conProvider)
conProvider
- Providerprotected final ConnectionProvider<com.saperion.connector.SaClassicConnector> getConnectionProvider()
protected final ConnectionProvider<com.saperion.connector.wf.SaWFConnector> getWfConnectionProvider()
public final boolean isActive()
isActive
in interface Service
Service.isActive()
protected final AuthenticationException convertAuthenticationException(com.saperion.exception.SaAuthenticationException orig)
orig
- classic connector exceptionprotected final javax.servlet.http.HttpSession getSession()
protected final User getCurrentUserFromSession()
protected final com.saperion.intf.DDC getCachedDDC(String ddcName) throws com.saperion.exception.SaSystemException, com.saperion.exception.SaAuthenticationException
ddcName
- the name of the DDCcom.saperion.exception.SaSystemException
- system error when loading DDCcom.saperion.exception.SaAuthenticationException
- authentication error when loading DDCCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.