Examples of FullName


Examples of com.saasovation.identityaccess.domain.model.identity.FullName

    @Transactional
    public void changeUserPersonalName(ChangeUserPersonalNameCommand aCommand) {
        User user = this.existingUser(aCommand.getTenantId(), aCommand.getUsername());

        user.person().changeName(new FullName(aCommand.getFirstName(), aCommand.getLastName()));
    }
View Full Code Here

Examples of com.saasovation.identityaccess.domain.model.identity.FullName

        return
            this.tenantProvisioningService().provisionTenant(
                        aCommand.getTenantName(),
                        aCommand.getTenantDescription(),
                        new FullName(
                                aCommand.getAdministorFirstName(),
                                aCommand.getAdministorLastName()),
                        new EmailAddress(aCommand.getEmailAddress()),
                        new PostalAddress(
                                aCommand.getAddressStateProvince(),
View Full Code Here

Examples of com.saasovation.identityaccess.domain.model.identity.FullName

                            aCommand.isEnabled(),
                            aCommand.getStartDate(),
                            aCommand.getEndDate()),
                    new Person(
                            new TenantId(aCommand.getTenantId()),
                            new FullName(aCommand.getFirstName(), aCommand.getLastName()),
                            new ContactInformation(
                                    new EmailAddress(aCommand.getEmailAddress()),
                                    new PostalAddress(
                                            aCommand.getAddressStateProvince(),
                                            aCommand.getAddressCity(),
View Full Code Here

Examples of com.saasovation.identityaccess.domain.model.identity.FullName

    protected Person personEntity(Tenant aTenant) {

        Person person =
            new Person(
                    aTenant.tenantId(),
                    new FullName("John", "Doe"),
                    this.contactInformation());

        return person;
    }
View Full Code Here

Examples of com.saasovation.identityaccess.domain.model.identity.FullName

    protected Person personEntity2(Tenant aTenant) {

        Person person =
            new Person(
                    aTenant.tenantId(),
                    new FullName("Zoe", "Doe"),
                    new ContactInformation(
                            new EmailAddress(FIXTURE_USER_EMAIL_ADDRESS2),
                            new PostalAddress(
                                    "123 Pearl Street",
                                    "Boulder",
View Full Code Here

Examples of com.saasovation.identityaccess.domain.model.identity.FullName

                    DomainRegistry
                        .tenantProvisioningService()
                        .provisionTenant(
                                FIXTURE_TENANT_NAME,
                                FIXTURE_TENANT_DESCRIPTION,
                                new FullName("John", "Doe"),
                                new EmailAddress(FIXTURE_USER_EMAIL_ADDRESS),
                                new PostalAddress(
                                        "123 Pearl Street",
                                        "Boulder",
                                        "CO",
View Full Code Here

Examples of com.saasovation.identityaccess.domain.model.identity.FullName

                        "jdoe",
                        FIXTURE_PASSWORD,
                        Enablement.indefiniteEnablement(),
                        new Person(
                                tenant.tenantId(),
                                new FullName("John", "Doe"),
                                new ContactInformation(
                                        new EmailAddress(FIXTURE_USER_EMAIL_ADDRESS),
                                        new PostalAddress(
                                                "123 Pearl Street",
                                                "Boulder",
View Full Code Here

Examples of com.saasovation.identityaccess.domain.model.identity.FullName

        aFirstNamePrefix = aFirstNamePrefix.toLowerCase();
        aLastNamePrefix = aLastNamePrefix.toLowerCase();

        for (User user : this.repository().values()) {
            if (user.tenantId().equals(aTenantId)) {
                FullName name = user.person().name();
                if (name.firstName().toLowerCase().startsWith(aFirstNamePrefix)) {
                    if (name.lastName().toLowerCase().startsWith(aLastNamePrefix)) {
                        users.add(user);
                    }
                }
            }
        }
View Full Code Here

Examples of org.apache.jdo.tck.query.result.classes.FullName

        // query parameters
        Object[] parameters = {new BigDecimal("2000")};       
        // expected result
        List expectedResult = Arrays.asList(new Object[] {
            new FullName("emp1First", "emp1Last"),
            new FullName("emp2First", "emp2Last"),
            new FullName("emp5First", "emp5Last")});

        // execute query
        executeJDOQuery(ASSERTION_FAILED, query, singleStringQuery, true,
                parameters, expectedResult, true);
    }
View Full Code Here

Examples of org.apache.jdo.tck.query.result.classes.FullName

        // query parameters
        Object[] parameters = {new BigDecimal("2000")};       
        // expected result
        List expectedResult = Arrays.asList(new Object[] {
            new FullName("emp1First", "emp1Last"),
            new FullName("emp2First", "emp2Last"),
            new FullName("emp5First", "emp5Last")});

        // execute query
        executeJDOQuery(ASSERTION_FAILED, query, singleStringQuery, true,
                parameters, expectedResult, true);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.