Package io.jmix.core.accesscontext
Class CrudEntityContext
java.lang.Object
io.jmix.core.accesscontext.CrudEntityContext
- All Implemented Interfaces:
AccessContext
An access context to check permissions on entity operations.
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
protected final MetaClass
protected boolean
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a human-readable explanation of constraints applied to the current context instance for logging of authorization decisions.boolean
boolean
boolean
boolean
void
void
void
void
-
Field Details
-
entityClass
-
createPermitted
protected boolean createPermitted -
readPermitted
protected boolean readPermitted -
updatePermitted
protected boolean updatePermitted -
deletePermitted
protected boolean deletePermitted
-
-
Constructor Details
-
CrudEntityContext
-
-
Method Details
-
getEntityClass
-
isCreatePermitted
public boolean isCreatePermitted() -
setCreateDenied
public void setCreateDenied() -
isReadPermitted
public boolean isReadPermitted() -
setReadDenied
public void setReadDenied() -
isUpdatePermitted
public boolean isUpdatePermitted() -
setUpdateDenied
public void setUpdateDenied() -
isDeletePermitted
public boolean isDeletePermitted() -
setDeleteDenied
public void setDeleteDenied() -
explainConstraints
Description copied from interface:AccessContext
Returns 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:
explainConstraints
in interfaceAccessContext
-