Package org.olat.repository.handlers

Examples of org.olat.repository.handlers.RepositoryHandler.cleanupOnDelete()


      Tracing.logDebug("deleteRepositoryEntry deleteSecurityGroup ownerGroup=" + ownerGroup, this.getClass());
      ManagerFactory.getManager().deleteSecurityGroup(ownerGroup);
    }
    // inform handler to do any cleanup work... handler must delete the
    // referenced resourceable aswell.
    handler.cleanupOnDelete(entry.getOlatResource(), ureq, wControl);
    Tracing.logDebug("deleteRepositoryEntry Done" , this.getClass());
    return true;
  }
 
  /**
 
View Full Code Here


          Tracing.logDebug("Cleanup : started", RepositoryCopyController.class);
          newEntry = (RepositoryEntry) DBFactory.getInstance().loadObject(newEntry,true);
          SecurityGroup secGroup = newEntry.getOwnerGroup();
          RepositoryHandler repositoryHandler = RepositoryHandlerFactory.getInstance().getRepositoryHandler(newEntry);     
          Tracing.logDebug("Cleanup : repositoryHandler.cleanupOnDelete for olat-resource=" + newEntry.getOlatResource(), RepositoryCopyController.class);
          repositoryHandler.cleanupOnDelete(newEntry.getOlatResource(), null, this.getWindowControl());
          Tracing.logDebug("Cleanup : deleteRepositoryEntry", RepositoryCopyController.class);
          RepositoryManager.getInstance().deleteRepositoryEntry(newEntry);
          if (secGroup != null) { // delete owner group
            Tracing.logDebug("Cleanup : deleteSecurityGroup secGroup=" + secGroup, RepositoryCopyController.class);
            securityManager.deleteSecurityGroup(secGroup);
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.