Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
addPolicy (String sec , String ptype , List <String > rule )
→ void
addPolicy adds a policy rule to the storage.
inherited
isFiltered ()
→ bool
IsFiltered returns true if the loaded policy has been filtered.
return true if have any filter roles.
loadFilteredPolicy (Model model , Object filter )
→ void
loadFilteredPolicy loads only policy rules that match the filter.
model
the model.
filter
the filter used to specify which type of policy should be loaded.
throws CasbinAdapterException
if the file path or the type of the filter is incorrect.
loadPolicy (Model model )
→ void
Loads all policy rules from the storage.
inherited
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeFilteredPolicy (String sec , String ptype , int fieldIndex , List <String > fieldValues )
→ void
removeFilteredPolicy removes policy rules that match the filter from the storage.
inherited
removePolicy (String sec , String ptype , List <String > rule )
→ void
removePolicy removes a policy rule from the storage.
inherited
savePolicy (Model model )
→ void
Saves all policy rules to the storage.
inherited
toString ()
→ String
A string representation of this object.
inherited