Sample Application Service

Let’s take a look at the partial sample interface and implementation class for an Application Service. This is the service that provides use case task management for tenants of the Identity and Access Context. It is just a sample and not meant to be taken as the final say. Trade-offs will be apparent.

First consider the basic interface:

package com.saasovation.identityaccess.application; public interface TenantIdentityService {     public void activateTenant(TenantId aTenantId);     public void deactivateTenant(TenantId aTenantId);     public String offerLimitedRegistrationInvitation(             TenantId aTenantId,             Date aStartsOnDate,             Date anUntilDate);     public ...

Get Implementing Domain-Driven Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.