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

All Known Implementing Classes:
AuthzSakaiImpl, AuthzStandaloneImpl

public interface Authz

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

Author:
Josh Holtzman

Method Summary
 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

public 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

public 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

public 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

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

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

isSectionTaManagementAllowed

public 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

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

Parameters:
userUid -
siteContext -
Returns: