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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.