Class AbstractCourseLimitContentProvider<T>
java.lang.Object
org.beangle.commons.dao.impl.BaseServiceImpl
org.openurp.edu.clazz.service.limit.impl.AbstractCourseLimitContentProvider<T>
- All Implemented Interfaces:
RestrictionItemContentProvider<T>
- Direct Known Subclasses:
AbstractCourseLimitEntityProvider,CourseLimitGradeProvider
public abstract class AbstractCourseLimitContentProvider<T>
extends org.beangle.commons.dao.impl.BaseServiceImpl
implements RestrictionItemContentProvider<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.beangle.commons.collection.MapConverterFields inherited from class org.beangle.commons.dao.impl.BaseServiceImpl
entityDao, eventMulticaster, logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCascadeContents(Object[] content, String term, org.beangle.commons.collection.page.PageLimit limit, Map<RestrictionMeta, String> cascadeField) getCascadeContents(String content, String term, org.beangle.commons.collection.page.PageLimit limit, Map<RestrictionMeta, String> cascadeField) 级联获得content代表的entity集合以外的其他entity集合,比如专业、方向、班级、计划getContentMap(Object[] content) getContents(String content) 根据所给的内容,返回 identifier->entity 的Map
比如:
如果LimitItem是年级,那么返回 "2011"->"2011"
如果LimitItem是专业,那么返回 "专业ID" -> 专业protected Object[]getContentValues(String content) abstract RestrictionMetagetMeta()获得本Provider所对应的RestrictionMetagetOtherContents(Object[] content, String term, org.beangle.commons.collection.page.PageLimit limit) getOtherContents(String content, String term, org.beangle.commons.collection.page.PageLimit limit) 根据name和code查询,获得content代表的entity集合以外的其他entity,比如年级、学生类别、培养层次、院系等Methods inherited from class org.beangle.commons.dao.impl.BaseServiceImpl
getEntityDao, getEventMulticaster, publish, setEntityDao, setEventMulticasterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openurp.edu.clazz.service.limit.RestrictionItemContentProvider
getContentIdTitleMap
-
Field Details
-
converter
public static final org.beangle.commons.collection.MapConverter converter
-
-
Constructor Details
-
AbstractCourseLimitContentProvider
public AbstractCourseLimitContentProvider()
-
-
Method Details
-
getContentValues
-
getCascadeContents
public List<T> getCascadeContents(String content, String term, org.beangle.commons.collection.page.PageLimit limit, Map<RestrictionMeta, String> cascadeField) Description copied from interface:RestrictionItemContentProvider级联获得content代表的entity集合以外的其他entity集合,比如专业、方向、班级、计划- Specified by:
getCascadeContentsin interfaceRestrictionItemContentProvider<T>- Parameters:
content- 可以是用逗号分割的id,也可以直接是字符串,比如年级就是这样 ,2011,2012,2013,term- 用于作为查询条件的entity的name或者codelimit- 分页要求cascadeField- 级联查询所需要的数据,RestrictionItemMeta.id->content- Returns:
-
getCascadeContents
-
getContents
Description copied from interface:RestrictionItemContentProvider根据所给的内容,返回 identifier->entity 的Map
比如:
如果LimitItem是年级,那么返回 "2011"->"2011"
如果LimitItem是专业,那么返回 "专业ID" -> 专业- Specified by:
getContentsin interfaceRestrictionItemContentProvider<T>- Parameters:
content- 可以是用逗号分割的id,也可以直接是字符串,比如年级就是这样 ,2011,2012,2013,- Returns:
-
getOtherContents
public List<T> getOtherContents(String content, String term, org.beangle.commons.collection.page.PageLimit limit) Description copied from interface:RestrictionItemContentProvider根据name和code查询,获得content代表的entity集合以外的其他entity,比如年级、学生类别、培养层次、院系等- Specified by:
getOtherContentsin interfaceRestrictionItemContentProvider<T>- Parameters:
content- 可以是用逗号分割的id,也可以直接是字符串,比如年级就是这样 ,2011,2012,2013,term- 用于作为查询条件的entity的name或者codelimit- 分页要求- Returns:
-
getOtherContents
-
getContentMap
-
getMeta
Description copied from interface:RestrictionItemContentProvider获得本Provider所对应的RestrictionMeta- Specified by:
getMetain interfaceRestrictionItemContentProvider<T>- Returns:
-