Package io.jmix.ui.accesscontext
Class UiEntityContext
java.lang.Object
io.jmix.ui.accesscontext.UiEntityContext
- All Implemented Interfaces:
AccessContext
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
protected boolean
protected final MetaClass
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 -
viewPermitted
protected boolean viewPermitted -
editPermitted
protected boolean editPermitted -
deletePermitted
protected boolean deletePermitted
-
-
Constructor Details
-
UiEntityContext
-
-
Method Details
-
getEntityClass
-
isCreatePermitted
public boolean isCreatePermitted() -
setCreateDenied
public void setCreateDenied() -
isViewPermitted
public boolean isViewPermitted() -
setViewDenied
public void setViewDenied() -
isEditPermitted
public boolean isEditPermitted() -
setEditDenied
public void setEditDenied() -
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
-