Class EntityDocsCollectionInitializer
java.lang.Object
ch.tocco.nice2.persist.core.api.hibernate.interceptor.AbstractCollectionInitializer
ch.tocco.nice2.dms.impl.entitydocs.interceptor.AbstractEntityDocsCollectionInitializer
ch.tocco.nice2.dms.impl.entitydocs.interceptor.EntityDocsCollectionInitializer
- All Implemented Interfaces:
CollectionInitializer
@Component
public class EntityDocsCollectionInitializer
extends AbstractEntityDocsCollectionInitializer
Special handling of entitydocs relations when the target is a Resource entity (relResource_entitydocs).
If the current user has access to the source entity, the relation can be resolved
in privileged mode to avoid the very slow ACL rules generated by the policy processors.
Resources where field_model != null are excluded because permissions may be different.
-
Field Summary
Fields inherited from class ch.tocco.nice2.dms.impl.entitydocs.interceptor.AbstractEntityDocsCollectionInitializer
securityManager
Fields inherited from class ch.tocco.nice2.persist.core.api.hibernate.interceptor.AbstractCollectionInitializer
dataModel, persistService
-
Constructor Summary
ConstructorDescriptionEntityDocsCollectionInitializer
(SecurityManager securityManager, PersistenceService persistService, NiceDataModel dataModel) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
modifyDefaultQuery
(QueryBuilderBase<?, ?> queryBuilder) priority()
boolean
Methods inherited from class ch.tocco.nice2.dms.impl.entitydocs.interceptor.AbstractEntityDocsCollectionInitializer
countCollectionElements, getCollectionElements, isResourceCollection
Methods inherited from class ch.tocco.nice2.persist.core.api.hibernate.interceptor.AbstractCollectionInitializer
createQueryBuilder, doCountCollectionElements, doGetCollectionElements
-
Constructor Details
-
EntityDocsCollectionInitializer
public EntityDocsCollectionInitializer(SecurityManager securityManager, PersistenceService persistService, NiceDataModel dataModel)
-
-
Method Details
-
supports
- Returns:
- true if this
CollectionInitializer
supports resolving this relation
-
modifyDefaultQuery
- Overrides:
modifyDefaultQuery
in classAbstractCollectionInitializer
-
priority
- Returns:
- the priority in case multiple
CollectionInitializer
can resolve a relation
-