Class EntityDocsFolderCollectionInitializer
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.EntityDocsFolderCollectionInitializer
- All Implemented Interfaces:
CollectionInitializer
@Component
public class EntityDocsFolderCollectionInitializer
extends AbstractEntityDocsCollectionInitializer
Special handling of entitydocs relations when the target is a Folder entity (relFolder_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.
-
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
ConstructorDescriptionEntityDocsFolderCollectionInitializer
(SecurityManager securityManager, PersistenceService persistService, NiceDataModel dataModel) -
Method Summary
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, modifyDefaultQuery
-
Constructor Details
-
EntityDocsFolderCollectionInitializer
public EntityDocsFolderCollectionInitializer(SecurityManager securityManager, PersistenceService persistService, NiceDataModel dataModel)
-
-
Method Details
-
supports
- Returns:
- true if this
CollectionInitializer
supports resolving this relation
-
priority
- Returns:
- the priority in case multiple
CollectionInitializer
can resolve a relation
-