code: public synchronized void saveAliases(CmsObject cms, CmsUUID structureId, List<CmsAlias> aliases)
      throws CmsException {
  
          m_securityManager.saveAliases(cms.getRequestContext(), cms.readResource(structureId), aliases);
          touch(cms, cms.readResource(structureId));
      }
docs: Saves the aliases for a given structure id, <b>completely replacing</b> any existing aliases for the same structure id.<p>
  
  @param cms the current CMS context
  @param structureId the structure id of a resource
  @param aliases the list of aliases which should be written
  
  @throws CmsException if something goes wrong