org.sakaiproject.component.section.facade.impl.standalone
Class AuthzStandaloneImpl

java.lang.Object
  extended byorg.springframework.dao.support.DaoSupport
      extended byorg.springframework.orm.hibernate.support.HibernateDaoSupport
          extended byorg.sakaiproject.component.section.facade.impl.standalone.AuthzStandaloneImpl
All Implemented Interfaces:
Authz, InitializingBean

public class AuthzStandaloneImpl
extends HibernateDaoSupport
implements Authz

A standalone, hibernate-based implementation of the Authz facade.

Author:
Josh Holtzman

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
AuthzStandaloneImpl()
           
 
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
 
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
checkDaoConfig, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthzStandaloneImpl

public AuthzStandaloneImpl()
Method Detail

isSectionManagementAllowed

public boolean isSectionManagementAllowed(String userUid,
                                          String siteContext)
Description copied from interface: Authz
Returns whether the current user can manage (add, edit, delete) sections.

Specified by:
isSectionManagementAllowed in interface Authz
Parameters:
siteContext -
userUid - The user's uid
Returns:

isSectionOptionsManagementAllowed

public boolean isSectionOptionsManagementAllowed(String userUid,
                                                 String siteContext)
Description copied from interface: Authz
Returns whether the current user can change section options in the site.

Specified by:
isSectionOptionsManagementAllowed in interface Authz
Parameters:
siteContext -
userUid - The user's uid
Returns:

isSectionEnrollmentMangementAllowed

public boolean isSectionEnrollmentMangementAllowed(String userUid,
                                                   String siteContext)
Description copied from interface: Authz
Returns whether the current user can change section enrollments.

Specified by:
isSectionEnrollmentMangementAllowed in interface Authz
Parameters:
siteContext -
userUid - The user's uid
Returns:

isSectionTaManagementAllowed

public boolean isSectionTaManagementAllowed(String userUid,
                                            String siteContext)
Description copied from interface: Authz
Returns whether the current user can change TA assignments to sections.

Specified by:
isSectionTaManagementAllowed in interface Authz
Parameters:
siteContext -
userUid - The user's uid
Returns:

isViewOwnSectionsAllowed

public boolean isViewOwnSectionsAllowed(String userUid,
                                        String siteContext)
Description copied from interface: Authz
Returns whether the current user is a student in the course

Specified by:
isViewOwnSectionsAllowed in interface Authz
Parameters:
userUid -
siteContext -
Returns:

isViewAllSectionsAllowed

public boolean isViewAllSectionsAllowed(String userUid,
                                        String siteContext)
Description copied from interface: Authz
Returns whether the current user can view all sections and their enrollments.

Specified by:
isViewAllSectionsAllowed in interface Authz
Parameters:
siteContext -
userUid - The user's uid
Returns: