1) Code
2) Result
User is marked deleted.
public void deleteUser(OIMClient oimclient){UserManager usrMgr = oimclient.getService(UserManager.class);try {usrMgr.delete("65", false); // False because we used usr_key. Use true if using User Login} catch (ValidationFailedException e) {// TODO Auto-generated catch blocke.printStackTrace();} catch (UserDeleteException e) {// TODO Auto-generated catch blocke.printStackTrace();} catch (NoSuchUserException e) {// TODO Auto-generated catch blocke.printStackTrace();} catch (AccessDeniedException e) {// TODO Auto-generated catch blocke.printStackTrace();}}
2) Result
User is marked deleted.
3) Alternate methods
delete(java.util.ArrayList userIDs, boolean isUserLogin)
For bulk delete
delete(java.lanj.String attributeName, java.lang.Object attributeValue)
For delete based on condition.
delete(java.util.ArrayList userIDs, boolean isUserLogin)
For bulk delete
delete(java.lanj.String attributeName, java.lang.Object attributeValue)
For delete based on condition.
No comments:
Post a Comment