Package org.opencms.ade.sitemap
Class CmsAliasBulkEditHelper
java.lang.Object
org.opencms.ade.sitemap.CmsAliasBulkEditHelper
Helper class used by a service to edit or import aliases for a whole site.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfilterStructureId
(Set<CmsAlias> aliases, Set<CmsUUID> structureIds) Filters all aliases from a set whose structure id is in a given set of structure ids.void
importAliases
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Imports uploaded aliases from a request.saveAliases
(CmsAliasSaveValidationRequest saveRequest) Saves alias changes to the database.validateAliases
(CmsAliasEditValidationRequest validationRequest) Validates the alias data.
-
Constructor Details
-
CmsAliasBulkEditHelper
Creates a new helper object.- Parameters:
cms
- the current CMS context
-
-
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 aliasesresponse
- the response- Throws:
Exception
- if something goes wrong
-
filterStructureId
Filters all aliases from a set whose structure id is in a given set of structure ids.- Parameters:
aliases
- the aliases to filterstructureIds
- the structure ids for which we want the aliases- Returns:
- the filtered structure ids
-