Class NodeChildrenCollectionInitializer

java.lang.Object
ch.tocco.nice2.persist.core.api.hibernate.interceptor.AbstractCollectionInitializer
ch.tocco.nice2.dms.impl.security.NodeChildrenCollectionInitializer
All Implemented Interfaces:
CollectionInitializer

@Component public class NodeChildrenCollectionInitializer extends AbstractCollectionInitializer
A custom CollectionInitializer that initializes the sub resources of a folder. It resolves the primary keys of the relation in privileged mode first and sets the result as the upper bound of the unprivileged query using the QueryHints.QUERY_BY_KEYS hint. This hint allows the PermissionMatrixEvaluationService to optimize a subquery which results in much better performance.
See Also: