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
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGroup(String name, Map<String, String> additionalAttributes, User user, Map<String, Object> request) voidaddUserToGroup(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) voidvoidvoiddeleteUser(User user, Map<String, Object> request) getApis()getLabel()getName()getUrl()voidbooleanbooleanisObjectExists(String token, HttpCon con, String uri, String json) booleanisObjectExistsByName(String token, HttpCon con, String uri, String name) booleanisObjectExistsByPath(String token, HttpCon con, String uri) voidloadRemoteKeyMaterial(ConfigManager cfgMgr, String uri) voidremoveUserFromGroup(String token, HttpCon con, String userName, String groupName, int approvalID, Workflow workflow) voidsetUserPassword(User user, Map<String, Object> request) voidshutdown()static Stringvoid
-
Constructor Details
-
OpenShiftTarget
public OpenShiftTarget()
-
-
Method Details
-
createUser
public void createUser(User user, Set<String> attributes, Map<String, Object> request) throws ProvisioningException- Specified by:
createUserin interfaceUserStoreProvider- Throws:
ProvisioningException
-
setUserPassword
- Specified by:
setUserPasswordin interfaceUserStoreProvider- Throws:
ProvisioningException
-
syncUser
public void syncUser(User user, boolean addOnly, Set<String> attributes, Map<String, Object> request) throws ProvisioningException- Specified by:
syncUserin interfaceUserStoreProvider- Throws:
ProvisioningException
-
deleteUser
- Specified by:
deleteUserin interfaceUserStoreProvider- Throws:
ProvisioningException
-
findUser
public User findUser(String userID, Set<String> attributes, Map<String, Object> request) throws ProvisioningException- Specified by:
findUserin interfaceUserStoreProvider- Throws:
ProvisioningException
-
callWS
public String callWS(String token, HttpCon con, String uri) throws IOException, org.apache.http.client.ClientProtocolException - Throws:
IOExceptionorg.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:
IOExceptionorg.apache.http.client.ClientProtocolExceptionProvisioningExceptionorg.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:
IOExceptionorg.apache.http.client.ClientProtocolExceptionProvisioningExceptionorg.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:
IOExceptionorg.apache.http.client.ClientProtocolExceptionProvisioningExceptionorg.json.simple.parser.ParseException
-
callWSDelete
public String callWSDelete(String token, HttpCon con, String uri) throws IOException, org.apache.http.client.ClientProtocolException - Throws:
IOExceptionorg.apache.http.client.ClientProtocolException
-
callWSPut
public String callWSPut(String token, HttpCon con, String uri, String json) throws IOException, org.apache.http.client.ClientProtocolException - Throws:
IOExceptionorg.apache.http.client.ClientProtocolException
-
callWSPatchJson
public String callWSPatchJson(String token, HttpCon con, String uri, String json) throws IOException, org.apache.http.client.ClientProtocolException - Throws:
IOExceptionorg.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:
IOExceptionorg.apache.http.client.ClientProtocolException
-
callWSPost
public String callWSPost(String token, HttpCon con, String uri, String json) throws IOException, org.apache.http.client.ClientProtocolException - Throws:
IOExceptionorg.apache.http.client.ClientProtocolException
-
init
public void init(Map<String, Attribute> cfg, ConfigManager cfgMgr, String name) throws ProvisioningException- Specified by:
initin 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:
addGroupin interfaceUserStoreProviderWithAddGroup- Throws:
ProvisioningException
-
deleteGroup
public void deleteGroup(String name, User user, Map<String, Object> request) throws ProvisioningException- Specified by:
deleteGroupin interfaceUserStoreProviderWithAddGroup- Throws:
ProvisioningException
-
isGroupExists
public boolean isGroupExists(String name, User user, Map<String, Object> request) throws ProvisioningException- Specified by:
isGroupExistsin interfaceUserStoreProviderWithAddGroup- Throws:
ProvisioningException
-
sub2uid
-
getUrl
-
shutdown
- Specified by:
shutdownin interfaceUserStoreProvider- Throws:
ProvisioningException
-
getLabel
-
getGitUrl
-
loadRemoteKeyMaterial
- Throws:
Exception
-
getAnnotations
- Specified by:
getAnnotationsin interfaceUserStoreProviderWithMetadata
-
getLabels
- Specified by:
getLabelsin interfaceUserStoreProviderWithMetadata
-
getName
-