| org.sakaiproject.section.api.facade.manager.Authz
All known Subclasses: org.sakaiproject.tool.section.facade.sakai.AuthzSakaiImpl, org.sakaiproject.component.section.facade.impl.standalone.AuthzStandaloneImpl,
Authz | public interface Authz (Code) | | A facade that provides answers to the section manager's authorization questions.
author: Josh Holtzman |
Method Summary | |
public String | getRoleDescription(String userUid, String siteContext) Returns the role description for a user in a particular context. | public boolean | isSectionAssignable(String userUid, String siteContext) Returns whether the user can be assigned to specific sections. | public boolean | isSectionEnrollmentMangementAllowed(String userUid, String siteContext) Returns whether the current user can change section enrollments. | public boolean | isSectionManagementAllowed(String userUid, String siteContext) Returns whether the current user can manage (add, edit, delete) sections. | public boolean | isSectionOptionsManagementAllowed(String userUid, String siteContext) Returns whether the current user can change section options in the site. | public boolean | isSectionTaManagementAllowed(String userUid, String siteContext) Returns whether the current user can change TA assignments to sections. | public boolean | isViewAllSectionsAllowed(String userUid, String siteContext) Returns whether the current user can view all sections and their enrollments. | public boolean | isViewOwnSectionsAllowed(String userUid, String siteContext) |
getRoleDescription | public String getRoleDescription(String userUid, String siteContext)(Code) | | Returns the role description for a user in a particular context. This isn't strictly
authz, but it doesn't seem to require its own facade.
Parameters: userUid - Parameters: siteContext - |
isSectionAssignable | public boolean isSectionAssignable(String userUid, String siteContext)(Code) | | Returns whether the user can be assigned to specific sections. In general, a TA
can be assigned to a section, while an instructor can not (since they are site-wide
administrators).
Parameters: userUid - Parameters: siteContext - |
isSectionEnrollmentMangementAllowed | public boolean isSectionEnrollmentMangementAllowed(String userUid, String siteContext)(Code) | | Returns whether the current user can change section enrollments.
Parameters: siteContext - Parameters: userUid - The user's uid |
isSectionManagementAllowed | public boolean isSectionManagementAllowed(String userUid, String siteContext)(Code) | | Returns whether the current user can manage (add, edit, delete) sections.
Parameters: siteContext - Parameters: userUid - The user's uid |
isSectionOptionsManagementAllowed | public boolean isSectionOptionsManagementAllowed(String userUid, String siteContext)(Code) | | Returns whether the current user can change section options in the site.
Parameters: siteContext - Parameters: userUid - The user's uid |
isSectionTaManagementAllowed | public boolean isSectionTaManagementAllowed(String userUid, String siteContext)(Code) | | Returns whether the current user can change TA assignments to sections.
Parameters: siteContext - Parameters: userUid - The user's uid |
isViewAllSectionsAllowed | public boolean isViewAllSectionsAllowed(String userUid, String siteContext)(Code) | | Returns whether the current user can view all sections and their enrollments.
Parameters: siteContext - Parameters: userUid - The user's uid |
isViewOwnSectionsAllowed | public boolean isViewOwnSectionsAllowed(String userUid, String siteContext)(Code) | | Returns whether the current user is a student in the course
Parameters: userUid - Parameters: siteContext - |
|
|