Examples of PermissionsSet


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

        }
    }


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

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

     * @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

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

        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
Copyright © 2018 www.massapi.com. 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.