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

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


        ApplicationServiceRegistry
            .identityApplicationService()
            .changeUserPostalAddress(
                    new ChangePostalAddressCommand(
                            user.tenantId().id(),
                            user.username(),
                            "123 Pine Street",
                            "Loveland",
                            "CO",
                            "80771",
                            "US"));
View Full Code Here


        ApplicationServiceRegistry
            .identityApplicationService()
            .changeUserPrimaryTelephone(
                    new ChangePrimaryTelephoneCommand(
                            user.tenantId().id(),
                            user.username(),
                            "777-555-1211"));

        User changedUser =
                DomainRegistry
                    .userRepository()
View Full Code Here

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

        User changedUser =
                DomainRegistry
                    .userRepository()
View Full Code Here

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

        UserDescriptor userDescriptor =
                ApplicationServiceRegistry
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

                            user.tenantId().id(),
                            user.username(),
                            "THIS.IS.JOE'S.NEW.PASSWORD"));

        assertNotNull(userDescriptor);
        assertEquals(user.username(), userDescriptor.username());
    }

    public void testChangeUserPersonalName() throws Exception {
        User user = this.userAggregate();
        DomainRegistry.userRepository().add(user);
View Full Code Here

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

        User changedUser =
                DomainRegistry
View Full Code Here

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

        User changedUser =
View Full Code Here

                ApplicationServiceRegistry
                    .identityApplicationService()
                    .isGroupMember(
                            parentGroup.tenantId().id(),
                            parentGroup.name(),
                            user.username()));

        assertTrue(
                ApplicationServiceRegistry
                    .identityApplicationService()
                    .isGroupMember(
View Full Code Here

                ApplicationServiceRegistry
                    .identityApplicationService()
                    .isGroupMember(
                            childGroup.tenantId().id(),
                            childGroup.name(),
                            user.username()));
    }

    public void testRemoveGroupFromGroup() throws Exception {
        Group parentGroup = this.group1Aggregate();
        DomainRegistry.groupRepository().add(parentGroup);
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.