Examples of canRename()


Examples of org.olat.core.util.servlets.VFSDirContext.canRename()

        // Check if operation allowed by OLAT VFS security callback
        DirContext resources = getResources(req);
        VFSDirContext vfsContext = (VFSDirContext) resources;
        String path = getRelativePath(req);
        if (!vfsContext.canRename(path)) {
          resp.sendError(WebdavStatus.SC_FORBIDDEN);
          return;         
        }

        if (isLocked(req)) {
View Full Code Here

Examples of org.olat.core.util.vfs.VFSItem.canRename()

   * @param name
   * @return true: can rename; false: can not rename
   */
  public boolean canRename(String name) {
    VFSItem item = resolveFile(name);
    if (item != null && VFSConstants.YES.equals(item.canRename())) {
      return !MetaInfoHelper.isLocked(item, userSession);
    }
    else return false;
 
 
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.