public interface User
Holds information about the invoking Salesforce user.
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getId() |
Returns the user's ID. |
java.util.Optional<java.lang.String> |
getOnBehalfOfUserId() |
Returns the id of the user this user operates in behalf of. |
java.lang.String |
getUsername() |
Returns the name of the user. |
Method Details
getId
@Nonnull java.lang.String getId()
Returns the user's ID.
Returns: The user's ID.
getUsername
@Nonnull java.lang.String getUsername()
Returns the name of the user.
Returns: The name of the user.
getOnBehalfOfUserId
@Nonnull java.util.Optional<java.lang.String> getOnBehalfOfUserId()
Returns the id of the user this user operates in behalf of.
Returns: The id of the user this user operates in behalf of.