Package io.jmix.core.accesscontext
Class InMemoryCrudEntityContext
java.lang.Object
io.jmix.core.accesscontext.InMemoryCrudEntityContext
- All Implemented Interfaces:
 AccessContext
An access context to check permissions on CRUD operations by testing predicates.
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected BiPredicateprotected BiPredicateprotected final MetaClassprotected BiPredicateprotected BiPredicate - 
Constructor Summary
ConstructorsConstructorDescriptionInMemoryCrudEntityContext(MetaClass entityClass, org.springframework.context.ApplicationContext applicationContext)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddCreatePredicate(BiPredicate predicate) voidaddDeletePredicate(BiPredicate predicate) voidaddReadPredicate(BiPredicate predicate) voidaddUpdatePredicate(BiPredicate predicate) Returns a human-readable explanation of constraints applied to the current context instance for logging of authorization decisions.booleanisCreatePermitted(Object entity) booleanisDeletePermitted(Object entity) booleanisReadPermitted(Object entity) booleanisUpdatePermitted(Object entity)  
- 
Field Details
- 
entityClass
 - 
createPredicate
 - 
readPredicate
 - 
updatePredicate
 - 
deletePredicate
 - 
applicationContext
protected org.springframework.context.ApplicationContext applicationContext 
 - 
 - 
Constructor Details
- 
InMemoryCrudEntityContext
public InMemoryCrudEntityContext(MetaClass entityClass, org.springframework.context.ApplicationContext applicationContext)  
 - 
 - 
Method Details
- 
getEntityClass
 - 
isCreatePermitted
 - 
createPredicate
 - 
addCreatePredicate
 - 
isReadPermitted
 - 
readPredicate
 - 
addReadPredicate
 - 
isUpdatePermitted
 - 
updatePredicate
 - 
addUpdatePredicate
 - 
isDeletePermitted
 - 
deletePredicate
 - 
addDeletePredicate
 - 
explainConstraints
Description copied from interface:AccessContextReturns a human-readable explanation of constraints applied to the current context instance for logging of authorization decisions. Null if the current context does not impose any constraints.- Specified by:
 explainConstraintsin interfaceAccessContext
 
 -