Examples of saveRepositoryEntry()


Examples of org.olat.repository.RepositoryManager.saveRepositoryEntry()

    // members of this group are always authors also
    securityManager.createAndPersistPolicy(ownerGroup, Constants.PERMISSION_HASROLE, Constants.ORESOURCE_AUTHOR);
    securityManager.addIdentityToSecurityGroup(securityManager.findIdentityByName("administrator"), ownerGroup);
    re.setOwnerGroup(ownerGroup);
    // save the repository entry
    rm.saveRepositoryEntry(re);
    // Create course admin policy for owner group of repository entry
    // -> All owners of repository entries are course admins
    securityManager.createAndPersistPolicy(re.getOwnerGroup(), Constants.PERMISSION_ADMIN, re.getOlatResource());
   
    // deploy any referenced repository entries of the editor structure. This will also
View Full Code Here

Examples of org.olat.repository.RepositoryManager.saveRepositoryEntry()

    securityManager.createAndPersistPolicy(newGroup, Constants.PERMISSION_HASROLE, Constants.ORESOURCE_AUTHOR);
   
    securityManager.addIdentityToSecurityGroup(ureq.getIdentity(), newGroup);
    addedEntry.setOwnerGroup(newGroup);
   
    rm.saveRepositoryEntry(addedEntry);

    detailsController = new RepositoryEditDescriptionController(ureq, getWindowControl(), addedEntry, true);
    detailsController.addControllerListener(this);
    repositoryadd.put("details", detailsController.getInitialComponent());
    // try to get type description based on handlertype
View Full Code Here

Examples of org.olat.repository.RepositoryManager.saveRepositoryEntry()

    securityManager.createAndPersistPolicy(newGroup, Constants.PERMISSION_ACCESS, newGroup);
    // members of this group are always authors also
    securityManager.createAndPersistPolicy(newGroup, Constants.PERMISSION_HASROLE, Constants.ORESOURCE_AUTHOR);
    securityManager.addIdentityToSecurityGroup(owner, newGroup);
    importedRepositoryEntry.setOwnerGroup(newGroup);
    rm.saveRepositoryEntry(importedRepositoryEntry);
   
    if (!keepSoftkey) {
      // set the new shared folder reference
      CourseConfig courseConfig = course.getCourseEnvironment().getCourseConfig();
      courseConfig.setSharedFolderSoftkey(importedRepositoryEntry.getSoftkey());
View Full Code Here

Examples of org.olat.repository.RepositoryManager.saveRepositoryEntry()

    securityManager.createAndPersistPolicy(newGroup, Constants.PERMISSION_ACCESS, newGroup);
    // members of this group are always authors also
    securityManager.createAndPersistPolicy(newGroup, Constants.PERMISSION_HASROLE, Constants.ORESOURCE_AUTHOR);
    securityManager.addIdentityToSecurityGroup(owner, newGroup);
    importedRepositoryEntry.setOwnerGroup(newGroup);
    rm.saveRepositoryEntry(importedRepositoryEntry);

    if (!keepSoftkey) {
      // set the new glossary reference
      CourseConfig courseConfig = course.getCourseEnvironment().getCourseConfig();
      courseConfig.setGlossarySoftKey(importedRepositoryEntry.getSoftkey());
View Full Code Here

Examples of org.olat.repository.RepositoryManager.saveRepositoryEntry()

    securityManager.createAndPersistPolicy(newGroup, Constants.PERMISSION_ACCESS, newGroup);
    // members of this group are always authors also
    securityManager.createAndPersistPolicy(newGroup, Constants.PERMISSION_HASROLE, Constants.ORESOURCE_AUTHOR);
    securityManager.addIdentityToSecurityGroup(owner, newGroup);
    importedRepositoryEntry.setOwnerGroup(newGroup);
    rm.saveRepositoryEntry(importedRepositoryEntry);

    if (!keepSoftkey) setReference(importedRepositoryEntry, node, importMode);

    return importedRepositoryEntry;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.