Examples of person()


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

        assertNotNull(changedUser);
        assertEquals("mynewemailaddress@saasovation.com", changedUser.person().emailAddress().address());
        assertEquals("777-555-1211", changedUser.person().contactInformation().primaryTelephone().number());
        assertEquals("777-555-1212", changedUser.person().contactInformation().secondaryTelephone().number());
        assertEquals("123 Pine Street", changedUser.person().contactInformation().postalAddress().streetAddress());
        assertEquals("Loveland", changedUser.person().contactInformation().postalAddress().city());
    }

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

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

                    .userWithUsername(
                            user.tenantId(),
                            user.username());

        assertNotNull(changedUser);
        assertEquals("mynewemailaddress@saasovation.com", changedUser.person().emailAddress().address());
    }

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

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

                    .userWithUsername(
                            user.tenantId(),
                            user.username());

        assertNotNull(changedUser);
        assertEquals("123 Pine Street", changedUser.person().contactInformation().postalAddress().streetAddress());
        assertEquals("Loveland", changedUser.person().contactInformation().postalAddress().city());
    }

    public void testChangeUserPrimaryTelephone() throws Exception {
        User user = this.userAggregate();
View Full Code Here

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

                            user.tenantId(),
                            user.username());

        assertNotNull(changedUser);
        assertEquals("123 Pine Street", changedUser.person().contactInformation().postalAddress().streetAddress());
        assertEquals("Loveland", changedUser.person().contactInformation().postalAddress().city());
    }

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

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

                    .userWithUsername(
                            user.tenantId(),
                            user.username());

        assertNotNull(changedUser);
        assertEquals("777-555-1211", changedUser.person().contactInformation().primaryTelephone().number());
    }

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

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

                    .userWithUsername(
                            user.tenantId(),
                            user.username());

        assertNotNull(changedUser);
        assertEquals("777-555-1212", changedUser.person().contactInformation().secondaryTelephone().number());
    }

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

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

                    .userWithUsername(
                            user.tenantId(),
                            user.username());

        assertNotNull(changedUser);
        assertEquals("World Peace", changedUser.person().name().asFormattedName());
    }

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

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

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

                this.eventStore.append(event);
            }

            if ((idx % 3) == 0) {
View Full Code Here

Examples of com.secretpal.model.SPMembership.person()

            boolean sentEmail = SPUtilities.sendInvitationEmail(membership, context, errorNoticeList);
            if (sentEmail) {
              invitationsSent++;
            }
            else {
              failedEmailAddresses.addObject(membership.person().emailAddress());
            }
          } else {
            invitationsSent++;
          }
View Full Code Here

Examples of com.secretpal.model.SPMembership.person()

    try {
      SPUtilities.sendInvitationEmail(localMembership, context(), session().errors());
      session().notifications().addNotice("Processing invitation to '" + localMembership.personName() + "'.");
    }
    catch (Exception e) {
      localMembership.person().setEmailDeliveryFailure(Boolean.TRUE);
      session().errors().addNotice("Failed to send invitation to '" + localMembership.personName() + "': " + e.getMessage());
      SPUtilities.log.error("Failed to send invitation to '" + localMembership.personName() + "'.", e);
    }
    return null;
  }
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.