Class MatterMostProvider
java.lang.Object
com.tremolosecurity.provisioning.core.providers.MatterMostProvider
- All Implemented Interfaces:
UserStoreProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncallDeleteWS
(HttpCon con, String uri) callWSPost
(HttpCon con, String uri, String json) void
void
deleteUser
(User user, Map<String, Object> request) void
org.json.simple.JSONObject
loadUserJson
(String userID, HttpCon con) void
setUserPassword
(User user, Map<String, Object> request) void
shutdown()
void
-
Constructor Details
-
MatterMostProvider
public MatterMostProvider()
-
-
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
-
loadUserJson
public org.json.simple.JSONObject loadUserJson(String userID, HttpCon con) throws IOException, org.apache.http.client.ClientProtocolException, ProvisioningException, org.json.simple.parser.ParseException - Throws:
IOException
org.apache.http.client.ClientProtocolException
ProvisioningException
org.json.simple.parser.ParseException
-
init
public void init(Map<String, Attribute> cfg, ConfigManager cfgMgr, String name) throws ProvisioningException- Specified by:
init
in interfaceUserStoreProvider
- Throws:
ProvisioningException
-
shutdown
- Specified by:
shutdown
in interfaceUserStoreProvider
- Throws:
ProvisioningException
-
createClient
-
callWS
public String callWS(HttpCon con, String uri) throws IOException, org.apache.http.client.ClientProtocolException, ProvisioningException - Throws:
IOException
org.apache.http.client.ClientProtocolException
ProvisioningException
-
callDeleteWS
public String callDeleteWS(HttpCon con, String uri) throws IOException, org.apache.http.client.ClientProtocolException, ProvisioningException - Throws:
IOException
org.apache.http.client.ClientProtocolException
ProvisioningException
-
callWSPost
public String callWSPost(HttpCon con, String uri, String json) throws IOException, org.apache.http.client.ClientProtocolException, ProvisioningException - Throws:
IOException
org.apache.http.client.ClientProtocolException
ProvisioningException
-
callWSPut
public String callWSPut(HttpCon con, String uri, String json) throws IOException, org.apache.http.client.ClientProtocolException, ProvisioningException - Throws:
IOException
org.apache.http.client.ClientProtocolException
ProvisioningException
-