コード例 #1
0
        public virtual ListQueryParameterObject configureQuery(ListQueryParameterObject query)
        {
            TenantCheck tenantCheck = query.TenantCheck;

            configureTenantCheck(tenantCheck);

            return(query);
        }
コード例 #2
0
        public virtual void configureTenantCheck(TenantCheck tenantCheck)
        {
            if (TenantCheckEnabled)
            {
                Authentication currentAuthentication = CurrentAuthentication;

                tenantCheck.TenantCheckEnabled = true;
                tenantCheck.AuthTenantIds      = currentAuthentication.TenantIds;
            }
            else
            {
                tenantCheck.TenantCheckEnabled = false;
                tenantCheck.AuthTenantIds      = null;
            }
        }