Package org.fenixedu.bennu.core.groups

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


    public void checkPermissionsToManageSpaceOccupationsWithoutCheckSpaceManager() {
        User user = Authenticate.getUser();
        if (getSpace() == null) {
            return;
        }
        final Group group = getAccessGroup();
        if (group != null && group.isMember(user)) {
            return;
        }

        throw new DomainException("error.logged.person.not.authorized.to.make.operation");
    }
View Full Code Here


    public static boolean isForEducation(Space space) {
        return isForEducation(space, null);
    }

    private static boolean isForEducation(Space space, Person person) {
        final Group lessonGroup = space.getOccupationsGroup();

        if (lessonGroup != null && lessonGroup.getMembers().size() > 0
                && (person == null || lessonGroup.isMember(person.getUser()))) {
            return true;
        }

        final Space parent = space.getParent();
        if (parent != null && parent.isActive() && (isRoom(parent) || isRoomSubdivision(parent))) {
View Full Code Here

TOP

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

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.