/** * @see * org.olat.core.gui.control.creator.ControllerCreator#createController(org.olat.core.gui.UserRequest, * org.olat.core.gui.control.WindowControl) */ @Override public Controller createController(UserRequest ureq, WindowControl lwControl) { return new FolderRunController( PersonalFolderManager.getInstance().getContainer(ureq.getIdentity()), true, true, true, ureq, lwControl); }
@Override public VFSSecurityCallback getLocalSecurityCallback() { if (super.getLocalSecurityCallback() == null) { // set quota for this merge source QuotaManager qm = QuotaManager.getInstance(); Quota quota = qm.getCustomQuotaOrDefaultDependingOnRole( identity, PersonalFolderManager.getInstance().getRootPathFor(identity)); FullAccessWithQuotaCallback secCallback = new FullAccessWithQuotaCallback(quota); setLocalSecurityCallback(secCallback); } return super.getLocalSecurityCallback(); }
@Override protected void init() { super.init(); // mount /public String rootPath = PersonalFolderManager.getInstance().getRootPathFor(identity); OlatRootFolderImpl vfsPublic = new OlatRootFolderImpl(rootPath + "/public", this); // vfsPublic.getBasefile().mkdirs(); // lazy initialize folders // we do a little trick here and wrap it again in a NamedContainerImpl so // it doesn't show up as a OlatRootFolderImpl to prevent it from editing its MetaData OlatNamedContainerImpl vfsNamedPublic = new OlatNamedContainerImpl("public", vfsPublic); addContainer(vfsNamedPublic); // mount /private OlatRootFolderImpl vfsPrivate = new OlatRootFolderImpl(rootPath + "/private", this); // vfsPrivate.getBasefile().mkdirs(); // lazy initialize folders // we do a little trick here and wrap it again in a NamedContainerImpl so // it doesn't show up as a OlatRootFolderImpl to prevent it from editing its MetaData OlatNamedContainerImpl vfsNamedPrivate = new OlatNamedContainerImpl("private", vfsPrivate); addContainer(vfsNamedPrivate); init = true; }