code: public void saveRewriteAliases(CmsObject cms, String siteRoot, List<CmsRewriteAlias> newAliases)
      throws CmsException {
  
          checkPermissionsForMassEdit(cms, siteRoot);
          m_securityManager.saveRewriteAliases(cms.getRequestContext(), siteRoot, newAliases);
      }
docs: Saves the rewrite alias for a given site root.<p>
  
  @param cms the current CMS context
  @param siteRoot the site root for which the rewrite aliases should be saved
  @param newAliases the list of aliases to save
  
  @throws CmsException if something goes wrong