Interface AccountApi
-
- All Known Implementing Classes:
AccountApi.NotImplemented
public interface AccountApi
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AccountApi.NotImplemented
A default implementation which allows source compatibility when adding new methods to the interface.
-
Method Summary
-
-
-
Method Detail
-
get
AccountInfo get() throws RestApiException
- Throws:
RestApiException
-
detail
AccountDetailInfo detail() throws RestApiException
- Throws:
RestApiException
-
getActive
boolean getActive() throws RestApiException
- Throws:
RestApiException
-
setActive
void setActive(boolean active) throws RestApiException
- Throws:
RestApiException
-
getAvatarUrl
String getAvatarUrl(int size) throws RestApiException
- Throws:
RestApiException
-
getPreferences
GeneralPreferencesInfo getPreferences() throws RestApiException
- Throws:
RestApiException
-
setPreferences
GeneralPreferencesInfo setPreferences(GeneralPreferencesInfo in) throws RestApiException
- Throws:
RestApiException
-
getDiffPreferences
DiffPreferencesInfo getDiffPreferences() throws RestApiException
- Throws:
RestApiException
-
setDiffPreferences
DiffPreferencesInfo setDiffPreferences(DiffPreferencesInfo in) throws RestApiException
- Throws:
RestApiException
-
getEditPreferences
EditPreferencesInfo getEditPreferences() throws RestApiException
- Throws:
RestApiException
-
setEditPreferences
EditPreferencesInfo setEditPreferences(EditPreferencesInfo in) throws RestApiException
- Throws:
RestApiException
-
getWatchedProjects
List<ProjectWatchInfo> getWatchedProjects() throws RestApiException
- Throws:
RestApiException
-
setWatchedProjects
List<ProjectWatchInfo> setWatchedProjects(List<ProjectWatchInfo> in) throws RestApiException
- Throws:
RestApiException
-
deleteWatchedProjects
void deleteWatchedProjects(List<ProjectWatchInfo> in) throws RestApiException
- Throws:
RestApiException
-
starChange
void starChange(String changeId) throws RestApiException
- Throws:
RestApiException
-
unstarChange
void unstarChange(String changeId) throws RestApiException
- Throws:
RestApiException
-
setStars
void setStars(String changeId, StarsInput input) throws RestApiException
- Throws:
RestApiException
-
getStars
SortedSet<String> getStars(String changeId) throws RestApiException
- Throws:
RestApiException
-
getStarredChanges
List<ChangeInfo> getStarredChanges() throws RestApiException
- Throws:
RestApiException
-
getGroups
List<GroupInfo> getGroups() throws RestApiException
- Throws:
RestApiException
-
getEmails
List<EmailInfo> getEmails() throws RestApiException
- Throws:
RestApiException
-
addEmail
void addEmail(EmailInput input) throws RestApiException
- Throws:
RestApiException
-
deleteEmail
void deleteEmail(String email) throws RestApiException
- Throws:
RestApiException
-
createEmail
EmailApi createEmail(EmailInput emailInput) throws RestApiException
- Throws:
RestApiException
-
email
EmailApi email(String email) throws RestApiException
- Throws:
RestApiException
-
setStatus
void setStatus(String status) throws RestApiException
- Throws:
RestApiException
-
setDisplayName
void setDisplayName(String displayName) throws RestApiException
- Throws:
RestApiException
-
listSshKeys
List<SshKeyInfo> listSshKeys() throws RestApiException
- Throws:
RestApiException
-
addSshKey
SshKeyInfo addSshKey(String key) throws RestApiException
- Throws:
RestApiException
-
deleteSshKey
void deleteSshKey(int seq) throws RestApiException
- Throws:
RestApiException
-
listGpgKeys
Map<String,GpgKeyInfo> listGpgKeys() throws RestApiException
- Throws:
RestApiException
-
putGpgKeys
Map<String,GpgKeyInfo> putGpgKeys(List<String> add, List<String> remove) throws RestApiException
- Throws:
RestApiException
-
gpgKey
GpgKeyApi gpgKey(String id) throws RestApiException
- Throws:
RestApiException
-
listAgreements
List<AgreementInfo> listAgreements() throws RestApiException
- Throws:
RestApiException
-
signAgreement
void signAgreement(String agreementName) throws RestApiException
- Throws:
RestApiException
-
index
void index() throws RestApiException
- Throws:
RestApiException
-
getExternalIds
List<AccountExternalIdInfo> getExternalIds() throws RestApiException
- Throws:
RestApiException
-
deleteExternalIds
void deleteExternalIds(List<String> externalIds) throws RestApiException
- Throws:
RestApiException
-
deleteDraftComments
List<DeletedDraftCommentInfo> deleteDraftComments(DeleteDraftCommentsInput input) throws RestApiException
- Throws:
RestApiException
-
setName
void setName(String name) throws RestApiException
- Throws:
RestApiException
-
generateHttpPassword
String generateHttpPassword() throws RestApiException
Generate a new HTTP password.- Returns:
- the generated password.
- Throws:
RestApiException
-
setHttpPassword
String setHttpPassword(String httpPassword) throws RestApiException
Set a new HTTP password.May only be invoked by administrators.
- Parameters:
httpPassword
- the new password,null
to remove the password.- Returns:
- the new password,
null
if the password was removed. - Throws:
RestApiException
-
-