Interface Org
public interface Org
Holds information about the invoking Salesforce organization and user.
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. |
@Nonnull java.lang.String getId()
Returns the Salesforce organization ID.
Returns: The Salesforce organization ID.
@Nonnull java.net.URI getBaseUrl()
Returns the base URL of the Salesforce organization.
Returns: The base URL of the Salesforce organization.
@Nonnull java.net.URI getDomainUrl()
Returns the domain URL of the Salesforce organization.
Returns: The domain URL of the Salesforce organization.
@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.
@Nonnull DataApi getDataApi()
Returns an initialized data API client instance to interact with data in the org.
Returns: An initialized data API client instance.
@Nonnull User getUser()
Returns the currently logged in user.
Returns: The currently logged in user.