org.sakaiproject.tool.assessment.ui.bean.authz
Class AuthorizationBean

java.lang.Object
  extended byorg.sakaiproject.tool.assessment.ui.bean.authz.AuthorizationBean
All Implemented Interfaces:
Serializable

public class AuthorizationBean
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
AuthorizationBean()
           
 
Method Summary
 void addAdminPrivilege(boolean privilege, String functionKey, String siteId)
           
 void addAllPrivilege(String siteId)
           
 boolean addPrivilege(String functionKey, String siteId)
           
 boolean canCopyOwnQuestionPool(String siteId)
           
 boolean canCreateAssessment(String siteId)
           
 boolean canCreateQuestionPool(String siteId)
           
 boolean canCreateTemplate(String siteId)
           
 boolean canDeleteAnyAssessment(String siteId)
           
 boolean canDeleteOwnAssessment(String siteId)
           
 boolean canDeleteOwnQuestionPool(String siteId)
           
 boolean canDeleteOwnTemplate(String siteId)
           
 boolean canEditAnyAssessment(String siteId)
           
 boolean canEditOwnAssessment(String siteId)
           
 boolean canEditOwnQuestionPool(String siteId)
           
 boolean canEditOwnTemplate(String siteId)
           
 boolean canGradeAnyAssessment(String siteId)
           
 boolean canGradeOwnAssessment(String siteId)
           
 boolean canPublishAnyAssessment(String siteId)
           
 boolean canPublishOwnAssessment(String siteId)
           
 boolean canSubmitAssessmentForGrade(String siteId)
           
 boolean canTakeAssessment(String siteId)
           
 boolean getAdminAssessment()
           
 boolean getAdminCoreAssessment()
           
 boolean getAdminNewAssessment()
           
 boolean getAdminPrivilege()
           
 boolean getAdminPublishedAssessment()
           
 boolean getAdminQuestionPool()
           
 boolean getAdminTemplate()
           
 HashMap getAuthzMap()
           
 boolean getCopyOwnQuestionPool()
           
 boolean getCreateAssessment()
           
 boolean getCreateQuestionPool()
           
 boolean getCreateTemplate()
           
 boolean getDeleteAnyAssessment()
           
 boolean getDeleteOwnAssessment()
           
 boolean getDeleteOwnQuestionPool()
           
 boolean getDeleteOwnTemplate()
           
 boolean getEditAnyAssessment()
           
 boolean getEditOwnAssessment()
           
 boolean getEditOwnQuestionPool()
           
 boolean getEditOwnTemplate()
           
 boolean getGradeAnyAssessment()
           
 boolean getGradeAnyAssessment(HttpServletRequest req, String siteId)
           
 boolean getGradeOwnAssessment()
           
 boolean getGradeOwnAssessment(HttpServletRequest req, String siteId)
           
 boolean getPrivilege(HttpServletRequest req, String functionKey, String siteId)
           
 boolean getPrivilege(String functionKey)
           
 boolean getPublishAnyAssessment()
           
 boolean getPublishOwnAssessment()
           
 boolean getSubmitAssessmentForGrade()
           
 boolean getTakeAssessment()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorizationBean

public AuthorizationBean()
Method Detail

getAuthzMap

public HashMap getAuthzMap()

getAdminPrivilege

public boolean getAdminPrivilege()

getAdminNewAssessment

public boolean getAdminNewAssessment()

getAdminCoreAssessment

public boolean getAdminCoreAssessment()

getAdminPublishedAssessment

public boolean getAdminPublishedAssessment()

getAdminAssessment

public boolean getAdminAssessment()

getAdminTemplate

public boolean getAdminTemplate()

getAdminQuestionPool

public boolean getAdminQuestionPool()

addAllPrivilege

public void addAllPrivilege(String siteId)

canTakeAssessment

public boolean canTakeAssessment(String siteId)

canSubmitAssessmentForGrade

public boolean canSubmitAssessmentForGrade(String siteId)

canCreateAssessment

public boolean canCreateAssessment(String siteId)

canEditAnyAssessment

public boolean canEditAnyAssessment(String siteId)

canEditOwnAssessment

public boolean canEditOwnAssessment(String siteId)

canDeleteAnyAssessment

public boolean canDeleteAnyAssessment(String siteId)

canDeleteOwnAssessment

public boolean canDeleteOwnAssessment(String siteId)

canPublishAnyAssessment

public boolean canPublishAnyAssessment(String siteId)

canPublishOwnAssessment

public boolean canPublishOwnAssessment(String siteId)

canGradeAnyAssessment

public boolean canGradeAnyAssessment(String siteId)

canGradeOwnAssessment

public boolean canGradeOwnAssessment(String siteId)

canCreateQuestionPool

public boolean canCreateQuestionPool(String siteId)

canEditOwnQuestionPool

public boolean canEditOwnQuestionPool(String siteId)

canDeleteOwnQuestionPool

public boolean canDeleteOwnQuestionPool(String siteId)

canCopyOwnQuestionPool

public boolean canCopyOwnQuestionPool(String siteId)

canCreateTemplate

public boolean canCreateTemplate(String siteId)

canEditOwnTemplate

public boolean canEditOwnTemplate(String siteId)

canDeleteOwnTemplate

public boolean canDeleteOwnTemplate(String siteId)

addPrivilege

public boolean addPrivilege(String functionKey,
                            String siteId)

addAdminPrivilege

public void addAdminPrivilege(boolean privilege,
                              String functionKey,
                              String siteId)

getTakeAssessment

public boolean getTakeAssessment()

getSubmitAssessmentForGrade

public boolean getSubmitAssessmentForGrade()

getCreateAssessment

public boolean getCreateAssessment()

getEditAnyAssessment

public boolean getEditAnyAssessment()

getEditOwnAssessment

public boolean getEditOwnAssessment()

getDeleteAnyAssessment

public boolean getDeleteAnyAssessment()

getDeleteOwnAssessment

public boolean getDeleteOwnAssessment()

getPublishAnyAssessment

public boolean getPublishAnyAssessment()

getPublishOwnAssessment

public boolean getPublishOwnAssessment()

getGradeAnyAssessment

public boolean getGradeAnyAssessment()

getGradeOwnAssessment

public boolean getGradeOwnAssessment()

getCreateQuestionPool

public boolean getCreateQuestionPool()

getEditOwnQuestionPool

public boolean getEditOwnQuestionPool()

getDeleteOwnQuestionPool

public boolean getDeleteOwnQuestionPool()

getCopyOwnQuestionPool

public boolean getCopyOwnQuestionPool()

getCreateTemplate

public boolean getCreateTemplate()

getEditOwnTemplate

public boolean getEditOwnTemplate()

getDeleteOwnTemplate

public boolean getDeleteOwnTemplate()

getPrivilege

public boolean getPrivilege(String functionKey)

getGradeAnyAssessment

public boolean getGradeAnyAssessment(HttpServletRequest req,
                                     String siteId)

getGradeOwnAssessment

public boolean getGradeOwnAssessment(HttpServletRequest req,
                                     String siteId)

getPrivilege

public boolean getPrivilege(HttpServletRequest req,
                            String functionKey,
                            String siteId)