code: public Set<CmsUUID> getPublishIds() {
  
          Set<CmsUUID> toPublish = new HashSet<CmsUUID>();
          for (Map.Entry<CmsUUID, CmsPublishItemStatus> entry : m_status.entrySet()) {
              CmsUUID key = entry.getKey();
              CmsPublishItemStatus status = entry.getValue();
              if (status.getState() == State.publish) {
                  toPublish.add(key);
                  for (CmsUUID relatedId : m_relatedIds.get(key)) {
                      CmsPublishResource relatedResource = m_relatedPublishResources.get(relatedId);
                      if ((relatedResource != null) && !hasProblems(relatedResource)) {
                          toPublish.add(relatedId);
                      }
                  }
              }
          }
          return toPublish;
      }
docs: Returns the ids of publish resources which should be published.<p>
  
  @return the ids of publish resources which should be published