コード例 #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());
 }
コード例 #3
0
 @Override
 public void invalidateCache(
     TenantKey key, final Object cookie, final InternalTenantContext tenantContext) {
   log.info("Invalidate catalog cache for tenantRecordId='{}'", tenantContext.getTenantRecordId());
   catalogCache.clearCatalog(tenantContext);
 }