Search in sources :

Example 6 with TaxonomyVFSSecurityCallback

use of org.olat.modules.taxonomy.ui.component.TaxonomyVFSSecurityCallback in project openolat by klemens.

the class DocumentPoolWebDAVMergeSource method addDocument.

private VFSContainer addDocument(TaxonomyTreeNode taxonomyNode) {
    VFSContainer documents = taxonomyService.getDocumentsLibrary(taxonomyNode.getTaxonomyLevel());
    SubscriptionContext subscriptionCtx = notificationsHandler.getTaxonomyDocumentsLibrarySubscriptionContext();
    TaxonomyVFSSecurityCallback secCallback = new TaxonomyVFSSecurityCallback(taxonomyNode, subscriptionCtx);
    documents.setLocalSecurityCallback(secCallback);
    return new NamedContainerImpl("_documents", documents);
}
Also used : TaxonomyVFSSecurityCallback(org.olat.modules.taxonomy.ui.component.TaxonomyVFSSecurityCallback) VFSContainer(org.olat.core.util.vfs.VFSContainer) SubscriptionContext(org.olat.core.commons.services.notifications.SubscriptionContext) NamedContainerImpl(org.olat.core.util.vfs.NamedContainerImpl)

Aggregations

SubscriptionContext (org.olat.core.commons.services.notifications.SubscriptionContext)6 TaxonomyVFSSecurityCallback (org.olat.modules.taxonomy.ui.component.TaxonomyVFSSecurityCallback)6 NamedContainerImpl (org.olat.core.util.vfs.NamedContainerImpl)4 VFSContainer (org.olat.core.util.vfs.VFSContainer)4 TreeNode (org.olat.core.gui.components.tree.TreeNode)2 WindowControl (org.olat.core.gui.control.WindowControl)2 OLATResourceable (org.olat.core.id.OLATResourceable)2 TaxonomyLevel (org.olat.modules.taxonomy.TaxonomyLevel)2 TaxonomyTreeNode (org.olat.modules.taxonomy.model.TaxonomyTreeNode)2