org.sakaiproject.section.api.facade.manager
Interface Authz

All Known Implementing Classes:
AuthzStandaloneImpl

public interface Authz

A facade that provides answers to the section manager's authorization questions.

Author:
Josh Holtzman

Method Summary
 String getRoleDescription(String userUid, String siteContext)
          Returns the role description for a user in a particular context.
 boolean isSectionAssignable(String userUid, String siteContext)
          Returns whether the user can be assigned to specific sections.
 boolean isSectionEnrollmentMangementAllowed(String userUid, String siteContext)
          Returns whether the current user can change section enrollments.
 boolean isSectionManagementAllowed(String userUid, String siteContext)
          Returns whether the current user can manage (add, edit, delete) sections.
 boolean isSectionOptionsManagementAllowed(String userUid, String siteContext)
          Returns whether the current user can change section options in the site.
 boolean isSectionTaManagementAllowed(String userUid, String siteContext)
          Returns whether the current user can change TA assignments to sections.
 boolean isViewAllSectionsAllowed(String userUid, String siteContext)
          Returns whether the current user can view all sections and their enrollments.
 boolean isViewOwnSectionsAllowed(String userUid, String siteContext)
          Returns whether the current user is a student in the course
 

Method Detail

isSectionManagementAllowed

boolean isSectionManagementAllowed(String userUid,
                                   String siteContext)
Returns whether the current user can manage (add, edit, delete) sections.

Parameters:
siteContext -
userUid - The user's uid
Returns:

isViewAllSectionsAllowed

boolean isViewAllSectionsAllowed(String userUid,
                                 String siteContext)
Returns whether the current user can view all sections and their enrollments.

Parameters:
siteContext -
userUid - The user's uid
Returns:

isSectionOptionsManagementAllowed

boolean isSectionOptionsManagementAllowed(String userUid,
                                          String siteContext)
Returns whether the current user can change section options in the site.

Parameters:
siteContext -
userUid - The user's uid
Returns:

isSectionEnrollmentMangementAllowed

boolean isSectionEnrollmentMangementAllowed(String userUid,
                                            String siteContext)
Returns whether the current user can change section enrollments.

Parameters:
siteContext -
userUid - The user's uid
Returns:

isSectionTaManagementAllowed

boolean isSectionTaManagementAllowed(String userUid,
                                     String siteContext)
Returns whether the current user can change TA assignments to sections.

Parameters:
siteContext -
userUid - The user's uid
Returns:

isViewOwnSectionsAllowed

boolean isViewOwnSectionsAllowed(String userUid,
                                 String siteContext)
Returns whether the current user is a student in the course

Parameters:
userUid -
siteContext -
Returns:

isSectionAssignable

boolean isSectionAssignable(String userUid,
                            String siteContext)
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 -
siteContext -
Returns:

getRoleDescription

String getRoleDescription(String userUid,
                          String siteContext)
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 -
siteContext -
Returns:


Copyright © 2011 Sakai Project. All Rights Reserved.