325326327328329330331332333334335
Date then = new Date(now.getTime() + (60 * 60 * 24 * 365 * 1000)); ApplicationServiceRegistry .identityApplicationService() .defineUserEnablement( new DefineUserEnablementCommand( user.tenantId().id(), user.username(), true, now, then));