Interface ClientPermissionEvaluator
public interface ClientPermissionEvaluator
- Version:
 - $Revision: 1 $
 - Author:
 - Bill Burke
 
- 
Method Summary
Modifier and TypeMethodDescriptionbooleancanConfigure(ClientModel client) booleancanList()booleanbooleanReturnstrueif the caller hasAdminRoles.MANAGE_CLIENTSrole.booleancanManage(ClientModel client) Returnstrueif the caller hasAdminRoles.MANAGE_CLIENTSrole.booleancanManage(ClientScopeModel clientScope) Returnstrueif the caller hasAdminRoles.MANAGE_CLIENTSrole.booleanReturnstrueif the caller hasAdminRoles.MANAGE_CLIENTSrole.booleancanMapClientScopeRoles(ClientModel client) Returnstrueif the caller has a permission toClientPermissionManagement.MAP_ROLES_CLIENT_SCOPEfor the client.booleancanMapCompositeRoles(ClientModel client) Returnstrueif the caller has a permission toClientPermissionManagement.MAP_ROLES_COMPOSITE_SCOPEfor the client.booleancanMapRoles(ClientModel client) Returnstrueif the caller has a permission toClientPermissionManagement.MAP_ROLES_SCOPEfor the client.booleancanView()Returnstrueif the caller has at least one of theAdminRoles.MANAGE_CLIENTSorAdminRoles.VIEW_CLIENTSroles.booleancanView(ClientModel client) booleancanView(ClientScopeModel clientScope) Returnstrueif the caller has at least one of theAdminRoles.VIEW_CLIENTSorAdminRoles.MANAGE_CLIENTSroles.booleangetAccess(ClientModel client) getClientIdsByScope(String scope) Returns the IDs of the clients that the current user can perform based onscope.booleanisPermissionsEnabled(ClientModel client) voidrequireConfigure(ClientModel client) Throws ForbiddenException ifcanConfigure(ClientModel)returnsfalse.voidThrows ForbiddenException ifcanList()returnsfalse.voidThrows ForbiddenException ifcanListClientScopes()returnsfalse.voidThrows ForbiddenException ifcanManage()returnsfalse.voidrequireManage(ClientModel client) Throws ForbiddenException ifcanManage(ClientModel)returnsfalse.voidrequireManage(ClientScopeModel clientScope) Throws ForbiddenException ifcanManage(ClientScopeModel)returnsfalse.voidThrows ForbiddenException ifcanManageClientScopes()returnsfalse.voidvoidrequireView(ClientModel client) Throws ForbiddenException ifcanView(ClientModel)returnsfalse.voidrequireView(ClientScopeModel clientScope) Throws ForbiddenException ifcanView(ClientScopeModel)returnsfalse.voidvoidsetPermissionsEnabled(ClientModel client, boolean enable)  
- 
Method Details
- 
isPermissionsEnabled
 - 
setPermissionsEnabled
 - 
requireListClientScopes
void requireListClientScopes()Throws ForbiddenException ifcanListClientScopes()returnsfalse. - 
canManage
boolean canManage()Returnstrueif the caller hasAdminRoles.MANAGE_CLIENTSrole. For V2 only: Also if it has permission toAdminPermissionsSchema.MANAGE. - 
requireManage
void requireManage()Throws ForbiddenException ifcanManage()returnsfalse. - 
canManageClientScopes
boolean canManageClientScopes()Returnstrueif the caller hasAdminRoles.MANAGE_CLIENTSrole. For V2 only: Also if it has permission toAdminPermissionsSchema.MANAGE. - 
requireManageClientScopes
void requireManageClientScopes()Throws ForbiddenException ifcanManageClientScopes()returnsfalse. - 
canView
boolean canView()Returnstrueif the caller has at least one of theAdminRoles.MANAGE_CLIENTSorAdminRoles.VIEW_CLIENTSroles. For V2 only: Also if it has permission toAdminPermissionsSchema.VIEW. - 
canList
boolean canList()ReturnstrueifcanView()returnstrue. Or if the caller has at least one of theAdminRoles.QUERY_CLIENTSrole. V1: orAdminRoles.QUERY_USERSroles. - 
canViewClientScopes
boolean canViewClientScopes() - 
requireList
void requireList()Throws ForbiddenException ifcanList()returnsfalse. - 
canListClientScopes
boolean canListClientScopes() - 
requireView
void requireView() - 
requireViewClientScopes
void requireViewClientScopes() - 
canManage
Returnstrueif the caller hasAdminRoles.MANAGE_CLIENTSrole. Or if the caller has a permission toAdminPermissionManagement.MANAGE_SCOPEthe client. For V2 only: Also if the caller has a permission toAdminPermissionsSchema.MANAGEall clients. - 
canConfigure
ReturnstrueifcanManage(ClientModel)returnstrue. Or if the caller has a permission toClientPermissionManagement.CONFIGURE_SCOPEthe client. For V2 only: the call is redirected tocanManage(ClientModel). - 
requireConfigure
Throws ForbiddenException ifcanConfigure(ClientModel)returnsfalse. For V2 only: the call is redirected torequireManage(ClientModel). - 
requireManage
Throws ForbiddenException ifcanManage(ClientModel)returnsfalse. - 
canView
ReturnstrueifcanView()orcanConfigure(ClientModel)returnstrue. Or if the caller has a permission toAdminPermissionManagement.VIEW_SCOPEthe client. For V2 only: Also if the caller has a permission toAdminPermissionsSchema.VIEWall clients. - 
requireView
Throws ForbiddenException ifcanView(ClientModel)returnsfalse. - 
canManage
Returnstrueif the caller hasAdminRoles.MANAGE_CLIENTSrole. For V2 only: Also if it has permission toAdminPermissionsSchema.MANAGE. - 
requireManage
Throws ForbiddenException ifcanManage(ClientScopeModel)returnsfalse. - 
canView
Returnstrueif the caller has at least one of theAdminRoles.VIEW_CLIENTSorAdminRoles.MANAGE_CLIENTSroles. For V2 only: Also if it has permission toAdminPermissionsSchema.VIEW. - 
requireView
Throws ForbiddenException ifcanView(ClientScopeModel)returnsfalse. - 
canMapRoles
Returnstrueif the caller has a permission toClientPermissionManagement.MAP_ROLES_SCOPEfor the client. For V2 only: Also if the caller has a permission toAdminPermissionsSchema.MAP_ROLESfor all clients. - 
canMapCompositeRoles
Returnstrueif the caller has a permission toClientPermissionManagement.MAP_ROLES_COMPOSITE_SCOPEfor the client. For V2 only: Also if the caller has a permission toAdminPermissionsSchema.MAP_ROLES_COMPOSITEfor all clients. - 
canMapClientScopeRoles
Returnstrueif the caller has a permission toClientPermissionManagement.MAP_ROLES_CLIENT_SCOPEfor the client. For V2 only: Also if the caller has a permission toAdminPermissionsSchema.MAP_ROLES_CLIENT_SCOPEfor all clients. - 
getAccess
 - 
getClientIdsByScope
Returns the IDs of the clients that the current user can perform based onscope.- Returns:
 - Stream of IDs of clients with 
scopepermission. 
 
 -