org.sakaiproject.component.gradebook
Class GradebookPermissionServiceImpl

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.sakaiproject.component.gradebook.BaseHibernateManager
              extended by org.sakaiproject.component.gradebook.GradebookPermissionServiceImpl
All Implemented Interfaces:
GradebookPermissionService, org.springframework.beans.factory.InitializingBean

public class GradebookPermissionServiceImpl
extends BaseHibernateManager
implements GradebookPermissionService


Field Summary
 
Fields inherited from class org.sakaiproject.component.gradebook.BaseHibernateManager
authn, eventTrackingService, externalAssessmentService, MAX_NUMBER_OF_SQL_PARAMETERS_IN_LIST, propertiesMap, serverConfigurationService
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
GradebookPermissionServiceImpl()
           
 
Method Summary
 Map getAvailableItemsForStudent(Long gradebookId, String userId, String studentId, Collection courseSections)
           
 Map getAvailableItemsForStudent(String gradebookUid, String userId, String studentId, Collection courseSections)
           
 Map getAvailableItemsForStudents(Long gradebookId, String userId, List studentIds, Collection courseSections)
           
 Map getAvailableItemsForStudents(String gradebookUid, String userId, List studentIds, Collection courseSections)
           
 List<Long> getCategoriesForUser(Long gradebookId, String userId, List<Long> categoryIdList, int cateType)
           
 List<Long> getCategoriesForUserForStudentView(Long gradebookId, String userId, String studentId, List<Long> categoriesIds, int cateType, List<String> sectionIds)
           
 Map getCourseGradePermission(Long gradebookId, String userId, List studentIds, List courseSections)
           
 Map getCourseGradePermission(String gradebookUid, String userId, List studentIds, List courseSections)
           
 List getGraderPermissionsForUser(Long gradebookId, String userId)
           
 List getGraderPermissionsForUser(String gradebookUid, String userId)
           
 boolean getPermissionForUserForAllAssignment(Long gradebookId, String userId)
           
 boolean getPermissionForUserForAllAssignmentForStudent(Long gradebookId, String userId, String studentId, List sectionIds)
           
 SectionAwareness getSectionAwareness()
           
 Map<String,String> getStudentsForItem(Long gradebookId, String userId, List<String> studentIds, int cateType, Long categoryId, List courseSections)
           
 Map<String,String> getStudentsForItem(String gradebookUid, String userId, List<String> studentIds, int cateType, Long categoryId, List courseSections)
           
 List<String> getViewableGroupsForUser(Long gradebookId, String userId, List<String> groupIds)
           
 List getViewableGroupsForUser(String gradebookUid, String userId, List groupIds)
           
 List getViewableStudentsForUser(Long gradebookId, String userId, List studentIds, List sections)
           
 List getViewableStudentsForUser(String gradebookUid, String userId, List studentIds, List sections)
           
 void setSectionAwareness(SectionAwareness sectionAwareness)
           
 
Methods inherited from class org.sakaiproject.component.gradebook.BaseHibernateManager
addPermission, calculateEquivalentPercent, calculateEquivalentPointValueForPercent, convertPointsToLetterGrade, convertPointsToPercentage, createAssignment, createAssignmentForCategory, createCategory, createDefaultLetterGradePercentMapping, createOrUpdateDefaultLetterGradePercentMapping, createUngradedAssignment, createUngradedAssignmentForCategory, deletePermission, filterGradeRecordsByStudents, finalizeNullGradeRecords, getAllStudentUids, getAssignment, getAssignmentGradeRecord, getAssignments, getAssignmentsForCategory, getAssignmentWithoutStats, getAssignmentWithoutStats, getAuthn, getCategories, getCategoriesWithAssignments, getCategory, getComments, getCountedStudentGradeRecords, getCourseGrade, getCourseGradeRecord, getDefaultLetterGradePercentMapping, getEventTrackingService, getGradebook, getGradebookExternalAssessmentService, getGradebookUid, getLetterGradePercentMapping, getPermissionsForGB, getPermissionsForGBForCategoryIds, getPermissionsForUser, getPermissionsForUserAnyCategory, getPermissionsForUserAnyGroup, getPermissionsForUserAnyGroupAnyCategory, getPermissionsForUserAnyGroupForCategory, getPermissionsForUserForCategory, getPermissionsForUserForGoupsAnyCategory, getPermissionsForUserForGroup, getPropertiesMap, getPropertyValue, getServerConfigurationService, getUserUid, getVisibleExternalAssignments, isAssignmentDefined, isExplicitlyEnteredCourseGradeRecords, isGradebookDefined, postEvent, removeCategory, saveOrUpdateLetterGradePercentMapping, setAuthn, setEventTrackingService, setGradebookExternalAssessmentService, setPropertyValue, setServerConfigurationService, studentCanView, updateAssignment, updateCategory, updateCategory, updateGradebook, updatePermission, updatePermission, validateLetterGradeMapping
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, 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

GradebookPermissionServiceImpl

public GradebookPermissionServiceImpl()
Method Detail

getCategoriesForUser

public List<Long> getCategoriesForUser(Long gradebookId,
                                       String userId,
                                       List<Long> categoryIdList,
                                       int cateType)
                                throws IllegalArgumentException
Specified by:
getCategoriesForUser in interface GradebookPermissionService
Throws:
IllegalArgumentException

getCategoriesForUserForStudentView

public List<Long> getCategoriesForUserForStudentView(Long gradebookId,
                                                     String userId,
                                                     String studentId,
                                                     List<Long> categoriesIds,
                                                     int cateType,
                                                     List<String> sectionIds)
                                              throws IllegalArgumentException
Specified by:
getCategoriesForUserForStudentView in interface GradebookPermissionService
Throws:
IllegalArgumentException

getPermissionForUserForAllAssignment

public boolean getPermissionForUserForAllAssignment(Long gradebookId,
                                                    String userId)
                                             throws IllegalArgumentException
Specified by:
getPermissionForUserForAllAssignment in interface GradebookPermissionService
Throws:
IllegalArgumentException

getPermissionForUserForAllAssignmentForStudent

public boolean getPermissionForUserForAllAssignmentForStudent(Long gradebookId,
                                                              String userId,
                                                              String studentId,
                                                              List sectionIds)
                                                       throws IllegalArgumentException
Specified by:
getPermissionForUserForAllAssignmentForStudent in interface GradebookPermissionService
Throws:
IllegalArgumentException

getStudentsForItem

public Map<String,String> getStudentsForItem(Long gradebookId,
                                             String userId,
                                             List<String> studentIds,
                                             int cateType,
                                             Long categoryId,
                                             List courseSections)
                                      throws IllegalArgumentException
Specified by:
getStudentsForItem in interface GradebookPermissionService
Throws:
IllegalArgumentException

getStudentsForItem

public Map<String,String> getStudentsForItem(String gradebookUid,
                                             String userId,
                                             List<String> studentIds,
                                             int cateType,
                                             Long categoryId,
                                             List courseSections)
                                      throws IllegalArgumentException
Specified by:
getStudentsForItem in interface GradebookPermissionService
Throws:
IllegalArgumentException

getViewableGroupsForUser

public List<String> getViewableGroupsForUser(Long gradebookId,
                                             String userId,
                                             List<String> groupIds)
Specified by:
getViewableGroupsForUser in interface GradebookPermissionService

getViewableGroupsForUser

public List getViewableGroupsForUser(String gradebookUid,
                                     String userId,
                                     List groupIds)
Specified by:
getViewableGroupsForUser in interface GradebookPermissionService

getGraderPermissionsForUser

public List getGraderPermissionsForUser(Long gradebookId,
                                        String userId)
Specified by:
getGraderPermissionsForUser in interface GradebookPermissionService

getGraderPermissionsForUser

public List getGraderPermissionsForUser(String gradebookUid,
                                        String userId)
Specified by:
getGraderPermissionsForUser in interface GradebookPermissionService

getAvailableItemsForStudent

public Map getAvailableItemsForStudent(Long gradebookId,
                                       String userId,
                                       String studentId,
                                       Collection courseSections)
                                throws IllegalArgumentException
Specified by:
getAvailableItemsForStudent in interface GradebookPermissionService
Throws:
IllegalArgumentException

getAvailableItemsForStudent

public Map getAvailableItemsForStudent(String gradebookUid,
                                       String userId,
                                       String studentId,
                                       Collection courseSections)
                                throws IllegalArgumentException
Specified by:
getAvailableItemsForStudent in interface GradebookPermissionService
Throws:
IllegalArgumentException

getAvailableItemsForStudents

public Map getAvailableItemsForStudents(Long gradebookId,
                                        String userId,
                                        List studentIds,
                                        Collection courseSections)
                                 throws IllegalArgumentException
Specified by:
getAvailableItemsForStudents in interface GradebookPermissionService
Throws:
IllegalArgumentException

getAvailableItemsForStudents

public Map getAvailableItemsForStudents(String gradebookUid,
                                        String userId,
                                        List studentIds,
                                        Collection courseSections)
                                 throws IllegalArgumentException
Specified by:
getAvailableItemsForStudents in interface GradebookPermissionService
Throws:
IllegalArgumentException

getCourseGradePermission

public Map getCourseGradePermission(Long gradebookId,
                                    String userId,
                                    List studentIds,
                                    List courseSections)
                             throws IllegalArgumentException
Specified by:
getCourseGradePermission in interface GradebookPermissionService
Throws:
IllegalArgumentException

getCourseGradePermission

public Map getCourseGradePermission(String gradebookUid,
                                    String userId,
                                    List studentIds,
                                    List courseSections)
                             throws IllegalArgumentException
Specified by:
getCourseGradePermission in interface GradebookPermissionService
Throws:
IllegalArgumentException

getViewableStudentsForUser

public List getViewableStudentsForUser(Long gradebookId,
                                       String userId,
                                       List studentIds,
                                       List sections)
Specified by:
getViewableStudentsForUser in interface GradebookPermissionService

getViewableStudentsForUser

public List getViewableStudentsForUser(String gradebookUid,
                                       String userId,
                                       List studentIds,
                                       List sections)
Specified by:
getViewableStudentsForUser in interface GradebookPermissionService

getSectionAwareness

public SectionAwareness getSectionAwareness()
Overrides:
getSectionAwareness in class BaseHibernateManager

setSectionAwareness

public void setSectionAwareness(SectionAwareness sectionAwareness)
Overrides:
setSectionAwareness in class BaseHibernateManager


Copyright © 2003-2013 Sakai Project. All Rights Reserved.