| org.sakaiproject.tool.assessment.facade.authz.standalone.AuthzQueriesFacade
AuthzQueriesFacade | public class AuthzQueriesFacade extends HibernateDaoSupport implements AuthzQueriesFacadeAPI(Code) | | Description: Facade for AuthZ queries, standalone version.
Sakai Project Copyright (c) 2005
author: Rachel Gollub author: Ed Smiley |
Method Summary | |
public boolean | checkAuthorization(String agentId, String functionId, String qualifierId) UNIMPLEMENTED.
Check the agent {agentId} authorized to do {function} to {qualifier}?
Parameters: agentId - the agent id. Parameters: functionId - the function to be performed. Parameters: qualifierId - the target of the function. | public boolean | checkMembership(String siteId) Check if member of site. | public AuthorizationData | createAuthorization(String agentId, String functionId, String qualifierId) Create an authorization record for {agentId} authorized to do {function}
to {qualifier}
Parameters: agentId - the agent id. Parameters: functionId - the function to be performed. Parameters: qualifierId - the target of the function. | public ArrayList | getAssessments(String agentId, String functionId) UNIMPLEMENTED.
Warning. | public ArrayList | getAssessmentsByAgentAndFunction(String agentId, String functionId) UNIMPLEMENTED.
Parameters: agentId - the agent id. Parameters: functionId - the function to be performed. | public List | getAuthorizationByAgentAndFunction(String agentId, String functionId) This returns a HashMap containing authorization data.
Parameters: agentId - is a site for now but can be a user Parameters: functionId - the function to be performed. | public List | getAuthorizationByFunctionAndQualifier(String functionId, String qualifierId) Get authorization list by qualifier and function.
Parameters: functionId - the function to be performed. Parameters: qualifierId - the target of the function. | public HashMap | getAuthorizationToViewAssessments(String agentId) | public boolean | hasPrivilege(String functionName) | public boolean | isAuthorized(String agentId, String function, String qualifier) Is the agent {agentId} authorized to do {function} to {qualifier}?
Parameters: agentId - the agent id. Parameters: functionId - the function to be performed. Parameters: qualifierId - the target of the function. | public void | removeAuthorizationByQualifier(String qualifierId, boolean isPublishedAssessment) Remove authorization from qualifier (target). |
checkAuthorization | public boolean checkAuthorization(String agentId, String functionId, String qualifierId)(Code) | | UNIMPLEMENTED.
Check the agent {agentId} authorized to do {function} to {qualifier}?
Parameters: agentId - the agent id. Parameters: functionId - the function to be performed. Parameters: qualifierId - the target of the function. --throw UnsupportedOperationException |
checkMembership | public boolean checkMembership(String siteId)(Code) | | Check if member of site.
Parameters: siteId - the site id true if a member. |
createAuthorization | public AuthorizationData createAuthorization(String agentId, String functionId, String qualifierId)(Code) | | Create an authorization record for {agentId} authorized to do {function}
to {qualifier}
Parameters: agentId - the agent id. Parameters: functionId - the function to be performed. Parameters: qualifierId - the target of the function. the authorization data |
getAssessments | public ArrayList getAssessments(String agentId, String functionId)(Code) | | UNIMPLEMENTED.
Warning. Oddly named method. Just following the convention.
Actually using select from ...AuthorizationData...
Parameters: agentId - the agent id. Parameters: functionId - the function to be performed. --throw UnsupportedOperationException |
getAssessmentsByAgentAndFunction | public ArrayList getAssessmentsByAgentAndFunction(String agentId, String functionId)(Code) | | UNIMPLEMENTED.
Parameters: agentId - the agent id. Parameters: functionId - the function to be performed. --throw UnsupportedOperationException |
getAuthorizationByAgentAndFunction | public List getAuthorizationByAgentAndFunction(String agentId, String functionId)(Code) | | This returns a HashMap containing authorization data.
Parameters: agentId - is a site for now but can be a user Parameters: functionId - the function to be performed. HashMap containing (String a.qualiferId, AuthorizationData a) |
getAuthorizationByFunctionAndQualifier | public List getAuthorizationByFunctionAndQualifier(String functionId, String qualifierId)(Code) | | Get authorization list by qualifier and function.
Parameters: functionId - the function to be performed. Parameters: qualifierId - the target of the function. the list of authorizations. |
getAuthorizationToViewAssessments | public HashMap getAuthorizationToViewAssessments(String agentId)(Code) | | This returns a HashMap containing
(String a.qualiferId, AuthorizationData a)
agentId is a site for now but can be a user
Parameters: agentId - the agent id HashMap containing qualiferId, AuthorizationData |
hasPrivilege | public boolean hasPrivilege(String functionName)(Code) | | |
isAuthorized | public boolean isAuthorized(String agentId, String function, String qualifier)(Code) | | Is the agent {agentId} authorized to do {function} to {qualifier}?
Parameters: agentId - the agent id. Parameters: functionId - the function to be performed. Parameters: qualifierId - the target of the function. true if authorized (always in standalone) |
removeAuthorizationByQualifier | public void removeAuthorizationByQualifier(String qualifierId, boolean isPublishedAssessment)(Code) | | Remove authorization from qualifier (target).
Parameters: qualifierId - the target. |
|
|