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 Details

    • converter

      public static final org.beangle.commons.collection.MapConverter converter
  • Constructor Details

    • AbstractCourseLimitContentProvider

      public AbstractCourseLimitContentProvider()
  • Method Details

    • getContentValues

      protected Object[] getContentValues(String content)
    • 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:
      getCascadeContents in interface RestrictionItemContentProvider<T>
      Parameters:
      content - 可以是用逗号分割的id,也可以直接是字符串,比如年级就是这样 ,2011,2012,2013,
      term - 用于作为查询条件的entity的name或者code
      limit - 分页要求
      cascadeField - 级联查询所需要的数据,RestrictionItemMeta.id->content
      Returns:
    • getCascadeContents

      protected abstract List<T> getCascadeContents(Object[] content, String term, org.beangle.commons.collection.page.PageLimit limit, Map<RestrictionMeta,String> cascadeField)
    • getContents

      public Map<String,T> getContents(String content)
      Description copied from interface: RestrictionItemContentProvider
      根据所给的内容,返回 identifier->entity 的Map
      比如:
      如果LimitItem是年级,那么返回 "2011"->"2011"
      如果LimitItem是专业,那么返回 "专业ID" -> 专业
      Specified by:
      getContents in interface RestrictionItemContentProvider<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:
      getOtherContents in interface RestrictionItemContentProvider<T>
      Parameters:
      content - 可以是用逗号分割的id,也可以直接是字符串,比如年级就是这样 ,2011,2012,2013,
      term - 用于作为查询条件的entity的name或者code
      limit - 分页要求
      Returns:
    • getOtherContents

      protected abstract List<T> getOtherContents(Object[] content, String term, org.beangle.commons.collection.page.PageLimit limit)
    • getContentMap

      protected abstract Map<String,T> getContentMap(Object[] content)
    • getMeta

      public abstract RestrictionMeta getMeta()
      Description copied from interface: RestrictionItemContentProvider
      获得本Provider所对应的RestrictionMeta
      Specified by:
      getMeta in interface RestrictionItemContentProvider<T>
      Returns: