org.sakaiproject.service.legacy.security
Interface SecurityAdvisor


public interface SecurityAdvisor

SecurityAdvisor is a stackable policy process that is given a chance to determine if a security question can be answered, over the logic of the SecurityService component.

Author:
Sakai Software Development Team

Nested Class Summary
static class SecurityAdvisor.SecurityAdvice
           SecurityAdvice enumerates different SecurityAdvisor results.
 
Method Summary
 SecurityAdvisor.SecurityAdvice isAllowed(String userId, String function, String reference)
          Can the current session user perform the requested function on the referenced Entity?
 

Method Detail

isAllowed

public SecurityAdvisor.SecurityAdvice isAllowed(String userId,
                                                String function,
                                                String reference)
Can the current session user perform the requested function on the referenced Entity?

Parameters:
userId - The user id.
function - The lock id string.
reference - The resource reference string.
Returns:
ALLOWED or NOT_ALLOWED if the advisor can answer that the user can or cannot, or PASS if the advisor cannot answer.