public class UserAccountConnectorServiceClient extends Object
| Constructor and Description |
|---|
UserAccountConnectorServiceClient(String cookie,
String backendServerURL,
org.apache.axis2.context.ConfigurationContext configCtx) |
UserAccountConnectorServiceClient(String username,
String password,
String backendServerURL,
org.apache.axis2.context.ConfigurationContext configCtx) |
| Modifier and Type | Method and Description |
|---|---|
void |
associateTwoAccounts(String user1,
String user2)
Associate two accounts as Admin
|
void |
createUserAccountAssociation(String userName,
String[] password)
Create new user account association
|
void |
deleteUserAccountAssociation(String userName)
Delete an existing user account association
|
org.wso2.carbon.identity.user.account.association.stub.types.UserAccountAssociationDTO[] |
getAccountAssociations(String userName)
Get association of a user as an admin
|
org.wso2.carbon.identity.user.account.association.stub.types.UserAccountAssociationDTO[] |
getAccountAssociationsOfUser()
Get all associated accounts of the logged in user
|
boolean |
switchLoggedInUser(String userName)
Switch logged in user account to the required associated user account
|
public UserAccountConnectorServiceClient(String cookie, String backendServerURL, org.apache.axis2.context.ConfigurationContext configCtx) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultpublic void createUserAccountAssociation(String userName, String[] password) throws Exception
userName - password - Exceptionpublic void associateTwoAccounts(String user1, String user2) throws Exception
user1 - username1user2 - username2Exceptionpublic void deleteUserAccountAssociation(String userName) throws Exception
userName - Exceptionpublic org.wso2.carbon.identity.user.account.association.stub.types.UserAccountAssociationDTO[] getAccountAssociationsOfUser()
throws Exception
Exceptionpublic org.wso2.carbon.identity.user.account.association.stub.types.UserAccountAssociationDTO[] getAccountAssociations(String userName) throws Exception
userName - username of user to get associations ofExceptionCopyright © 2007–2016 WSO2. All rights reserved.