Class AbstractGroupPostServlet

    • Constructor Detail

      • AbstractGroupPostServlet

        public AbstractGroupPostServlet()
    • Method Detail

      • updateGroupMembership

        protected void updateGroupMembership​(org.apache.sling.api.resource.Resource baseResource,
                                             Map<String,​?> properties,
                                             org.apache.jackrabbit.api.security.user.Authorizable authorizable,
                                             List<org.apache.sling.servlets.post.Modification> changes)
                                      throws javax.jcr.RepositoryException
        Update the group membership based on the ":member" request parameters. If the ":member" value ends with @Delete it is removed from the group membership, otherwise it is added to the group membership.
        Parameters:
        baseResource - the group resource of the authorizable
        properties - the request parameters
        authorizable - the group to update
        changes - the changes which are done by this operation (list is extended)
        Throws:
        javax.jcr.RepositoryException - when updating the membership failed