Class DefaultUserService
- java.lang.Object
-
- io.jenkins.plugins.kobiton.services.user.DefaultUserService
-
- All Implemented Interfaces:
UserService
public class DefaultUserService extends Object implements UserService
-
-
Field Summary
-
Fields inherited from interface io.jenkins.plugins.kobiton.services.user.UserService
CURRENT_USER_URL, USER_BASE_URL
-
-
Constructor Summary
Constructors Constructor Description DefaultUserService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetUrl(String endpoint)Get URL for API callUsergetUser(Credential credential)Get user info from credentialbooleanisUserDisabled(Credential credential)Check if user exists based on credential
-
-
-
Method Detail
-
getUrl
public String getUrl(String endpoint)
Get URL for API call- Specified by:
getUrlin interfaceUserService
-
getUser
public User getUser(Credential credential) throws IOException
Get user info from credential- Parameters:
credential- credential- Returns:
- User object
- Throws:
IOException- IOException
-
isUserDisabled
public boolean isUserDisabled(Credential credential) throws IOException
Check if user exists based on credential- Parameters:
credential- credential- Returns:
- boolean true if user exists
- Throws:
IOException- IOException
-
-