|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.student.common.ui.client.security.SecurityContext
public class SecurityContext
An interface to access the Kuali Student security context
| Field Summary | |
|---|---|
private Map<String,Boolean> |
permissionCache
|
private String |
principalName
|
protected SecurityRpcServiceAsync |
securityRpcService
|
| Constructor Summary | |
|---|---|
SecurityContext()
|
|
| Method Summary | |
|---|---|
boolean |
checkCachedScreenPermission(String screenComponent)
Used to check a pre-loaded or cached screen permission. |
void |
checkPermission(String[] permissionNames,
Callback<Boolean> checkPermissionCallback)
Used to check if user has at least one of the permissions listed in the set of permissions passed in |
void |
checkPermission(String permissionName,
Callback<Boolean> checkPermissionCallback)
Used to check if user has a permission by its permission name. |
boolean |
checkPermissionCache(String permission)
Used to check if the permission has been loaded into the cache. |
void |
checkPermissionNoCache(String permissionName,
Callback<Boolean> checkPermissionCallback)
Used to check if user has the permission with given permissionName without being cached. |
void |
checkScreenPermission(String screenComponent,
Callback<Boolean> checkPermissionCallback)
Used to check if user has a screen permission. |
String |
getUserId()
|
void |
initializeSecurityContext(Callback<Boolean> contextIntializedCallback)
|
void |
loadPermissionsByPermissionType(PermissionType permissionType)
Loads into the permission cache all the permissions user has for a permission type. |
void |
loadScreenPermissions(ArrayList<String> screenComponents,
Callback<Boolean> loadPermissionsCallback)
Loads into the permission cache all the permissions user has for a permission type. |
void |
setPrincipalName(String principalName)
Set principalName of the user logged in (eg. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SecurityRpcServiceAsync securityRpcService
private String principalName
private Map<String,Boolean> permissionCache
| Constructor Detail |
|---|
public SecurityContext()
| Method Detail |
|---|
public void initializeSecurityContext(Callback<Boolean> contextIntializedCallback)
public void setPrincipalName(String principalName)
principalId - public String getUserId()
public boolean checkPermissionCache(String permission)
public void checkScreenPermission(String screenComponent,
Callback<Boolean> checkPermissionCallback)
screenComponent - public boolean checkCachedScreenPermission(String screenComponent)
screenComponent -
public void checkPermission(String permissionName,
Callback<Boolean> checkPermissionCallback)
permissionName -
public void checkPermission(String[] permissionNames,
Callback<Boolean> checkPermissionCallback)
permissionNames - list of permission names to check
public void checkPermissionNoCache(String permissionName,
Callback<Boolean> checkPermissionCallback)
permissionName - public void loadPermissionsByPermissionType(PermissionType permissionType)
public void loadScreenPermissions(ArrayList<String> screenComponents,
Callback<Boolean> loadPermissionsCallback)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||