Class AccountApi.NotImplemented
- java.lang.Object
-
- com.google.gerrit.extensions.api.accounts.AccountApi.NotImplemented
-
- All Implemented Interfaces:
AccountApi
- Enclosing interface:
- AccountApi
public static class AccountApi.NotImplemented extends Object implements AccountApi
A default implementation which allows source compatibility when adding new methods to the interface.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.gerrit.extensions.api.accounts.AccountApi
AccountApi.NotImplemented
-
-
Constructor Summary
Constructors Constructor Description NotImplemented()
-
Method Summary
-
-
-
Method Detail
-
get
public AccountInfo get() throws RestApiException
- Specified by:
get
in interfaceAccountApi
- Throws:
RestApiException
-
detail
public AccountDetailInfo detail() throws RestApiException
- Specified by:
detail
in interfaceAccountApi
- Throws:
RestApiException
-
getActive
public boolean getActive() throws RestApiException
- Specified by:
getActive
in interfaceAccountApi
- Throws:
RestApiException
-
setActive
public void setActive(boolean active) throws RestApiException
- Specified by:
setActive
in interfaceAccountApi
- Throws:
RestApiException
-
getAvatarUrl
public String getAvatarUrl(int size) throws RestApiException
- Specified by:
getAvatarUrl
in interfaceAccountApi
- Throws:
RestApiException
-
getPreferences
public GeneralPreferencesInfo getPreferences() throws RestApiException
- Specified by:
getPreferences
in interfaceAccountApi
- Throws:
RestApiException
-
setPreferences
public GeneralPreferencesInfo setPreferences(GeneralPreferencesInfo in) throws RestApiException
- Specified by:
setPreferences
in interfaceAccountApi
- Throws:
RestApiException
-
getDiffPreferences
public DiffPreferencesInfo getDiffPreferences() throws RestApiException
- Specified by:
getDiffPreferences
in interfaceAccountApi
- Throws:
RestApiException
-
setDiffPreferences
public DiffPreferencesInfo setDiffPreferences(DiffPreferencesInfo in) throws RestApiException
- Specified by:
setDiffPreferences
in interfaceAccountApi
- Throws:
RestApiException
-
getEditPreferences
public EditPreferencesInfo getEditPreferences() throws RestApiException
- Specified by:
getEditPreferences
in interfaceAccountApi
- Throws:
RestApiException
-
setEditPreferences
public EditPreferencesInfo setEditPreferences(EditPreferencesInfo in) throws RestApiException
- Specified by:
setEditPreferences
in interfaceAccountApi
- Throws:
RestApiException
-
getWatchedProjects
public List<ProjectWatchInfo> getWatchedProjects() throws RestApiException
- Specified by:
getWatchedProjects
in interfaceAccountApi
- Throws:
RestApiException
-
setWatchedProjects
public List<ProjectWatchInfo> setWatchedProjects(List<ProjectWatchInfo> in) throws RestApiException
- Specified by:
setWatchedProjects
in interfaceAccountApi
- Throws:
RestApiException
-
deleteWatchedProjects
public void deleteWatchedProjects(List<ProjectWatchInfo> in) throws RestApiException
- Specified by:
deleteWatchedProjects
in interfaceAccountApi
- Throws:
RestApiException
-
starChange
public void starChange(String changeId) throws RestApiException
- Specified by:
starChange
in interfaceAccountApi
- Throws:
RestApiException
-
unstarChange
public void unstarChange(String changeId) throws RestApiException
- Specified by:
unstarChange
in interfaceAccountApi
- Throws:
RestApiException
-
getGroups
public List<GroupInfo> getGroups() throws RestApiException
- Specified by:
getGroups
in interfaceAccountApi
- Throws:
RestApiException
-
getEmails
public List<EmailInfo> getEmails() throws RestApiException
- Specified by:
getEmails
in interfaceAccountApi
- Throws:
RestApiException
-
addEmail
public void addEmail(EmailInput input) throws RestApiException
- Specified by:
addEmail
in interfaceAccountApi
- Throws:
RestApiException
-
deleteEmail
public void deleteEmail(String email) throws RestApiException
- Specified by:
deleteEmail
in interfaceAccountApi
- Throws:
RestApiException
-
createEmail
public EmailApi createEmail(EmailInput input) throws RestApiException
- Specified by:
createEmail
in interfaceAccountApi
- Throws:
RestApiException
-
email
public EmailApi email(String email) throws RestApiException
- Specified by:
email
in interfaceAccountApi
- Throws:
RestApiException
-
setStatus
public void setStatus(String status) throws RestApiException
- Specified by:
setStatus
in interfaceAccountApi
- Throws:
RestApiException
-
setDisplayName
public void setDisplayName(String displayName) throws RestApiException
- Specified by:
setDisplayName
in interfaceAccountApi
- Throws:
RestApiException
-
listSshKeys
public List<SshKeyInfo> listSshKeys() throws RestApiException
- Specified by:
listSshKeys
in interfaceAccountApi
- Throws:
RestApiException
-
addSshKey
public SshKeyInfo addSshKey(String key) throws RestApiException
- Specified by:
addSshKey
in interfaceAccountApi
- Throws:
RestApiException
-
deleteSshKey
public void deleteSshKey(int seq) throws RestApiException
- Specified by:
deleteSshKey
in interfaceAccountApi
- Throws:
RestApiException
-
putGpgKeys
public Map<String,GpgKeyInfo> putGpgKeys(List<String> add, List<String> remove) throws RestApiException
- Specified by:
putGpgKeys
in interfaceAccountApi
- Throws:
RestApiException
-
gpgKey
public GpgKeyApi gpgKey(String id) throws RestApiException
- Specified by:
gpgKey
in interfaceAccountApi
- Throws:
RestApiException
-
listGpgKeys
public Map<String,GpgKeyInfo> listGpgKeys() throws RestApiException
- Specified by:
listGpgKeys
in interfaceAccountApi
- Throws:
RestApiException
-
listAgreements
public List<AgreementInfo> listAgreements() throws RestApiException
- Specified by:
listAgreements
in interfaceAccountApi
- Throws:
RestApiException
-
signAgreement
public void signAgreement(String agreementName) throws RestApiException
- Specified by:
signAgreement
in interfaceAccountApi
- Throws:
RestApiException
-
index
public void index() throws RestApiException
- Specified by:
index
in interfaceAccountApi
- Throws:
RestApiException
-
getExternalIds
public List<AccountExternalIdInfo> getExternalIds() throws RestApiException
- Specified by:
getExternalIds
in interfaceAccountApi
- Throws:
RestApiException
-
deleteExternalIds
public void deleteExternalIds(List<String> externalIds) throws RestApiException
- Specified by:
deleteExternalIds
in interfaceAccountApi
- Throws:
RestApiException
-
deleteDraftComments
public List<DeletedDraftCommentInfo> deleteDraftComments(DeleteDraftCommentsInput input) throws RestApiException
- Specified by:
deleteDraftComments
in interfaceAccountApi
- Throws:
RestApiException
-
setName
public void setName(String name) throws RestApiException
- Specified by:
setName
in interfaceAccountApi
- Throws:
RestApiException
-
generateHttpPassword
public String generateHttpPassword() throws RestApiException
Description copied from interface:AccountApi
Generate a new HTTP password.- Specified by:
generateHttpPassword
in interfaceAccountApi
- Returns:
- the generated password.
- Throws:
RestApiException
-
setHttpPassword
public String setHttpPassword(String httpPassword) throws RestApiException
Description copied from interface:AccountApi
Set a new HTTP password.May only be invoked by administrators.
- Specified by:
setHttpPassword
in interfaceAccountApi
- Parameters:
httpPassword
- the new password,null
to remove the password.- Returns:
- the new password,
null
if the password was removed. - Throws:
RestApiException
-
-