コード例 #1
0
 private InternalTenantContext getInternalTenantContextWithAccountRecordId(
     final UUID accountId, final InternalTenantContext tenantContext) {
   final InternalTenantContext tenantContextWithAccountRecordId;
   if (tenantContext.getAccountRecordId() == null) {
     tenantContextWithAccountRecordId =
         internalCallContextFactory.createInternalTenantContext(accountId, tenantContext);
   } else {
     tenantContextWithAccountRecordId = tenantContext;
   }
   return tenantContextWithAccountRecordId;
 }
コード例 #2
0
 @Override
 public List<BlockingState> getBlockingAllForAccountRecordId(final InternalTenantContext context) {
   return Objects.firstNonNull(
       blockingStatesPerAccountRecordId.get(context.getAccountRecordId()),
       ImmutableList.<BlockingState>of());
 }