Package edu.stanford.bmir.protege.web.shared.permissions

Examples of edu.stanford.bmir.protege.web.shared.permissions.PermissionsSet$Builder


        }
    }


    public boolean hasPermission(UserId userId, Permission permission) {
        PermissionsSet set = getPermissionsSet(userId);
        return set.contains(permission);
    }
View Full Code Here


     * @param userId The user. Not {@code null}.
     * @param permissions The permissions.  Not {@code null}.
     * @throws NullPointerException if any parameters are {@code null}.
     */
    public void setUserPermissions(UserId userId, PermissionsSet permissions) {
        PermissionsSet old = user2permissionMap.put(checkNotNull(userId), checkNotNull(permissions));
        if(old == null || old.equals(permissions)) {
            EventBusManager.getManager().postEvent(new PermissionsChangedEvent(projectId));
        }
    }
View Full Code Here

        return projectId;
    }


    public PermissionsSet getPermissionsSet(UserId userId) {
        PermissionsSet result = user2permissionMap.get(checkNotNull(userId));
        if(result == null) {
            return PermissionsSet.emptySet();
        }
        else {
            return result;
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.shared.permissions.PermissionsSet$Builder

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.