public interface ConnectionService extends Service
DocumentService
.Modifier and Type | Method and Description |
---|---|
boolean |
isLocalConnectionContextAllowed(RequestContextUserType requestContextUserType)
Indicates whether local access is available for the provided
RequestContextUserType . |
ConnectionContext |
newConnectionContext(String connectionApiName,
ConnectionUser connectionUser)
|
ConnectionContext |
newLocalConnectionContext()
Deprecated.
as of 22R3.4, replaced by
newLocalConnectionContext(RequestContextUserType) . |
ConnectionContext |
newLocalConnectionContext(RequestContextUserType requestContextUserType)
Initializes a local
ConnectionContext for the local Vault and
for the user type specified by the requestContextUserType. |
ConnectionContext newConnectionContext(String connectionApiName, ConnectionUser connectionUser)
connectionApiName
- api name of a connectionconnectionUser
- connection userConnectionContext
boolean isLocalConnectionContextAllowed(RequestContextUserType requestContextUserType)
RequestContextUserType
.
If true, the user type can create local connections.requestContextUserType
- the user type to check access forConnectionContext newLocalConnectionContext(RequestContextUserType requestContextUserType)
ConnectionContext
for 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 the isLocalConnectionContextAllowed(RequestContextUserType)
method prior to calling this method.requestContextUserType
- the user type establishing the connectionConnectionContext
@Deprecated ConnectionContext newLocalConnectionContext()
newLocalConnectionContext(RequestContextUserType)
.ConnectionContext
for 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.ConnectionContext
Copyright © Veeva Systems 2017–2023. All rights reserved.