RevisionInterceptor<TEntity> mixin
- Superclass Constraints
- Implemented types
-
- Mixin Applications
-
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
-
inherited
-
addRevision(Map<String, dynamic> meta, DbPrincipal principal)
→ void
-
-
addTenantKeyToMeta(Map<String, dynamic> meta, DbPrincipal principal)
→ void
-
inherited
-
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
-
getOrCreateMetaForCreate(Map<String, dynamic> map, DbPrincipal principal)
→ Map<String, dynamic>
-
override
-
getOrCreateMetaForDelete(Map<String, dynamic> map, DbPrincipal principal)
→ Map<String, dynamic>
-
inherited
-
getOrCreateMetaForGet(Map<String, dynamic> map, DbPrincipal principal)
→ Map<String, dynamic>
-
inherited
-
getOrCreateMetaForUpdate(Map<String, dynamic> oldMap, Map<String, dynamic> newMap, DbPrincipal principal)
→ Map<String, dynamic>
-
override
-
handleMetaForCreate(Map<String, dynamic> map, DbPrincipal principal, PermissionPolicy policy)
→ void
-
inherited
-
handleMetaForDelete(Map<String, dynamic> map, DbPrincipal principal, PermissionPolicy policy)
→ void
-
inherited
-
handleMetaForGet(Map<String, dynamic> map, DbPrincipal principal, PermissionPolicy policy)
→ void
-
inherited
-
handleMetaForUpdate(Map<String, dynamic> oldMap, Map<String, dynamic> newMap, DbPrincipal principal, PermissionPolicy policy)
→ void
-
inherited
-
isValidTenant(DbPrincipal principal, Map<String, dynamic> map)
→ bool
-
inherited
-
mapDate(DateTime revisionDate)
→ dynamic
-
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
principalHasPermission(Map<String, dynamic> entity, DbPrincipal principal, String sharePermission)
→ bool
-
inherited
-
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
-
throwOnUnauthorizedTenant(Map<String, dynamic> meta, DbPrincipal principal)
→ void
-
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