code: public List<String> getLockedResources(CmsDbContext dbc, CmsResource resource, CmsLockFilter filter)
      throws CmsException {
  
          List<String> lockedResources = new ArrayList<String>();
          // get locked resources
          Iterator<CmsLock> it = m_lockManager.getLocks(dbc, resource.getRootPath(), filter).iterator();
          while (it.hasNext()) {
              CmsLock lock = it.next();
              lockedResources.add(dbc.removeSiteRoot(lock.getResourceName()));
          }
          Collections.sort(lockedResources);
          return lockedResources;
      }
docs: Returns all locked resources in a given folder.<p>
  
  @param dbc the current database context
  @param resource the folder to search in
  @param filter the lock filter
  
  @return a list of locked resource paths (relative to current site)
  
  @throws CmsException if the current project is locked