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 ClassesNested classes/interfaces inherited from interface io.jmix.core.datastore.security.EntityAttributesEraser
EntityAttributesEraser.ReferencesCollector -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected UnconstrainedDataManagerprotected EntityStatesprotected Metadataprotected MetadataTools -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollectErasingReferences(Collection entityList, Predicate predicate) voideraseReferences(EntityAttributesEraser.ReferencesCollector referencesCollector) protected abstract ObjectgetEntityReference(MetaClass entityMetaClass, Object id) protected abstract booleanisPropertyToCheck(MetaProperty metaProperty) voidrestoreAttributes(Object entity) protected voidrestoreCollectionAttribute(Object entity, MetaProperty metaProperty, Collection ids) protected voidrestoreSingleAttribute(Object entity, MetaProperty metaProperty, Collection<Object> ids) protected voidtraverseEntities(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:
collectErasingReferencesin interfaceEntityAttributesEraser
-
eraseReferences
- Specified by:
eraseReferencesin interfaceEntityAttributesEraser
-
restoreAttributes
- Specified by:
restoreAttributesin 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
-