Group Administrator's Actions
com.ndc.community.struts.actions.groupmembership.AcceptGroupRequest
can be used for accepting a group membership request from a user. Here is the struts configuration to use this
action
class:
<form-bean name="groupMemberForm" type="com.ndc.community.struts.actions.forms.GroupMembershipForm" /> <action path="/group/request/accept" name="groupMemberForm" scope="request" type="com.ndc.community.struts.actions.groupmembership.AcceptGroupRequest"> <forward name="error" path="/group-request-error.jsp" /> <forward name="success" path="/group-request-success.jsp" redirect="true" /> </action>
Here is an example JSP script to let the group administrator accept the group membership requests:
<community:groupMembers id="candidates" name="group" type="candidate"/> <c:forEach items="${candidates}" var="candidate"> <html:form styleId="groupMemberForm" action="/group/request/accept"> <html:hidden property="groupId" value="${group.id}" /> <html:hidden property="memberId" value="${candidate.id}" /> <html:submit value="Accept"/> </html:form> </c:forEach>
Form Property | Description |
---|---|
|
The ID of the group to be joined. |
|
Not used in this |
|
The ID of the user who's group member ship request is being processed. Normally, this property refers the ID of the user that group administrator deals with. |
There are other group administrator initiated actions which can be used in the similar way.
-
com.ndc.community.struts.actions.groupmembership.InviteGroupMembership
- A group member or a group administrator invites an user to the group. -
com.ndc.community.struts.actions.groupmembership.DeclineGroupRequest
- the group administrator declines a group membership request from an user. -
com.ndc.community.struts.actions.groupmembership.RemoveGroupMembership
- the group administrator removes a user from the group.