public interface Org
Holds information about the invoking Salesforce organization and user.
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getApiVersion() |
Returns the API version the Salesforce organization is currently using. |
java.net.URI |
getBaseUrl() |
Returns the base URL of the Salesforce organization. |
DataApi |
getDataApi() |
Returns an initialized data API client instance to interact with data in the org. |
java.net.URI |
getDomainUrl() |
Returns the domain URL of the Salesforce organization. |
java.lang.String |
getId() |
Returns the Salesforce organization ID. |
User |
getUser() |
Returns the currently logged in user. |
Method Details
getId
@Nonnull java.lang.String getId()
Returns the Salesforce organization ID.
Returns: The Salesforce organization ID.
getBaseUrl
@Nonnull java.net.URI getBaseUrl()
Returns the base URL of the Salesforce organization.
Returns: The base URL of the Salesforce organization.
getDomainUrl
@Nonnull java.net.URI getDomainUrl()
Returns the domain URL of the Salesforce organization.
Returns: The domain URL of the Salesforce organization.
getApiVersion
@Nonnull java.lang.String getApiVersion()
Returns the API version the Salesforce organization is currently using.
Returns: The API version the Salesforce organization is currently using.
getDataApi
@Nonnull DataApi getDataApi()
Returns an initialized data API client instance to interact with data in the org.
Returns: An initialized data API client instance.
getUser
@Nonnull User getUser()
Returns the currently logged in user.
Returns: The currently logged in user.