docs: public void abortPublishJob(CmsObject cms, CmsPublishJobEnqueued publishJob, boolean removeJob)
      throws CmsException, CmsSecurityException, CmsPublishException {
  
          if (!OpenCms.getRoleManager().hasRole(cms, CmsRole.PROJECT_MANAGER)
              && !cms.getRequestContext().getCurrentUser().getId().equals(publishJob.getUserId())) {
              // Can only be executed by somebody with the role CmsRole#PROJECT_MANAGER or the owner of the job
              throw new CmsSecurityException(
                  Messages.get().container(
                      Messages.ERR_PUBLISH_ENGINE_ABORT_DENIED_1,
                      cms.getRequestContext().getCurrentUser().getName()));
          }
          m_publishEngine.abortPublishJob(cms.getRequestContext().getCurrentUser().getId(), publishJob, removeJob);
      }