public interface UnitAuthorizationService
| Modifier and Type | Method and Description |
|---|---|
List<Unit> |
getUnits(String userId,
String namespaceCode,
String permissionName)
Get the units that the user has the given permission in.
|
boolean |
hasMatchingQualifiedUnits(String userId,
String namespaceCode,
String permissionName,
String unitNumber) |
boolean |
hasPermission(String userId,
String namespaceCode,
String permissionName)
Does the user have the given permission?
If the user has the permission in the global space, this method will
return true.
|
boolean |
hasPermission(String userId,
String unitNumber,
String namespaceCode,
String permissionName)
Does the user have the given permission in the specified unit?
Along with checking the specific unit, if the user has the permission
in the global space, this method will also return true.
|
boolean hasPermission(String userId, String namespaceCode, String permissionName)
username - the user's usernamepermissionName - the name of the permissionboolean hasPermission(String userId, String unitNumber, String namespaceCode, String permissionName)
username - the user's usernameunitNumber - the Unit's unique numberpermissionName - the name of the permissionList<Unit> getUnits(String userId, String namespaceCode, String permissionName)
username - the user's usernamepermissionName - the name of the permissionCopyright © 2013 The Kuali Foundation. All Rights Reserved.