code: public String buildLockDialog() throws CmsException {
  
          CmsLockFilter nonBlockingFilter = CmsLockFilter.FILTER_ALL;
          nonBlockingFilter = nonBlockingFilter.filterLockableByUser(getCms().getRequestContext().getCurrentUser());
          nonBlockingFilter = nonBlockingFilter.filterSharedExclusive();
          if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(getParamProjectid())) {
              nonBlockingFilter = nonBlockingFilter.filterProject(new CmsUUID(getParamProjectid()));
          }
          return org.opencms.workplace.commons.CmsLock.buildLockDialog(
              this,
              nonBlockingFilter,
              getBlockingFilter(),
              0,
              true);
      }
docs: Returns the html code to build the lock dialog.<p>
  
  @return html code
  
  @throws CmsException if something goes wrong