Private
_resourceReadonly
resourceReadonly
verbPrivate
resourcecan be a string ("verb:resource" or "verb:*") or an object with verb
and resource
given a query, if this claim is a direct child of that query, it will return the immediate child part. Otherwise it returns null
e.g.
const claim = buildClaim("read:what.some.stuff");
claim.directChild("admin:*") // => null
claim.directChild("read:*") // => null
claim.directChild("read:what") // => null
claim.directChild("read:what.some") // => "stuff"
claim.directChild("read:what.some.stuff") // => null
claim.directChild("read:what.some.stuff.blah") // => null
can be a string ("verb:resource" or "verb:*") or an object with verb
and resource
given a query, if this claim is a direct descendant of that query, it will return the immediate child part. Otherwise it returns null
e.g.
claim.directDescendant("admin:*") // => null
claim.directDescendant("read:*") // => "what"
claim.directDescendant("read:what") // => "some"
claim.directDescendant("read:what.some") // => "stuff"
claim.directDescendant("read:what.some.stuff") // => null
claim.directDescendant("read:what.some.stuff.blah") // => null
can be a string ("verb:resource" or "verb:*") or an object with verb
and resource
return true if directChild() does not return null
can be a string ("verb:resource" or "verb:*") or an object with verb
and resource
directChild
return true if isDirectDescendant() does not return null
can be a string ("verb:resource" or "verb:*") or an object with verb
and resource
isDirectDescendant
returns true if this claim represents exactly the same as the given query
can be a string ("verb:resource" or "verb:*") or an object with verb
and resource
Private
lookupPrivate
lookupGenerated using TypeDoc
returns true if this claim includes the given query