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

Examples of com.saasovation.identityaccess.domain.model.identity.User.tenantId()


        ApplicationServiceRegistry
            .identityApplicationService()
            .changeUserSecondaryTelephone(
                    new ChangeSecondaryTelephoneCommand(
                            user.tenantId().id(),
                            user.username(),
                            "777-555-1212"));

        User changedUser =
                DomainRegistry
View Full Code Here


        ApplicationServiceRegistry
            .identityApplicationService()
            .changeUserPassword(
                    new ChangeUserPasswordCommand(
                            user.tenantId().id(),
                            user.username(),
                            FIXTURE_PASSWORD,
                            "THIS.IS.JOE'S.NEW.PASSWORD"));

        UserDescriptor userDescriptor =
View Full Code Here

        UserDescriptor userDescriptor =
                ApplicationServiceRegistry
                    .identityApplicationService()
                    .authenticateUser(new AuthenticateUserCommand(
                            user.tenantId().id(),
                            user.username(),
                            "THIS.IS.JOE'S.NEW.PASSWORD"));

        assertNotNull(userDescriptor);
        assertEquals(user.username(), userDescriptor.username());
View Full Code Here

        ApplicationServiceRegistry
            .identityApplicationService()
            .changeUserPersonalName(
                    new ChangeUserPersonalNameCommand(
                            user.tenantId().id(),
                            user.username(),
                            "World",
                            "Peace"));

        User changedUser =
View Full Code Here

        ApplicationServiceRegistry
            .identityApplicationService()
            .defineUserEnablement(
                    new DefineUserEnablementCommand(
                            user.tenantId().id(),
                            user.username(),
                            true,
                            now,
                            then));
View Full Code Here

        DomainRegistry.userRepository().add(user);

        UserDescriptor queriedUserDescriptor =
                ApplicationServiceRegistry
                    .identityApplicationService()
                    .userDescriptor(user.tenantId().id(), user.username());

        assertNotNull(user);
        assertEquals(user.userDescriptor(), queriedUserDescriptor);
    }
}
View Full Code Here

                                person.contactInformation().postalAddress().countryCode()));

            if ((idx % 2) == 0) {
                PersonNameChanged event =
                        new PersonNameChanged(
                                user.tenantId(),
                                user.username(),
                                user.person().name());

                this.eventStore.append(event);
            }
View Full Code Here

            }

            if ((idx % 3) == 0) {
                UserPasswordChanged event =
                        new UserPasswordChanged(
                                user.tenantId(),
                                user.username());

                this.eventStore.append(event);
            }
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.