private Map<String, SCustomUserInfoDefinition> importCustomUserInfoDefinitions( final List<ExportedCustomUserInfoDefinition> customUserInfoDefinitionCreators) throws SIdentityException, ImportDuplicateInOrganizationException { final CustomUserInfoDefinitionImporter importer = new CustomUserInfoDefinitionImporter(serviceAccessor, strategy); return importer.importCustomUserInfoDefinitions(customUserInfoDefinitionCreators); }
public void delete(SCustomUserInfoValue value) throws SIdentityException { if(value != null) { service.deleteCustomUserInfoValue(value); } }
/** * Has this updater at least one field to update (directly or in its personal / professional contact data)? * * @return true if there is at least one field to update */ public boolean hasFields() { return !getFields().isEmpty() || getPersoContactUpdater() != null && getPersoContactUpdater().hasFields() || getProContactUpdater() != null && getProContactUpdater().hasFields(); }
private SUser addUser(final ExportedUser user) throws SUserCreationException { SUser sUser; if (user.isPasswordEncrypted()) { sUser = identityService.createUserWithoutEncryptingPassword(constructSUser(user)); } else { sUser = identityService.createUser(constructSUser(user)); } return sUser; }
@Override public void execute() throws SBonitaException { if (userName != null) { sUser = identityService.getUserByUserName(userName); } else { sUser = identityService.getUser(userId); } }
@Override public void foundExistingCustomUserInfoDefinition(final SCustomUserInfoDefinition existingUserInfoDefinition, final ExportedCustomUserInfoDefinition newUserInfoDefinition) throws SIdentityException { // only description is updated as it only matches if they have the same name final EntityUpdateDescriptor updateDescriptor = getUpdateDescriptor(newUserInfoDefinition.getDescription()); identityService.updateCustomUserInfoDefinition(existingUserInfoDefinition, updateDescriptor); }
private Map<String, SUser> importUsers(final List<ExportedUser> users, final Map<String, SCustomUserInfoDefinition> customUserInfoDefinitions) throws SBonitaException { final CustomUserInfoValueImporter userInfoValueImporter = new CustomUserInfoValueImporter(userInfoValueAPI, customUserInfoDefinitions); final UserImporter userImporter = new UserImporter(serviceAccessor, strategy, SessionInfos.getUserIdFromSession(), userInfoValueImporter); return userImporter.importUsers(users); }
@Override public void execute() throws SBonitaException { if (userId == -1) { number = identityService.getNumberOfUserMemberships(); } else { number = identityService.getNumberOfUserMembershipsOfUser(userId); } }
@Override public void execute() throws SBonitaException { if (userMembershipId == -1) { sUserMembership = identityService.getUserMembership(userId, groupId, roleId); } else { sUserMembership = identityService.getUserMembership(userMembershipId); } }
/** * Has this updater at least one field to update (directly or in its personal / professional contact data)? * * @return true if there is at least one field to update */ public boolean hasFields() { return !getFields().isEmpty() || getPersoContactUpdater() != null && getPersoContactUpdater().hasFields() || getProContactUpdater() != null && getProContactUpdater().hasFields(); }
private SUser addUser(final ExportedUser user) throws SUserCreationException { SUser sUser; if (user.isPasswordEncrypted()) { sUser = identityService.createUserWithoutEncryptingPassword(constructSUser(user)); } else { sUser = identityService.createUser(constructSUser(user)); } return sUser; }
@Override public void execute() throws SBonitaException { if (userName != null) { sUser = identityService.getUserByUserName(userName); } else { sUser = identityService.getUser(userId); } }
@Override public void foundExistingCustomUserInfoDefinition(final SCustomUserInfoDefinition existingUserInfoDefinition, final ExportedCustomUserInfoDefinition newUserInfoDefinition) throws SIdentityException { // only description is updated as it only matches if they have the same name final EntityUpdateDescriptor updateDescriptor = getUpdateDescriptor(newUserInfoDefinition.getDescription()); identityService.updateCustomUserInfoDefinition(existingUserInfoDefinition, updateDescriptor); }
private Map<String, SUser> importUsers(final List<ExportedUser> users, final Map<String, SCustomUserInfoDefinition> customUserInfoDefinitions) throws SBonitaException { final CustomUserInfoValueImporter userInfoValueImporter = new CustomUserInfoValueImporter(userInfoValueAPI, customUserInfoDefinitions); final UserImporter userImporter = new UserImporter(serviceAccessor, strategy, SessionInfos.getUserIdFromSession(), userInfoValueImporter); return userImporter.importUsers(users); }
@Override public void execute() throws SBonitaException { if (userId == -1) { number = identityService.getNumberOfUserMemberships(); } else { number = identityService.getNumberOfUserMembershipsOfUser(userId); } }
public void delete(SCustomUserInfoValue value) throws SIdentityException { if(value != null) { service.deleteCustomUserInfoValue(value); } }