Class AccountApiImpl
- java.lang.Object
-
- com.google.gerrit.server.api.accounts.AccountApiImpl
-
- All Implemented Interfaces:
AccountApi
public class AccountApiImpl extends Object implements AccountApi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.gerrit.extensions.api.accounts.AccountApi
AccountApi.NotImplemented
-
-
Method Summary
-
-
-
Method Detail
-
get
public AccountInfo get() throws RestApiException
- Specified by:
getin interfaceAccountApi- Throws:
RestApiException
-
getActive
public boolean getActive() throws RestApiException- Specified by:
getActivein interfaceAccountApi- Throws:
RestApiException
-
setActive
public void setActive(boolean active) throws RestApiException- Specified by:
setActivein interfaceAccountApi- Throws:
RestApiException
-
getAvatarUrl
public String getAvatarUrl(int size) throws RestApiException
- Specified by:
getAvatarUrlin interfaceAccountApi- Throws:
RestApiException
-
getPreferences
public GeneralPreferencesInfo getPreferences() throws RestApiException
- Specified by:
getPreferencesin interfaceAccountApi- Throws:
RestApiException
-
setPreferences
public GeneralPreferencesInfo setPreferences(GeneralPreferencesInfo in) throws RestApiException
- Specified by:
setPreferencesin interfaceAccountApi- Throws:
RestApiException
-
getDiffPreferences
public DiffPreferencesInfo getDiffPreferences() throws RestApiException
- Specified by:
getDiffPreferencesin interfaceAccountApi- Throws:
RestApiException
-
setDiffPreferences
public DiffPreferencesInfo setDiffPreferences(DiffPreferencesInfo in) throws RestApiException
- Specified by:
setDiffPreferencesin interfaceAccountApi- Throws:
RestApiException
-
getEditPreferences
public EditPreferencesInfo getEditPreferences() throws RestApiException
- Specified by:
getEditPreferencesin interfaceAccountApi- Throws:
RestApiException
-
setEditPreferences
public EditPreferencesInfo setEditPreferences(EditPreferencesInfo in) throws RestApiException
- Specified by:
setEditPreferencesin interfaceAccountApi- Throws:
RestApiException
-
getWatchedProjects
public List<ProjectWatchInfo> getWatchedProjects() throws RestApiException
- Specified by:
getWatchedProjectsin interfaceAccountApi- Throws:
RestApiException
-
setWatchedProjects
public List<ProjectWatchInfo> setWatchedProjects(List<ProjectWatchInfo> in) throws RestApiException
- Specified by:
setWatchedProjectsin interfaceAccountApi- Throws:
RestApiException
-
deleteWatchedProjects
public void deleteWatchedProjects(List<ProjectWatchInfo> in) throws RestApiException
- Specified by:
deleteWatchedProjectsin interfaceAccountApi- Throws:
RestApiException
-
starChange
public void starChange(String changeId) throws RestApiException
- Specified by:
starChangein interfaceAccountApi- Throws:
RestApiException
-
unstarChange
public void unstarChange(String changeId) throws RestApiException
- Specified by:
unstarChangein interfaceAccountApi- Throws:
RestApiException
-
setStars
public void setStars(String changeId, StarsInput input) throws RestApiException
- Specified by:
setStarsin interfaceAccountApi- Throws:
RestApiException
-
getStars
public SortedSet<String> getStars(String changeId) throws RestApiException
- Specified by:
getStarsin interfaceAccountApi- Throws:
RestApiException
-
getStarredChanges
public List<ChangeInfo> getStarredChanges() throws RestApiException
- Specified by:
getStarredChangesin interfaceAccountApi- Throws:
RestApiException
-
getGroups
public List<GroupInfo> getGroups() throws RestApiException
- Specified by:
getGroupsin interfaceAccountApi- Throws:
RestApiException
-
getEmails
public List<EmailInfo> getEmails()
- Specified by:
getEmailsin interfaceAccountApi
-
addEmail
public void addEmail(EmailInput input) throws RestApiException
- Specified by:
addEmailin interfaceAccountApi- Throws:
RestApiException
-
deleteEmail
public void deleteEmail(String email) throws RestApiException
- Specified by:
deleteEmailin interfaceAccountApi- Throws:
RestApiException
-
setStatus
public void setStatus(String status) throws RestApiException
- Specified by:
setStatusin interfaceAccountApi- Throws:
RestApiException
-
listSshKeys
public List<SshKeyInfo> listSshKeys() throws RestApiException
- Specified by:
listSshKeysin interfaceAccountApi- Throws:
RestApiException
-
addSshKey
public SshKeyInfo addSshKey(String key) throws RestApiException
- Specified by:
addSshKeyin interfaceAccountApi- Throws:
RestApiException
-
deleteSshKey
public void deleteSshKey(int seq) throws RestApiException- Specified by:
deleteSshKeyin interfaceAccountApi- Throws:
RestApiException
-
listGpgKeys
public Map<String,GpgKeyInfo> listGpgKeys() throws RestApiException
- Specified by:
listGpgKeysin interfaceAccountApi- Throws:
RestApiException
-
putGpgKeys
public Map<String,GpgKeyInfo> putGpgKeys(List<String> add, List<String> delete) throws RestApiException
- Specified by:
putGpgKeysin interfaceAccountApi- Throws:
RestApiException
-
gpgKey
public GpgKeyApi gpgKey(String id) throws RestApiException
- Specified by:
gpgKeyin interfaceAccountApi- Throws:
RestApiException
-
listAgreements
public List<AgreementInfo> listAgreements() throws RestApiException
- Specified by:
listAgreementsin interfaceAccountApi- Throws:
RestApiException
-
signAgreement
public void signAgreement(String agreementName) throws RestApiException
- Specified by:
signAgreementin interfaceAccountApi- Throws:
RestApiException
-
index
public void index() throws RestApiException- Specified by:
indexin interfaceAccountApi- Throws:
RestApiException
-
getExternalIds
public List<AccountExternalIdInfo> getExternalIds() throws RestApiException
- Specified by:
getExternalIdsin interfaceAccountApi- Throws:
RestApiException
-
deleteExternalIds
public void deleteExternalIds(List<String> externalIds) throws RestApiException
- Specified by:
deleteExternalIdsin interfaceAccountApi- Throws:
RestApiException
-
setName
public void setName(String name) throws RestApiException
- Specified by:
setNamein interfaceAccountApi- Throws:
RestApiException
-
generateHttpPassword
public String generateHttpPassword() throws RestApiException
Description copied from interface:AccountApiGenerate a new HTTP password.- Specified by:
generateHttpPasswordin interfaceAccountApi- Returns:
- the generated password.
- Throws:
RestApiException
-
setHttpPassword
public String setHttpPassword(String password) throws RestApiException
Description copied from interface:AccountApiSet a new HTTP password.May only be invoked by administrators.
- Specified by:
setHttpPasswordin interfaceAccountApi- Parameters:
password- the new password,nullto remove the password.- Returns:
- the new password,
nullif the password was removed. - Throws:
RestApiException
-
-