org.sakaiproject.tool.assessment.facade
Interface AuthzQueriesFacadeAPI

All Known Implementing Classes:
AuthzQueriesFacade, AuthzQueriesFacade

public interface AuthzQueriesFacadeAPI


Method Summary
 boolean checkMembership(String siteId)
           
 AuthorizationData createAuthorization(String agentId, String functionId, String qualifierId)
           
 List getAuthorizationByAgentAndFunction(String agentId, String functionId)
           
 List getAuthorizationByFunctionAndQualifier(String functionId, String qualifierId)
           
 HashMap getAuthorizationToViewAssessments(String agentId)
          This returns a HashMap containing (String a.qualiferId, AuthorizationData a) agentId is a site for now but can be a user
 boolean hasPrivilege(String functionName)
           
 boolean isAuthorized(String agentId, String function, String qualifier)
           
 void removeAuthorizationByQualifier(String qualifierId, boolean isPublishedAssessment)
           
 

Method Detail

hasPrivilege

public boolean hasPrivilege(String functionName)

isAuthorized

public boolean isAuthorized(String agentId,
                            String function,
                            String qualifier)

createAuthorization

public AuthorizationData createAuthorization(String agentId,
                                             String functionId,
                                             String qualifierId)

removeAuthorizationByQualifier

public void removeAuthorizationByQualifier(String qualifierId,
                                           boolean isPublishedAssessment)

getAuthorizationToViewAssessments

public HashMap getAuthorizationToViewAssessments(String agentId)
This returns a HashMap containing (String a.qualiferId, AuthorizationData a) agentId is a site for now but can be a user


getAuthorizationByAgentAndFunction

public List getAuthorizationByAgentAndFunction(String agentId,
                                               String functionId)

getAuthorizationByFunctionAndQualifier

public List getAuthorizationByFunctionAndQualifier(String functionId,
                                                   String qualifierId)

checkMembership

public boolean checkMembership(String siteId)