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 SummaryNested ClassesNested classes/interfaces inherited from interface io.jmix.core.datastore.security.EntityAttributesEraserEntityAttributesEraser.ReferencesCollector
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected UnconstrainedDataManagerprotected EntityStatesprotected Metadataprotected MetadataTools
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
BaseEntityAttributesEraserpublic BaseEntityAttributesEraser()
 
- 
- 
Method Details- 
collectErasingReferencespublic EntityAttributesEraser.ReferencesCollector collectErasingReferences(Collection entityList, Predicate predicate) - Specified by:
- collectErasingReferencesin interface- EntityAttributesEraser
 
- 
eraseReferences- Specified by:
- eraseReferencesin interface- EntityAttributesEraser
 
- 
restoreAttributes- Specified by:
- restoreAttributesin interface- EntityAttributesEraser
 
- 
restoreCollectionAttribute
- 
restoreSingleAttributeprotected void restoreSingleAttribute(Object entity, MetaProperty metaProperty, Collection<Object> ids) 
- 
traverseEntitiesprotected void traverseEntities(Object entity, Set<Object> visited, BaseEntityAttributesEraser.Visitor visitor) 
- 
getEntityReference
- 
isPropertyToCheck
 
-