Package com.saasovation.identityaccess.domain.model.identity

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


                    aCommand.getPassword(),
                    new Enablement(
                            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(
View Full Code Here


        return new Date(this.today().getTime() - (TWENTY_FOUR_HOURS * 2));
    }

    protected Person personEntity(Tenant aTenant) {

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

        return person;
View Full Code Here

        return person;
    }

    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(
View Full Code Here

                tenant.registerUser(
                        invitation.invitationId(),
                        "jdoe",
                        FIXTURE_PASSWORD,
                        Enablement.indefiniteEnablement(),
                        new Person(
                                tenant.tenantId(),
                                new FullName("John", "Doe"),
                                new ContactInformation(
                                        new EmailAddress(FIXTURE_USER_EMAIL_ADDRESS),
                                        new PostalAddress(
View Full Code Here

        assertTrue(count >= 1);
    }

    private void generateUserEvents() {
        Tenant tenant = this.tenantAggregate();
        Person person = this.userAggregate().person();

        String invitationId =
                tenant.allAvailableRegistrationInvitations()
                       .iterator()
                       .next()
                       .invitationId();

        for (int idx = 0; idx < 25; ++idx) {

            User user =
                ApplicationServiceRegistry
                    .identityApplicationService()
                    .registerUser(
                        new RegisterUserCommand(
                                tenant.tenantId().id(),
                                invitationId,
                                FIXTURE_USERNAME + idx,
                                FIXTURE_PASSWORD,
                                "Zoe",
                                "Doe",
                                true,
                                null,
                                null,
                                person.contactInformation().emailAddress().address(),
                                person.contactInformation().primaryTelephone().number(),
                                person.contactInformation().secondaryTelephone().number(),
                                person.contactInformation().postalAddress().streetAddress(),
                                person.contactInformation().postalAddress().city(),
                                person.contactInformation().postalAddress().stateProvince(),
                                person.contactInformation().postalAddress().postalCode(),
                                person.contactInformation().postalAddress().countryCode()));

            if ((idx % 2) == 0) {
                PersonNameChanged event =
                        new PersonNameChanged(
                                user.tenantId(),
View Full Code Here

TOP

Related Classes of com.saasovation.identityaccess.domain.model.identity.Person

Copyright © 2018 www.massapicom. 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.