Class GitlabUserProvider
java.lang.Object
com.tremolosecurity.unison.gitlab.provisioning.targets.GitlabUserProvider
- All Implemented Interfaces:
UserStoreProvider
,UserStoreProviderWithAddGroup
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addGroup
(String name, Map<String, String> additionalAttributes, User user, Map<String, Object> request) void
void
void
deleteUser
(User user, Map<String, Object> request) org.gitlab4j.api.models.Group
findGroupByName
(String name) org.gitlab4j.api.GitLabApi
getApi()
getName()
void
boolean
void
setUserPassword
(User user, Map<String, Object> request) void
shutdown()
void
-
Field Details
-
GITLAB_IDENTITIES
- See Also:
-
GITLAB_GROUP_ENTITLEMENTS
- See Also:
-
-
Constructor Details
-
GitlabUserProvider
public GitlabUserProvider()
-
-
Method Details
-
createUser
public void createUser(User user, Set<String> attributes, Map<String, Object> request) throws ProvisioningException- Specified by:
createUser
in interfaceUserStoreProvider
- Throws:
ProvisioningException
-
setUserPassword
- Specified by:
setUserPassword
in interfaceUserStoreProvider
- Throws:
ProvisioningException
-
syncUser
public void syncUser(User user, boolean addOnly, Set<String> attributes, Map<String, Object> request) throws ProvisioningException- Specified by:
syncUser
in interfaceUserStoreProvider
- Throws:
ProvisioningException
-
deleteUser
- Specified by:
deleteUser
in interfaceUserStoreProvider
- Throws:
ProvisioningException
-
findUser
public User findUser(String userID, Set<String> attributes, Map<String, Object> request) throws ProvisioningException- Specified by:
findUser
in interfaceUserStoreProvider
- Throws:
ProvisioningException
-
init
public void init(Map<String, Attribute> cfg, ConfigManager cfgMgr, String name) throws ProvisioningException- Specified by:
init
in interfaceUserStoreProvider
- Throws:
ProvisioningException
-
addGroup
public void addGroup(String name, Map<String, String> additionalAttributes, User user, Map<String, throws ProvisioningExceptionObject> request) - Specified by:
addGroup
in interfaceUserStoreProviderWithAddGroup
- Throws:
ProvisioningException
-
deleteGroup
public void deleteGroup(String name, User user, Map<String, Object> request) throws ProvisioningException- Specified by:
deleteGroup
in interfaceUserStoreProviderWithAddGroup
- Throws:
ProvisioningException
-
isGroupExists
public boolean isGroupExists(String name, User user, Map<String, Object> request) throws ProvisioningException- Specified by:
isGroupExists
in interfaceUserStoreProviderWithAddGroup
- Throws:
ProvisioningException
-
findGroupByName
public org.gitlab4j.api.models.Group findGroupByName(String name) throws org.gitlab4j.api.GitLabApiException - Throws:
org.gitlab4j.api.GitLabApiException
-
getApi
public org.gitlab4j.api.GitLabApi getApi() -
getName
-
shutdown
- Specified by:
shutdown
in interfaceUserStoreProvider
- Throws:
ProvisioningException
-