Package org.fenixedu.bennu.core.groups

Examples of org.fenixedu.bennu.core.groups.DynamicGroup


@Forwards(@Forward(name = "residenceRoleManagement", path = "/residenceManagement/residenceRoleManagement.jsp"))
public class ResidenceRoleManagementDA extends FenixDispatchAction {

    public ActionForward addResidenceRoleManagemenToPerson(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) throws Exception {
        DynamicGroup group = getResidenceRoleManagement();
        group.changeGroup(group.underlyingGroup().grant(getResidenceRoleManagementBean().getPerson().getUser()));
        return residencePersonsManagement(mapping, actionForm, request, response);
    }
View Full Code Here


    }

    public ActionForward removeResidenceRoleManagemenToPerson(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) throws Exception {
        User user = User.findByUsername(request.getParameter("userToRemove"));
        DynamicGroup group = getResidenceRoleManagement();
        group.changeGroup(group.underlyingGroup().revoke(user));
        return residencePersonsManagement(mapping, actionForm, request, response);
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.bennu.core.groups.DynamicGroup

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.