Ejemplo n.º 1
0
        private bool HasForbiddenProperties(IndexReference index)
        {
            AccessMode mode = Ktx.securityContext().mode();

            foreach (int prop in index.Properties())
            {
                if (!mode.AllowsPropertyReads(prop))
                {
                    return(true);
                }
            }
            return(false);
        }
Ejemplo n.º 2
0
        public override IEnumerator <NamedToken> PropertyKeyGetAllTokens()
        {
            _ktx.assertOpen();
            AccessMode mode = _ktx.securityContext().mode();

            return(Iterators.stream(_tokenHolders.propertyKeyTokens().AllTokens.GetEnumerator()).filter(propKey => mode.AllowsPropertyReads(propKey.id())).GetEnumerator());
        }