Package org.olat.repository.handlers

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


      showError("error.download");
      return;
    }   
    boolean isAlreadyLocked = typeToDownload.isLocked(ores);
    try {     
      lockResult = typeToDownload.acquireLock(ores, ureq.getIdentity());
      if(lockResult==null || (lockResult!=null && lockResult.isSuccess() && !isAlreadyLocked)) {
        MediaResource mr = typeToDownload.getAsMediaResource(ores);
        if(mr!=null) {
          RepositoryManager.getInstance().incrementDownloadCounter(repositoryEntry);
          ureq.getDispatchResult().setResultingMediaResource(mr);
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.