@SlingServlet(label="ACS AEM Commons - Users to CSV - Export Servlet",
methods="GET",
resourceTypes="acs-commons/components/utilities/exporters/users-to-csv",
selectors="export",
extensions="csv")
public class UsersExportServlet
extends org.apache.sling.api.servlets.SlingSafeMethodsServlet
| Modifier and Type | Class and Description |
|---|---|
protected static class |
UsersExportServlet.CsvUser
Internal class representing a user that will be exported in CSV format.
|
| Constructor and Description |
|---|
UsersExportServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkGroups(String[] groups,
String groupFilter,
UsersExportServlet.CsvUser csvUser)
Determines if the user should be included based on the specified group filter type, and requested groups.
|
void |
doGet(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response)
Generates a CSV file representing the User Data.
|
doGeneric, doHead, doOptions, doTrace, getAllowedRequestMethods, getServletInfo, handleMethodNotImplemented, mayService, service, servicepublic void doGet(org.apache.sling.api.SlingHttpServletRequest request,
org.apache.sling.api.SlingHttpServletResponse response)
throws IOException,
javax.servlet.ServletException
doGet in class org.apache.sling.api.servlets.SlingSafeMethodsServletrequest - the Sling HTTP Request objectresponse - the Sling HTTP Response objectIOExceptionjavax.servlet.ServletExceptionprotected boolean checkGroups(String[] groups, String groupFilter, UsersExportServlet.CsvUser csvUser) throws javax.jcr.RepositoryException
groups - the groupsgroupFilter - the groupFiltercsvUser - the userjavax.jcr.RepositoryExceptionCopyright © 2013–2020 Adobe. All rights reserved.