Class OpenShiftTarget
java.lang.Object
com.tremolosecurity.unison.openshiftv3.OpenShiftTarget
- All Implemented Interfaces:
UserStoreProvider
,UserStoreProviderWithAddGroup
,UserStoreProviderWithMetadata
public class OpenShiftTarget
extends Object
implements UserStoreProviderWithAddGroup, UserStoreProviderWithMetadata
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addGroup
(String name, Map<String, String> additionalAttributes, User user, Map<String, Object> request) void
addUserToGroup
(String token, HttpCon con, String userName, String groupName, int approvalID, Workflow workflow) callWSDelete
(String token, HttpCon con, String uri) callWSPatchJson
(String token, HttpCon con, String uri, String json) callWSPost
(String token, HttpCon con, String uri, String json) void
void
void
deleteUser
(User user, Map<String, Object> request) getApis()
getLabel()
getName()
getUrl()
void
boolean
boolean
isObjectExists
(String token, HttpCon con, String uri, String json) boolean
isObjectExistsByName
(String token, HttpCon con, String uri, String name) boolean
isObjectExistsByPath
(String token, HttpCon con, String uri) void
loadRemoteKeyMaterial
(ConfigManager cfgMgr, String uri) void
removeUserFromGroup
(String token, HttpCon con, String userName, String groupName, int approvalID, Workflow workflow) void
setUserPassword
(User user, Map<String, Object> request) void
shutdown()
static String
void
-
Constructor Details
-
OpenShiftTarget
public OpenShiftTarget()
-
-
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
-
callWS
public String callWS(String token, HttpCon con, String uri) throws IOException, org.apache.http.client.ClientProtocolException - Throws:
IOException
org.apache.http.client.ClientProtocolException
-
isObjectExists
public boolean isObjectExists(String token, HttpCon con, String uri, String json) 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
-
isObjectExistsByName
public boolean isObjectExistsByName(String token, HttpCon con, String uri, String name) 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
-
isObjectExistsByPath
public boolean isObjectExistsByPath(String token, HttpCon con, String uri) 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
-
callWSDelete
public String callWSDelete(String token, HttpCon con, String uri) throws IOException, org.apache.http.client.ClientProtocolException - Throws:
IOException
org.apache.http.client.ClientProtocolException
-
callWSPut
public String callWSPut(String token, HttpCon con, String uri, String json) throws IOException, org.apache.http.client.ClientProtocolException - Throws:
IOException
org.apache.http.client.ClientProtocolException
-
callWSPatchJson
public String callWSPatchJson(String token, HttpCon con, String uri, String json) throws IOException, org.apache.http.client.ClientProtocolException - Throws:
IOException
org.apache.http.client.ClientProtocolException
-
callWSPatchJson
public String callWSPatchJson(String token, HttpCon con, String uri, String json, String contentType) throws IOException, org.apache.http.client.ClientProtocolException - Throws:
IOException
org.apache.http.client.ClientProtocolException
-
callWSPost
public String callWSPost(String token, HttpCon con, String uri, String json) throws IOException, org.apache.http.client.ClientProtocolException - Throws:
IOException
org.apache.http.client.ClientProtocolException
-
init
public void init(Map<String, Attribute> cfg, ConfigManager cfgMgr, String name) throws ProvisioningException- Specified by:
init
in interfaceUserStoreProvider
- Throws:
ProvisioningException
-
getApis
-
createClient
-
getAuthToken
-
addUserToGroup
-
removeUserFromGroup
-
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
-
sub2uid
-
getUrl
-
shutdown
- Specified by:
shutdown
in interfaceUserStoreProvider
- Throws:
ProvisioningException
-
getLabel
-
getGitUrl
-
loadRemoteKeyMaterial
- Throws:
Exception
-
getAnnotations
- Specified by:
getAnnotations
in interfaceUserStoreProviderWithMetadata
-
getLabels
- Specified by:
getLabels
in interfaceUserStoreProviderWithMetadata
-
getName
-