Interface ConnectionService
- All Superinterfaces:
Service
Provides methods to build a new connection context for use with
DocumentService.-
Method Summary
Modifier and TypeMethodDescriptionbooleanisLocalConnectionContextAllowed(RequestContextUserType requestContextUserType) Indicates whether local access is available for the providedRequestContextUserType.newConnectionContext(String connectionApiName, ConnectionUser connectionUser) Deprecated.newLocalConnectionContext(RequestContextUserType requestContextUserType) Initializes a localConnectionContextfor the local Vault and for the user type specified by the requestContextUserType.
-
Method Details
-
newConnectionContext
- Parameters:
connectionApiName- api name of a connectionconnectionUser- connection user- Returns:
ConnectionContext
-
isLocalConnectionContextAllowed
Indicates whether local access is available for the providedRequestContextUserType. If true, the user type can create local connections.- Parameters:
requestContextUserType- the user type to check access for- Returns:
- true if local access is available for the provided user type
-
newLocalConnectionContext
Initializes a localConnectionContextfor the local Vault and for the user type specified by the requestContextUserType. This method is not supported for operations initiated by the System. Use this method in cases where a full connection record is not required. If it is unclear whether the local connection will succeed for the provided user type, call theisLocalConnectionContextAllowed(RequestContextUserType)method prior to calling this method.- Parameters:
requestContextUserType- the user type establishing the connection- Returns:
ConnectionContext
-
newLocalConnectionContext
Deprecated.as of 22R3.4, replaced bynewLocalConnectionContext(RequestContextUserType).Initializes a localConnectionContextfor the local Vault and for the originating user. This method is not supported for operations initiated by the System. Use this method in cases where a full connection record is not required.- Returns:
ConnectionContext
-
newLocalConnectionContext(RequestContextUserType).