Package org.openurp.edu.web.action
Class MultiProjectSupportAction
java.lang.Object
org.beangle.struts2.action.ActionSupport
org.beangle.struts2.action.EntityActionSupport
org.beangle.struts2.action.EntityDrivenAction
org.openurp.web.action.SecurityActionSupport
org.openurp.edu.web.action.BaseAction
org.openurp.edu.web.action.MultiProjectSupportAction
- All Implemented Interfaces:
org.beangle.commons.text.i18n.TextResourceProvider
- Direct Known Subclasses:
StudentProjectSupport,TeacherProjectSupport
本Action是多教学项目的Wrapper Action 本Action一般作为学生、教师功能的父类使用,因此和数据级权限无关 因为学生和教师的功能所能看到的数据一般都是和自身有关的数据,且他们的帐号上也不需要设置数据级权限。 具有获取当前教学项目、当前学期的方法
-
Field Summary
Fields inherited from class org.openurp.edu.web.action.BaseAction
baseInfoService, codeService, departmentService, eventMulticaster, logHelper, semesterServiceFields inherited from class org.openurp.web.action.SecurityActionSupport
securityHelperFields inherited from class org.beangle.struts2.action.EntityDrivenAction
config, entityDaoFields inherited from class org.beangle.struts2.action.ActionSupport
ERROR, INPUT, logger, SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddBasecode(String key, Class<? extends org.beangle.commons.entity.pojo.Code<Integer>> clazz) protected voidaddBaseInfo(String key, Class<? extends BaseInfo> clazz) protected ListgetBaseInfos(Class<? extends BaseInfo> clazz) protected Project获得用户当前在什么教学项目下的方法决定展现给用户哪些教学项目,被index使用。
展现的教学项目由功能Action自行决定final Stringindex()这个index页面是一个Wrapper页面
如果需要展现多个教学项目的数据,那么页面就会显示为一个项目一个Tab
如果只展现一个教学项目的数据,那么页面就会隐藏Tababstract String子类的真正的index是innerIndex,展现的是当前教学项目下的index页面Methods inherited from class org.openurp.edu.web.action.BaseAction
debug, debug, error, error, forwardError, forwardError, getDepartmentService, getLoginUser, getOutputProcessObserver, getOutputProcessObserver, getOutputProcessObserver, getSemesterService, info, info, publish, redirect, setBaseInfoService, setCodeService, setDepartmentService, setEventMulticaster, setLogHelper, setSemesterServiceMethods inherited from class org.openurp.web.action.SecurityActionSupport
applyPermission, getProfiles, getProperties, getUsername, setSecurityHelperMethods inherited from class org.beangle.struts2.action.EntityDrivenAction
buildEntityImporter, buildEntityImporter, buildEntityImporter, buildExporter, configExporter, configImporter, edit, editSetting, export, getConfig, getEntity, getEntity, getEntity, getEntityDao, getEntityName, getExportDatas, getImporterListeners, getModel, getModels, getModels, getPropertyExtractor, getQueryBuilder, getShortName, importData, importForm, indexSetting, info, populateEntity, populateEntity, populateEntity, remove, remove, remove, removeAndForward, save, saveAndForward, saveOrUpdate, saveOrUpdate, search, search, setConfig, setEntityDaoMethods inherited from class org.beangle.struts2.action.EntityActionSupport
getId, getIds, getIntId, getIntIds, getLongId, getLongIds, getPageIndex, getPageLimit, getPageSize, populate, populate, populate, populate, populate, populate, populate, populate, populateConditions, populateConditionsMethods inherited from class org.beangle.struts2.action.ActionSupport
addCookie, addCookie, addError, addFlashError, addFlashMessage, addMessage, deleteCookie, execute, forward, forward, forward, forward, forward, get, get, get, getActionErrors, getActionMessages, getAll, getAll, getAttribute, getAttribute, getBool, getBoolean, getCookieValue, getDate, getDateTime, getFlash, getFloat, getInt, getLocale, getLong, getRemoteAddr, getRequest, getResource, getResponse, getSession, getShort, getText, getText, getTextInternal, getTextResource, getTextResource, put, redirect, redirect, redirect, redirect
-
Constructor Details
-
MultiProjectSupportAction
public MultiProjectSupportAction()
-
-
Method Details
-
addBasecode
-
addBaseInfo
-
getBaseInfos
-
index
这个index页面是一个Wrapper页面
如果需要展现多个教学项目的数据,那么页面就会显示为一个项目一个Tab
如果只展现一个教学项目的数据,那么页面就会隐藏Tab- Overrides:
indexin classorg.beangle.struts2.action.EntityDrivenAction
-
innerIndex
子类的真正的index是innerIndex,展现的是当前教学项目下的index页面- Returns:
-
getProjects
决定展现给用户哪些教学项目,被index使用。
展现的教学项目由功能Action自行决定- Returns:
-
getProject
获得用户当前在什么教学项目下的方法- Returns:
-
getSemester
-