类 ProjectContextImpl
java.lang.Object
org.openurp.base.service.impl.ProjectContextImpl
- 所有已实现的接口:
ProjectContext
-
字段概要
字段修饰符和类型字段说明protected final org.apache.commons.collections.Predicateprotected final org.apache.commons.collections.Transformerprotected final Stringprotected org.beangle.security.data.ProfileServiceprotected final org.apache.commons.collections.Predicate -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidapplyRestriction(org.beangle.commons.dao.query.builder.OqlBuilder<?> query) void清除系统记住的上次所使用的学期获得id字符串获得用户在当前项目下所拥有的 Department 中是院系的 数据级权限org.beangle.security.core.userdetail.Profile获得当前教学项目下所对应的UserProfile获得id字符串获得用户在当前项目下所拥有的 Department 数据级权限获得id字符串获得用户在当前项目下所拥有的 EducationLevel 数据级权限List<org.beangle.security.core.userdetail.Profile>获得用户当前在哪个教学项目下获得用户所拥有的所有教学项目获得当前教学项目下,用户处于哪个学期 返回的结果可能是: 1.如果用户从来没有切换过学期切换控件,那么返回当前教学项目的当前时间所处的学期 2.如果用户切换过学期控件,那么返回上一次所切换到的学期 3.如果用户正在切换学期控件,那么返回用户切换的学期 受到页面上传入的project.id, semester.id参数,session中项目的影响。protected Semester获得id字符串获得用户在当前项目下所拥有的 StdType 数据级权限获得id字符串获得用户在当前项目下所拥有的 Department 中是开课的 数据级权限getUser()获得当前登录的用户,如果没有登录,返回NullbooleanisRoot()返回当前用户是否是root用户,id为1的用户voidrememberSemester(Integer semesterId) 设置当前在哪个学期下voidsetEntityDao(org.beangle.commons.dao.EntityDao entityDao) voidsetProfileService(org.beangle.security.data.ProfileService profileService) voidsetSemesterService(SemesterService semesterService)
-
字段详细资料
-
profileService
protected org.beangle.security.data.ProfileService profileService -
prefix
- 另请参阅:
-
collegePredicate
protected final org.apache.commons.collections.Predicate collegePredicate -
teachPredicate
protected final org.apache.commons.collections.Predicate teachPredicate -
idTransformer
protected final org.apache.commons.collections.Transformer idTransformer
-
-
构造器详细资料
-
ProjectContextImpl
public ProjectContextImpl()
-
-
方法详细资料
-
getProject
从接口复制的说明:ProjectContext获得用户当前在哪个教学项目下- 指定者:
getProject在接口中ProjectContext- 返回:
-
getSession
-
isRoot
public boolean isRoot()从接口复制的说明:ProjectContext返回当前用户是否是root用户,id为1的用户- 指定者:
isRoot在接口中ProjectContext- 返回:
-
getUser
从接口复制的说明:ProjectContext获得当前登录的用户,如果没有登录,返回Null- 指定者:
getUser在接口中ProjectContext- 返回:
-
getSemester
从接口复制的说明:ProjectContext获得当前教学项目下,用户处于哪个学期 返回的结果可能是: 1.如果用户从来没有切换过学期切换控件,那么返回当前教学项目的当前时间所处的学期 2.如果用户切换过学期控件,那么返回上一次所切换到的学期 3.如果用户正在切换学期控件,那么返回用户切换的学期 受到页面上传入的project.id, semester.id参数,session中项目的影响。 之所以会传入project.id这个参数是因为,学期切换控件支持切换非本项目的学期
- 指定者:
getSemester在接口中ProjectContext- 返回:
-
getSemester_internal
-
rememberSemester
从接口复制的说明:ProjectContext设置当前在哪个学期下- 指定者:
rememberSemester在接口中ProjectContext
-
forgetSemester
public void forgetSemester()从接口复制的说明:ProjectContext清除系统记住的上次所使用的学期- 指定者:
forgetSemester在接口中ProjectContext
-
getEducationLevels
从接口复制的说明:ProjectContext获得用户在当前项目下所拥有的 EducationLevel 数据级权限- 指定者:
getEducationLevels在接口中ProjectContext- 返回:
-
getStdTypes
从接口复制的说明:ProjectContext获得用户在当前项目下所拥有的 StdType 数据级权限- 指定者:
getStdTypes在接口中ProjectContext- 返回:
-
getDeparts
从接口复制的说明:ProjectContext获得用户在当前项目下所拥有的 Department 数据级权限- 指定者:
getDeparts在接口中ProjectContext- 返回:
-
getColleges
从接口复制的说明:ProjectContext获得用户在当前项目下所拥有的 Department 中是院系的 数据级权限- 指定者:
getColleges在接口中ProjectContext- 返回:
-
getTeachDeparts
从接口复制的说明:ProjectContext获得用户在当前项目下所拥有的 Department 中是开课的 数据级权限- 指定者:
getTeachDeparts在接口中ProjectContext- 返回:
-
getEducationIdSeq
从接口复制的说明:ProjectContext获得id字符串- 指定者:
getEducationIdSeq在接口中ProjectContext- 返回:
- 另请参阅:
-
getStdTypeIdSeq
从接口复制的说明:ProjectContext获得id字符串- 指定者:
getStdTypeIdSeq在接口中ProjectContext- 返回:
- 另请参阅:
-
getDepartIdSeq
从接口复制的说明:ProjectContext获得id字符串- 指定者:
getDepartIdSeq在接口中ProjectContext- 返回:
- 另请参阅:
-
getCollegeIdSeq
从接口复制的说明:ProjectContext获得id字符串- 指定者:
getCollegeIdSeq在接口中ProjectContext- 返回:
- 另请参阅:
-
getTeachDepartIdSeq
从接口复制的说明:ProjectContext获得id字符串- 指定者:
getTeachDepartIdSeq在接口中ProjectContext- 返回:
- 另请参阅:
-
getProjects
从接口复制的说明:ProjectContext获得用户所拥有的所有教学项目- 指定者:
getProjects在接口中ProjectContext- 返回:
-
getProfiles
- 指定者:
getProfiles在接口中ProjectContext
-
getCurrentProfile
public org.beangle.security.core.userdetail.Profile getCurrentProfile()获得当前教学项目下所对应的UserProfile- 指定者:
getCurrentProfile在接口中ProjectContext- 返回:
-
applyRestriction
public void applyRestriction(org.beangle.commons.dao.query.builder.OqlBuilder<?> query) - 指定者:
applyRestriction在接口中ProjectContext
-
setEntityDao
public void setEntityDao(org.beangle.commons.dao.EntityDao entityDao) -
setProfileService
public void setProfileService(org.beangle.security.data.ProfileService profileService) -
setSemesterService
-