public void setLastConnection(final Long lastConnection) { sUserLogin.setLastConnection(lastConnection); }
public SUserImpl(final SUser user) { firstName = user.getFirstName(); lastName = user.getLastName(); password = user.getPassword(); userName = user.getUserName(); jobTitle = user.getJobTitle(); managerUserId = user.getManagerUserId(); createdBy = user.getCreatedBy(); creationDate = user.getCreationDate(); lastUpdate = user.getLastUpdate(); title = user.getTitle(); enabled = user.isEnabled(); iconId = user.getIconId(); }
public SContactInfoImpl(final SContactInfo contactInfo) { this(); userId = contactInfo.getUserId(); personal = contactInfo.isPersonal(); address = contactInfo.getAddress(); building = contactInfo.getBuilding(); city = contactInfo.getCity(); country = contactInfo.getCountry(); email = contactInfo.getEmail(); faxNumber = contactInfo.getFaxNumber(); mobileNumber = contactInfo.getMobileNumber(); phoneNumber = contactInfo.getPhoneNumber(); room = contactInfo.getRoom(); state = contactInfo.getState(); website = contactInfo.getWebsite(); zipCode = contactInfo.getZipCode(); }
@Override public void execute() throws SBonitaException { // FIXME: if RDBMS has foreign keys, getUser, getRole, getGroup can be ommitted: final SUser user = identityService.getUser(userId); final SRole role = identityService.getRole(roleId); final SGroup group = identityService.getGroup(groupId); userMembership = BuilderFactory.get(SUserMembershipBuilderFactory.class).createNewInstance(user.getId(), group.getId(), role.getId()).setAssignedBy(assignedBy) .setAssignedDate(System.currentTimeMillis()).done(); identityService.createUserMembership(userMembership); }
private void addRoleAndGroupToProfile() throws SGroupNotFoundException, SRoleNotFoundException, SProfileMemberCreationException { final SGroup group = identityService.getGroup(groupId); final SRole role = identityService.getRole(roleId); if (group != null && role != null) { sProfileMember = profileService .addRoleAndGroupToProfile(profileId, roleId, groupId, role.getName(), group.getName(), group.getParentPath()); } }
private static ExportedGroup toExportedGroup(final SGroup sGroup) { final ExportedGroup group = new ExportedGroup(); group.setName(sGroup.getName()); group.setParentPath(sGroup.getParentPath()); group.setDescription(sGroup.getDescription()); group.setDisplayName(sGroup.getDisplayName()); return group; }
@Override public void foundExistingMembership(final SUserMembership existingMembership) throws ImportDuplicateInOrganizationException { throw new ImportDuplicateInOrganizationException("There's already a user membership with the name : " + existingMembership.getUsername() + ", the role : " + existingMembership.getRoleName() + "and the group : " + existingMembership.getGroupName()); }
private static ExportedRole toExportedRole(final SRole sRole) { final ExportedRole role = new ExportedRole(sRole.getName()); role.setDisplayName(sRole.getDisplayName()); role.setDescription(sRole.getDescription()); return role; }
public static CustomUserInfoDefinitionImpl convert(final SCustomUserInfoDefinition sDefinition) { final CustomUserInfoDefinitionImpl definition = new CustomUserInfoDefinitionImpl(); definition.setId(sDefinition.getId()); definition.setName(sDefinition.getName()); definition.setDescription(sDefinition.getDescription()); return definition; }
public static CustomUserInfoValueImpl convert(final SCustomUserInfoValue sValue) { if (sValue == null) { return null; } final CustomUserInfoValueImpl value = new CustomUserInfoValueImpl(); value.setDefinitionId(sValue.getDefinitionId()); value.setUserId(sValue.getUserId()); value.setValue(sValue.getValue()); return value; }
private void replaceIcon(EntityUpdateDescriptor updateDescriptor, byte[] content, String filename, SHavingIcon element) throws SRecorderException, SBonitaReadException { SIcon newIcon = createIcon(filename, content); updateDescriptor.addField("iconId", newIcon.getId()); Long previousIconId = element.getIconId(); if (previousIconId != null) { deleteIcon(previousIconId); } }
private void deleteCustomUserInfo(List<SCustomUserInfoDefinition> customUserInfoDefinitions, IdentityService identityService) throws SIdentityException { for (SCustomUserInfoDefinition definition : customUserInfoDefinitions) { identityService.deleteCustomUserInfoDefinition(definition.getId()); } }
public SContactInfoImpl(final SContactInfo contactInfo) { this(); userId = contactInfo.getUserId(); personal = contactInfo.isPersonal(); address = contactInfo.getAddress(); building = contactInfo.getBuilding(); city = contactInfo.getCity(); country = contactInfo.getCountry(); email = contactInfo.getEmail(); faxNumber = contactInfo.getFaxNumber(); mobileNumber = contactInfo.getMobileNumber(); phoneNumber = contactInfo.getPhoneNumber(); room = contactInfo.getRoom(); state = contactInfo.getState(); website = contactInfo.getWebsite(); zipCode = contactInfo.getZipCode(); }
public SUserImpl(final SUser user) { firstName = user.getFirstName(); lastName = user.getLastName(); password = user.getPassword(); userName = user.getUserName(); jobTitle = user.getJobTitle(); managerUserId = user.getManagerUserId(); createdBy = user.getCreatedBy(); creationDate = user.getCreationDate(); lastUpdate = user.getLastUpdate(); title = user.getTitle(); enabled = user.isEnabled(); iconId = user.getIconId(); }
@Override public void execute() throws SBonitaException { // FIXME: if RDBMS has foreign keys, getUser, getRole, getGroup can be ommitted: final SUser user = identityService.getUser(userId); final SRole role = identityService.getRole(roleId); final SGroup group = identityService.getGroup(groupId); userMembership = BuilderFactory.get(SUserMembershipBuilderFactory.class).createNewInstance(user.getId(), group.getId(), role.getId()).setAssignedBy(assignedBy) .setAssignedDate(System.currentTimeMillis()).done(); identityService.createUserMembership(userMembership); }
private void addRoleAndGroupToProfile() throws SGroupNotFoundException, SRoleNotFoundException, SProfileMemberCreationException { final SGroup group = identityService.getGroup(groupId); final SRole role = identityService.getRole(roleId); if (group != null && role != null) { sProfileMember = profileService .addRoleAndGroupToProfile(profileId, roleId, groupId, role.getName(), group.getName(), group.getParentPath()); } }
private static ExportedGroup toExportedGroup(final SGroup sGroup) { final ExportedGroup group = new ExportedGroup(); group.setName(sGroup.getName()); group.setParentPath(sGroup.getParentPath()); group.setDescription(sGroup.getDescription()); group.setDisplayName(sGroup.getDisplayName()); return group; }
public static CustomUserInfoValueImpl convert(final SCustomUserInfoValue sValue) { if (sValue == null) { return null; } final CustomUserInfoValueImpl value = new CustomUserInfoValueImpl(); value.setDefinitionId(sValue.getDefinitionId()); value.setUserId(sValue.getUserId()); value.setValue(sValue.getValue()); return value; }
private void replaceIcon(EntityUpdateDescriptor updateDescriptor, byte[] content, String filename, SHavingIcon element) throws SRecorderException, SBonitaReadException { SIcon newIcon = createIcon(filename, content); updateDescriptor.addField("iconId", newIcon.getId()); Long previousIconId = element.getIconId(); if (previousIconId != null) { deleteIcon(previousIconId); } }
public void setLastConnection(final Long lastConnection) { sUserLogin.setLastConnection(lastConnection); }