Package com.saasovation.collaboration.domain.model.calendar

Examples of com.saasovation.collaboration.domain.model.calendar.CalendarId


        Calendar calendar =
                this.calendarRepository()
                    .calendarOfId(
                            tenant,
                            new CalendarId(aCalendarId));

        calendar.changeDescription(aDescription);

        this.calendarRepository().save(calendar);
    }
View Full Code Here


        Calendar calendar =
                this.calendarRepository()
                    .calendarOfId(
                            tenant,
                            new CalendarId(aCalendarId));

        calendar.rename(aName);

        this.calendarRepository().save(calendar);
    }
View Full Code Here

        Calendar calendar =
                this.calendarRepository()
                    .calendarOfId(
                            tenant,
                            new CalendarId(aCalendarId));

        CalendarEntry calendarEntry =
                calendar.scheduleCalendarEntry(
                    this.calendarIdentityService(),
                    aDescription,
View Full Code Here

        Calendar calendar =
                this.calendarRepository()
                    .calendarOfId(
                            tenant,
                            new CalendarId(aCalendarId));

        for (CalendarSharer sharer : this.sharersFrom(tenant, aParticipantsToSharedWith)) {
            calendar.shareCalendarWith(sharer);
        }
View Full Code Here

        Calendar calendar =
                this.calendarRepository()
                    .calendarOfId(
                            tenant,
                            new CalendarId(aCalendarId));

        for (CalendarSharer sharer : this.sharersFrom(tenant, aParticipantsToUnsharedWith)) {
            calendar.unshareCalendarWith(sharer);
        }
View Full Code Here

        return calendar;
    }

    @Override
    public CalendarId nextIdentity() {
        return new CalendarId(UUID.randomUUID().toString().toUpperCase());
    }
View Full Code Here

        Calendar calendar =
                DomainRegistry
                    .calendarRepository()
                    .calendarOfId(
                            new Tenant(tenantId),
                            new CalendarId(calendarId));

        assertNotNull(calendar);
        assertEquals(tenantId, calendar.tenant().id());
        assertEquals(calendarId, calendar.calendarId().id());
        assertEquals("Personal Training", calendar.name());
View Full Code Here

TOP

Related Classes of com.saasovation.collaboration.domain.model.calendar.CalendarId

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.