code: public boolean isLockStateOk() {
  
          org.opencms.workplace.commons.CmsLock lockDialog = new org.opencms.workplace.commons.CmsLock(getJsp());
          lockDialog.setParamIncluderelated(CmsStringUtil.TRUE);
          lockDialog.setBlockingFilter(getBlockingFilter());
          if (!isDirectPublish()) {
              lockDialog.setParamResource("/");
          }
          if (!lockDialog.getBlockingLockedResources().isEmpty()) {
              // blocking locks found, so show them
              return false;
          }
          if (!isDirectPublish()) {
              // is publish project operation no resource iteration possible
              return true;
          }
  
          // flag to indicate that all resources are exclusive locked
          boolean locked = true;
          // flag to indicate that all resources are unlocked
          boolean unlocked = true;
  
          Iterator<String> i = getResourceList().iterator();
          while (i.hasNext()) {
              String resName = i.next();
              try {
                  CmsLock lock = getCms().getLock(getCms().readResource(resName, CmsResourceFilter.ALL));
                  if (!lock.isUnlocked()) {
                      unlocked = false;
                      if (locked
                          && !lock.isOwnedInProjectBy(
                              getCms().getRequestContext().getCurrentUser(),
                              getCms().getRequestContext().getCurrentProject())) {
                          // locks of another users or locked in another project are blocking
                          locked = false;
                      }
                  }
              } catch (CmsException e) {
                  // error reading a resource, should usually never happen
                  if (LOG.isErrorEnabled()) {
                      LOG.error(e.getLocalizedMessage(), e);
                  }
              }
          }
          return locked || unlocked;
      }
docs: Returns <code>true</code> if the selection has blocking locks.<p>
  
  @return <code>true</code> if the selection has blocking locks