code: public CmsPublishList getPublishList(
          CmsObject cms,
          List<CmsResource> directPublishResources,
          boolean directPublishSiblings,
          boolean publishSubResources) throws CmsException {
  
          return m_securityManager.fillPublishList(
              cms.getRequestContext(),
              new CmsPublishList(directPublishResources, directPublishSiblings, publishSubResources));
      }
docs: Returns a publish list with all new/changed/deleted resources of the current (offline)
  project that actually get published for a direct publish of a List of resources.<p>
  
  @param cms the cms request context
  @param directPublishResources the {@link CmsResource} objects which will be directly published
  @param directPublishSiblings <code>true</code>, if all eventual siblings of the direct
  published resources should also get published.
  @param publishSubResources indicates if sub-resources in folders should be published (for direct publish only)
  
  @return a publish list
  
  @throws CmsException if something goes wrong