return permissionRules.get( requestedObject.getClass() );
}
private Object convertFor(Object requestedObject) {
PermissionRuleObjectConverter permissionRuleObjectConverter = permissionRuleObjectConverters.get( requestedObject.getClass() );
return permissionRuleObjectConverter == null ? requestedObject : permissionRuleObjectConverter.convert( requestedObject );
}
private List<RoleBasedPermission> fetchAllRoleBasedPermissionsForCurrentUser() {
return ((RoleBasedPermissionManager) Component.getInstance( "roleBasedPermissionManager" )).getRoleBasedPermission();
}