Package io.jmix.core.datastore.security
Class BaseEntityAttributesEraser
java.lang.Object
io.jmix.core.datastore.security.BaseEntityAttributesEraser
- All Implemented Interfaces:
EntityAttributesEraser
- Direct Known Subclasses:
JpaEntityAttributesEraser
,RestEntityAttributesEraser
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.core.datastore.security.EntityAttributesEraser
EntityAttributesEraser.ReferencesCollector
-
Field Summary
Modifier and TypeFieldDescriptionprotected UnconstrainedDataManager
protected EntityStates
protected Metadata
protected MetadataTools
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncollectErasingReferences
(Collection entityList, Predicate predicate) void
eraseReferences
(EntityAttributesEraser.ReferencesCollector referencesCollector) protected abstract Object
getEntityReference
(MetaClass entityMetaClass, Object id) protected abstract boolean
isPropertyToCheck
(MetaProperty metaProperty) void
restoreAttributes
(Object entity) protected void
restoreCollectionAttribute
(Object entity, MetaProperty metaProperty, Collection ids) protected void
restoreSingleAttribute
(Object entity, MetaProperty metaProperty, Collection<Object> ids) protected void
traverseEntities
(Object entity, Set<Object> visited, BaseEntityAttributesEraser.Visitor visitor)
-
Field Details
-
metadata
-
dataManager
-
entityStates
-
metadataTools
-
-
Constructor Details
-
BaseEntityAttributesEraser
public BaseEntityAttributesEraser()
-
-
Method Details
-
collectErasingReferences
public EntityAttributesEraser.ReferencesCollector collectErasingReferences(Collection entityList, Predicate predicate) - Specified by:
collectErasingReferences
in interfaceEntityAttributesEraser
-
eraseReferences
- Specified by:
eraseReferences
in interfaceEntityAttributesEraser
-
restoreAttributes
- Specified by:
restoreAttributes
in interfaceEntityAttributesEraser
-
restoreCollectionAttribute
-
restoreSingleAttribute
protected void restoreSingleAttribute(Object entity, MetaProperty metaProperty, Collection<Object> ids) -
traverseEntities
protected void traverseEntities(Object entity, Set<Object> visited, BaseEntityAttributesEraser.Visitor visitor) -
getEntityReference
-
isPropertyToCheck
-