RootArangoDbRepository<TEntity> class

ArangoDB repository with no permission or tenant verification filtering

Inheritance

Constructors

RootArangoDbRepository(DbClient db, String collectionName)

Properties

actionToDemand String
no setterinherited
collectionName String
finalinherited
createPolicy → CreatePolicy
no setterinherited
db → DbClient
finalinherited
deletePolicy → DeletePolicy
default authorization policy for delete operations
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchPolicy → SearchPolicy
default authorization policy for search operations
no setterinherited
updatePolicy → UpdatePolicy
default authorization policy for update operations
no setterinherited

Methods

abortTransaction(RepositoryTransaction transaction) Future
inherited
actionToDemandOnPrincipal(DbPrincipal principal, String permission) String
inherited
addAuthFilterToQuery({required DbQueryWithClient query, required String collectionName, required DbPrincipal principal, required String action, required bool filterByTenant}) → void
override
beginTransaction(RepositoryTransactionOptions options) Future<ArangoDbRepositoryTransaction>
inherited
commitTransaction(RepositoryTransaction transaction) Future
inherited
count(SearchCriteria criteria, DbPrincipal principal, {SearchPolicy? searchPolicy, RepositoryTransaction? transaction}) Future<int>
Searches entities according to criteria and returns the total count of entities fitting the constraints.
inherited
create(Map<String, dynamic> map, DbPrincipal principal, {CreatePolicy? createPolicy, RepositoryTransaction? transaction}) Future<Map<String, dynamic>>
Inserts the map as a new entity in the database collection.
inherited
delete(String key, DbPrincipal principal, {DeletePolicy? deletePolicy, RepositoryTransaction? transaction}) Future<Map<String, dynamic>>
Deletes the entity from the collection identified by the key parameter.
inherited
get(String key, DbPrincipal principal, {SearchPolicy? searchPolicy, RepositoryTransaction? transaction}) Future<Map<String, dynamic>>
Retrieves an entity from the collection identified by the key parameter.
inherited
getAllToList(DbPrincipal principal, {SearchPolicy? searchPolicy, RepositoryTransaction? transaction}) Future<List<Map<String, dynamic>>>
inherited
getAllToStream(DbPrincipal principal, {SearchPolicy? searchPolicy, RepositoryTransaction? transaction}) Future<Stream<Map<String, dynamic>>>
Gets all the entities from the collection identified by the key parameter. Use this method only with collections where the number of elements in the collection (per tenant) is guaranteed to be very limited.
inherited
handleMetaForCreate(Map<String, dynamic> map, DbPrincipal principal, PermissionPolicy policy) → void
override
handleMetaForDelete(Map<String, dynamic> map, DbPrincipal principal, PermissionPolicy policy) → void
override
handleMetaForGet(Map<String, dynamic> map, DbPrincipal principal, PermissionPolicy policy) → void
override
handleMetaForUpdate(Map<String, dynamic> oldMap, Map<String, dynamic> newMap, DbPrincipal principal, PermissionPolicy policy) → void
override
isValidTenant(DbPrincipal principal, Map<String, dynamic> map) bool
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
principalHasPermission(Map<String, dynamic> entity, DbPrincipal principal, String sharePermission) bool
override
searchToList(SearchCriteria criteria, DbPrincipal principal, {SearchPolicy? searchPolicy, RepositoryTransaction? transaction}) Future<List<Map<String, dynamic>>>
inherited
searchToStream(SearchCriteria criteria, DbPrincipal principal, {SearchPolicy? searchPolicy, RepositoryTransaction? transaction}) Future<Stream<Map<String, dynamic>>>
Searches entities according to criteria, returning all the entities that fit the constraints.
inherited
searchWithCount(SearchCriteria criteria, DbPrincipal principal, {SearchPolicy? searchPolicy, RepositoryTransaction? transaction}) Future<SearchResult>
Searches entities according to criteria, returning a page of entities and the count of total entities that fit the given constraints.
inherited
toString() String
A string representation of this object.
inherited
update(Map<String, dynamic> map, DbPrincipal principal, {UpdatePolicy? updatePolicy, RepositoryTransaction? transaction}) Future<Map<String, dynamic>>
Update an entity in the collection contained in the map parameter.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited