@Override public User execute() throws IdentityStoreException, UserNotFoundException { return identityStore.getUser(claim); } }).pushEvent(IdentityStoreInterceptorConstants.POST_GET_USER_BY_CLAIM, (eventProperties) -> {
@Override public List<User> listUsers(List<Claim> claims, int offset, int length, String domainName) throws IdentityStoreException { return identityStore.listUsers(claims, offset, length, domainName); }
@Override public List<Claim> execute() throws IdentityStoreException, UserNotFoundException { return identityStore.getClaimsOfUser(uniqueUserId); } }).pushEvent(IdentityStoreInterceptorConstants.POST_GET_CLAIMS_OF_USER_BY_ID, (eventProperties) -> {
public RecoveryProcessor() { List<NotificationSendingModule> notificationSendingModules = IdentityMgtConfig.getInstance().getNotificationSendingModules(); this.defaultModule = notificationSendingModules.get(0); for (NotificationSendingModule module : notificationSendingModules) { this.modules.put(module.getNotificationType(), module); } this.dataStore = IdentityMgtConfig.getInstance().getRecoveryDataStore(); this.notificationSender = new NotificationSender(); questionProcessor = new ChallengeQuestionProcessor(); }
@Override public String getUserIdentifier() { return user.getUniqueUserId(); } }
@Override public Void execute() throws IdentityStoreException, UserNotFoundException { identityStore.updateUserCredentials(uniqueUserId, credentialsToAdd, credentialsToRemove); return null; } }).pushEvent(IdentityStoreInterceptorConstants.POST_UPDATE_USER_CREDENTIALS_PATCH, (eventProperties) -> {
@Override public Void execute() throws IdentityStoreException, UserNotFoundException { identityStore.updateGroupsOfUser(uniqueUserId, uniqueGroupIdsToAdd, uniqueGroupIdsToRemove); return null; } }).pushEvent(IdentityStoreInterceptorConstants.POST_UPDATE_GROUPS_OF_USER_PATCH, (eventProperties) -> {
@Override public void updateGroupClaims(String uniqueGroupId, List<Claim> claims) throws IdentityStoreException, GroupNotFoundException { identityStore.updateGroupClaims(uniqueGroupId, claims); }
/** * What is this ? */ @Override public int getExecutionOrderId() { int orderId = getOrderId(); if (orderId != IdentityCoreConstants.EVENT_LISTENER_ORDER_ID) { return orderId; } return 50; }
@Override public List<Group> listGroups(MetaClaim metaClaim, String filterPattern, int offset, int length, String domainName) throws IdentityStoreException { return identityStore.listGroups(metaClaim, filterPattern, offset, length, domainName); }
@Override public void updateUsersOfGroup(String uniqueGroupId, List<String> uniqueUserIdsToAdd, List<String> uniqueUserIdsToRemove) throws IdentityStoreException { identityStore.updateUsersOfGroup(uniqueGroupId, uniqueUserIdsToAdd, uniqueUserIdsToRemove); }
@Override public List<User> execute() throws IdentityStoreException { return identityStore.addUsers(userBeans); } }).pushEvent(IdentityStoreInterceptorConstants.POST_ADD_USERS, (eventProperties) -> {
/** * Get claims of this group for given URIs. * * @param metaClaims Claim URIs that needs to be retrieved. * @return List of Group claims. * @throws IdentityStoreException Identity store exception. */ public List<Claim> getClaims(List<MetaClaim> metaClaims) throws IdentityStoreException, GroupNotFoundException { return identityStore.getClaimsOfGroup(uniqueGroupId, metaClaims); }
@Override public List<Group> execute() throws IdentityStoreException { return identityStore.addGroups(groupBeans); } }).pushEvent(IdentityStoreInterceptorConstants.POST_ADD_GROUPS, (eventProperties) -> {
public RecoveryProcessor() { List<NotificationSendingModule> notificationSendingModules = IdentityMgtConfig.getInstance().getNotificationSendingModules(); this.defaultModule = notificationSendingModules.get(0); for (NotificationSendingModule module : notificationSendingModules) { this.modules.put(module.getNotificationType(), module); } this.dataStore = IdentityMgtConfig.getInstance().getRecoveryDataStore(); this.notificationSender = new NotificationSender(); questionProcessor = new ChallengeQuestionProcessor(); }
@Override public List<User> execute() throws IdentityStoreException { return identityStore.listUsers(metaClaim, filterPattern, offset, length, domainName); } }).pushEvent(IdentityStoreInterceptorConstants.POST_LIST_USERS_BY_META_CLAIM_DOMAIN, (eventProperties) -> {
/** * Get claims of this user for given URIs. * * @param metaClaims Claim URIs that needs to be retrieved. * @return List of User claims. * @throws IdentityStoreException Identity store exception. */ public List<Claim> getClaims(List<MetaClaim> metaClaims) throws IdentityStoreException, UserNotFoundException { return identityStore.getClaimsOfUser(uniqueUserId, metaClaims); }
@Override public void updateGroupsOfUser(String uniqueUserId, List<String> uniqueGroupIdsToAdd, List<String> uniqueGroupIdsToRemove) throws IdentityStoreException { identityStore.updateGroupsOfUser(uniqueUserId, uniqueGroupIdsToAdd, uniqueGroupIdsToRemove); }
@Override public List<User> execute() throws IdentityStoreException { return identityStore.addUsers(userBeans, domainName); } }).pushEvent(IdentityStoreInterceptorConstants.POST_ADD_USERS_BY_DOMAIN, (eventProperties) -> {
/** * Get claims of this group. * * @return List of Group claims. * @throws IdentityStoreException Identity store exception. */ public List<Claim> getClaims() throws IdentityStoreException, GroupNotFoundException { return identityStore.getClaimsOfGroup(this.uniqueGroupId); }