Class UsersExportServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- org.apache.sling.api.servlets.SlingSafeMethodsServlet
-
- com.adobe.acs.commons.exporters.impl.users.UsersExportServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
@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- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classUsersExportServlet.CsvUserInternal class representing a user that will be exported in CSV format.
-
Constructor Summary
Constructors Constructor Description UsersExportServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckGroups(String[] groups, String groupFilter, UsersExportServlet.CsvUser csvUser)Determines if the user should be included based on the specified group filter type, and requested groups.voiddoGet(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response)Generates a CSV file representing the User Data.-
Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet
doGeneric, doHead, doOptions, doTrace, getAllowedRequestMethods, getServletInfo, handleMethodNotImplemented, mayService, service, service
-
-
-
-
Method Detail
-
doGet
public void doGet(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response) throws IOException, javax.servlet.ServletExceptionGenerates a CSV file representing the User Data.- Overrides:
doGetin classorg.apache.sling.api.servlets.SlingSafeMethodsServlet- Parameters:
request- the Sling HTTP Request objectresponse- the Sling HTTP Response object- Throws:
IOExceptionjavax.servlet.ServletException
-
checkGroups
protected boolean checkGroups(String[] groups, String groupFilter, UsersExportServlet.CsvUser csvUser) throws javax.jcr.RepositoryException
Determines if the user should be included based on the specified group filter type, and requested groups.- Parameters:
groups- the groupsgroupFilter- the groupFiltercsvUser- the user- Returns:
- true if the user should be included.
- Throws:
javax.jcr.RepositoryException
-
-