Package io.jmix.core.accesscontext
Class InMemoryCrudEntityContext
java.lang.Object
io.jmix.core.accesscontext.InMemoryCrudEntityContext
- All Implemented Interfaces:
- AccessContext
Defines an authorization point for checking access to entity operations by testing predicates.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected BiPredicateprotected BiPredicateprotected final MetaClassprotected BiPredicateprotected BiPredicate
- 
Constructor SummaryConstructorsConstructorDescriptionInMemoryCrudEntityContext(MetaClass entityClass, org.springframework.context.ApplicationContext applicationContext) 
- 
Method SummaryModifier 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
- 
applicationContextprotected org.springframework.context.ApplicationContext applicationContext
 
- 
- 
Constructor Details- 
InMemoryCrudEntityContextpublic InMemoryCrudEntityContext(MetaClass entityClass, org.springframework.context.ApplicationContext applicationContext) 
 
- 
- 
Method Details- 
getEntityClass
- 
isCreatePermitted
- 
createPredicate
- 
addCreatePredicate
- 
isReadPermitted
- 
readPredicate
- 
addReadPredicate
- 
isUpdatePermitted
- 
updatePredicate
- 
addUpdatePredicate
- 
isDeletePermitted
- 
deletePredicate
- 
addDeletePredicate
- 
explainConstraintsDescription 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 interface- AccessContext
 
 
-