org.kuali.student.common.ui.client.service
Interface SecurityRpcService

All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
All Known Implementing Classes:
SecurityRpcGwtServlet

@RemoteServiceRelativePath(value="rpcservices/SecurityRpcService")
public interface SecurityRpcService
extends com.google.gwt.user.client.rpc.RemoteService

Author:
Kuali Student Team

Method Summary
 HashMap<String,Boolean> getPermissions(ArrayList<String> permissionNames)
          Given a list of permission names returns the list of permissions and if the
 ArrayList<String> getPermissionsByType(PermissionType permissionType)
          This is used to get all permissions assigned to the user based on a permission template.
 ArrayList<String> getPermissionsByType(PermissionType permissionType, HashMap<String,String> attributes)
          This is used to get all permissions assigned to the user based on a permission template.
 String getPrincipalUsername()
           
 HashMap<String,Boolean> getScreenPermissions(ArrayList<String> screens)
          Given a list of screen components, returns if user has permission for that screen element.
 Boolean hasPermissionByPermissionName(String permissionName)
          This is used to check if the user has a specific permission by the permission name
 Boolean hasScreenPermission(String screenName)
          This is used to check if the user has screen access based on a screen permission.
 

Method Detail

getPrincipalUsername

String getPrincipalUsername()

hasScreenPermission

Boolean hasScreenPermission(String screenName)
                            throws OperationFailedException
This is used to check if the user has screen access based on a screen permission.

Parameters:
screenName -
Returns:
true if user has permission
Throws:
OperationFailedException

getScreenPermissions

HashMap<String,Boolean> getScreenPermissions(ArrayList<String> screens)
                                             throws OperationFailedException
Given a list of screen components, returns if user has permission for that screen element.

Parameters:
screens -
Returns:
Throws:
OperationFailedException

getPermissions

HashMap<String,Boolean> getPermissions(ArrayList<String> permissionNames)
                                       throws OperationFailedException
Given a list of permission names returns the list of permissions and if the

Parameters:
permissionNames -
Returns:
Throws:
OperationFailedException

hasPermissionByPermissionName

Boolean hasPermissionByPermissionName(String permissionName)
                                      throws OperationFailedException
This is used to check if the user has a specific permission by the permission name

Parameters:
permissionName -
Returns:
true if user has the permission.
Throws:
OperationFailedException

getPermissionsByType

ArrayList<String> getPermissionsByType(PermissionType permissionType)
                                       throws OperationFailedException
This is used to get all permissions assigned to the user based on a permission template.

Parameters:
templateName -
Returns:
list of permission names
Throws:
OperationFailedException

getPermissionsByType

ArrayList<String> getPermissionsByType(PermissionType permissionType,
                                       HashMap<String,String> attributes)
                                       throws OperationFailedException
This is used to get all permissions assigned to the user based on a permission template.

Parameters:
permissionType -
attributes -
Returns:
list of permission names
Throws:
OperationFailedException


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.