Class CmsAliasBulkEditHelper

java.lang.Object
org.opencms.ade.sitemap.CmsAliasBulkEditHelper

public class CmsAliasBulkEditHelper extends Object
Helper class used by a service to edit or import aliases for a whole site.

  • Constructor Details

  • Method Details

    • importAliases

      public void importAliases(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Imports uploaded aliases from a request.

      Parameters:
      request - the request containing the uploaded aliases
      response - the response
      Throws:
      Exception - if something goes wrong
    • saveAliases

      Saves alias changes to the database.

      Parameters:
      saveRequest - an object containing the alias changes to save
      Returns:
      a validation error if the alias data is invalid, or null otherwise
      Throws:
      CmsException - if something goes wrong
    • validateAliases

      Validates the alias data.

      Parameters:
      validationRequest - an object containing the alias data to validate
      Returns:
      the validation result
    • filterStructureId

      protected Set<CmsAlias> filterStructureId(Set<CmsAlias> aliases, Set<CmsUUID> structureIds)
      Filters all aliases from a set whose structure id is in a given set of structure ids.

      Parameters:
      aliases - the aliases to filter
      structureIds - the structure ids for which we want the aliases
      Returns:
      the filtered structure ids