public interface UserService
| Modifier and Type | Method and Description |
|---|---|
int |
getActiveUserCount()
Deprecated.
|
java.util.List<UserData> |
getAllUsers()
Returns the list of FishEye/Crucible users.
|
int |
getLicensedUserCount() |
UserData |
getMappedUser(java.lang.String repository,
java.lang.String committer)
Get a the UserData of the user that is mapped to a committer in a repository.
|
UserData |
getUser(java.lang.String userName)
Get a UserData object for a named user.
|
UserProfileData |
getUserProfile(java.lang.String userName)
Get a UserProfileData object for a named user.
|
java.util.List<UserData> |
getUsers(java.util.Set<java.lang.String> usernames)
Get a List
|
java.util.List<UserData> getAllUsers() throws ServerException
NotPermittedException - if the effective principal is anonymous
and anonymous access is not allowed (either via disabling global anonymous access, or by restricting
user list visibility)ServerExceptionint getLicensedUserCount()
throws ServerException
NotPermittedException - if the effective principal is anonymous
and anonymous access is not allowedServerException@Deprecated
int getActiveUserCount()
throws ServerException
getLicensedUserCount()NotPermittedException - if the effective principal is anonymous
and anonymous access is not allowedServerExceptionUserData getUser(java.lang.String userName) throws ServerException
NotPermittedException - if the effective principal is anonymous
and anonymous access is not allowedNotFoundException - if there is no user with username userNameServerExceptionjava.util.List<UserData> getUsers(java.util.Set<java.lang.String> usernames)
NotPermittedException - if the effective principal is anonymous
and anonymous access is not allowedUserProfileData getUserProfile(java.lang.String userName) throws ServerException
NotPermittedException - if you are not logged inNotFoundException - if there is no user with username userNameServerExceptionUserData getMappedUser(java.lang.String repository, java.lang.String committer) throws ServerException
repository - the key of the repository for the committercommitter - name of the committerNotPermittedException - if the effective principle does not have permission to access
the repository or if the effective principal is anonymous and anonymous access is not allowedNotFoundException - if the committer cannot be found or the mapping cannot be found.ServerException