public interface AccountApi
| Modifier and Type | Interface and Description |
|---|---|
static class |
AccountApi.NotImplemented
A default implementation which allows source compatibility when adding new methods to the
interface.
|
AccountInfo get() throws RestApiException
RestApiExceptionboolean getActive()
throws RestApiException
RestApiExceptionvoid setActive(boolean active)
throws RestApiException
RestApiExceptionString getAvatarUrl(int size) throws RestApiException
RestApiExceptionGeneralPreferencesInfo getPreferences() throws RestApiException
RestApiExceptionGeneralPreferencesInfo setPreferences(GeneralPreferencesInfo in) throws RestApiException
RestApiExceptionDiffPreferencesInfo getDiffPreferences() throws RestApiException
RestApiExceptionDiffPreferencesInfo setDiffPreferences(DiffPreferencesInfo in) throws RestApiException
RestApiExceptionEditPreferencesInfo getEditPreferences() throws RestApiException
RestApiExceptionEditPreferencesInfo setEditPreferences(EditPreferencesInfo in) throws RestApiException
RestApiExceptionList<ProjectWatchInfo> getWatchedProjects() throws RestApiException
RestApiExceptionList<ProjectWatchInfo> setWatchedProjects(List<ProjectWatchInfo> in) throws RestApiException
RestApiExceptionvoid deleteWatchedProjects(List<ProjectWatchInfo> in) throws RestApiException
RestApiExceptionvoid starChange(String changeId) throws RestApiException
RestApiExceptionvoid unstarChange(String changeId) throws RestApiException
RestApiExceptionvoid setStars(String changeId, StarsInput input) throws RestApiException
RestApiExceptionSortedSet<String> getStars(String changeId) throws RestApiException
RestApiExceptionList<ChangeInfo> getStarredChanges() throws RestApiException
RestApiExceptionList<GroupInfo> getGroups() throws RestApiException
RestApiExceptionList<EmailInfo> getEmails() throws RestApiException
RestApiExceptionvoid addEmail(EmailInput input) throws RestApiException
RestApiExceptionvoid deleteEmail(String email) throws RestApiException
RestApiExceptionvoid setStatus(String status) throws RestApiException
RestApiExceptionList<SshKeyInfo> listSshKeys() throws RestApiException
RestApiExceptionSshKeyInfo addSshKey(String key) throws RestApiException
RestApiExceptionvoid deleteSshKey(int seq)
throws RestApiException
RestApiExceptionMap<String,GpgKeyInfo> listGpgKeys() throws RestApiException
RestApiExceptionMap<String,GpgKeyInfo> putGpgKeys(List<String> add, List<String> remove) throws RestApiException
RestApiExceptionGpgKeyApi gpgKey(String id) throws RestApiException
RestApiExceptionList<AgreementInfo> listAgreements() throws RestApiException
RestApiExceptionvoid signAgreement(String agreementName) throws RestApiException
RestApiExceptionvoid index()
throws RestApiException
RestApiExceptionList<AccountExternalIdInfo> getExternalIds() throws RestApiException
RestApiExceptionvoid deleteExternalIds(List<String> externalIds) throws RestApiException
RestApiExceptionvoid setName(String name) throws RestApiException
RestApiExceptionString generateHttpPassword() throws RestApiException
RestApiExceptionString setHttpPassword(String httpPassword) throws RestApiException
May only be invoked by administrators.
httpPassword - the new password, null to remove the password.null if the password was removed.RestApiException