1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.r2.lum.lu.dao;
17
18 import java.util.Date;
19 import java.util.List;
20
21 import org.kuali.student.r1.common.dao.CrudDao;
22 import org.kuali.student.r2.core.versionmanagement.dto.VersionDisplayInfo;
23 import org.kuali.student.r2.lum.clu.dto.CluResultInfo;
24 import org.kuali.student.r2.lum.lu.entity.Clu;
25 import org.kuali.student.r2.lum.lu.entity.CluCluRelation;
26 import org.kuali.student.r2.lum.lu.entity.CluLoRelation;
27 import org.kuali.student.r2.lum.lu.entity.CluPublication;
28 import org.kuali.student.r2.lum.lu.entity.CluResult;
29 import org.kuali.student.r2.lum.lu.entity.CluResultType;
30 import org.kuali.student.r2.lum.lu.entity.CluSet;
31
32
33
34 public interface LuDao extends CrudDao {
35 public List<Clu> getClusByIdList(List<String> cluIdList);
36 public List<Clu> getClusByLuType(String luTypeKey, String luState);
37
38
39 public List<String> getLuiIdsByCluId(String cluId);
40 public List<String> getLuiIdsInAtpByCluId(String cluId, String atpKey);
41 public List<CluSet> getCluSetInfoByIdList(List<String> cluSetIdList);
42 public Boolean isCluInCluSet(String cluId, String cluSetId);
43
44 public List<CluCluRelation> getCluCluRelationsByClu(String cluId);
45 public List<Clu> getClusByRelation(String relatedCluId, String luLuRelationTypeKey);
46 public List<Clu> getClusByRelationSt(String relatedCluId, String luLuRelationTypeId, List<String> luStateList);
47 public List<String> getCluIdsByLoId(String loId);
48 public List<String> getRelatedCluIdsByCluId(String cluId,
49 String luLuRelationTypeId);
50 public List<String> getCluIdsByRelatedCluId(String cluId,
51 String luLuRelationTypeId);
52 public List<Clu> getRelatedClusByCluId(String cluId,
53 String luLuRelationTypeId);
54
55 public List<String> getRelatedLuiIdsByLuiId(String luiId, String id);
56 public List<String> getLuiIdsByRelationType(String relatedLuiId, String luLuRelationTypeId);
57 public List<CluLoRelation> getCluLoRelationsByClu(String cluId);
58 public List<CluLoRelation> getCluLoRelationsByCludIdAndLoId(String cluId,
59 String loId);
60 public List<CluLoRelation> getCluLoRelationsByLo(String loId);
61 public List<String> getAllowedCluLoRelationTypesForLuType(String luTypeId);
62 public List<CluResultType> getAllowedCluResultTypesForLuType(String luTypeId);
63 public List<String> getCluIdsByResultUsageType(String resultUsageTypeKey);
64 public List<String> getCluIdsByResultComponentId(String resultComponentId);
65 public List<String> getAllowedResultUsageTypesForLuType(String luTypeId);
66 public List<String> getAllowedResultComponentTypesForResultUsageType(
67 String resultUsageType);
68 public List<String> getAllowedLuLuRelationTypesForLuType(
69 String luTypeId, String relatedLuTypeId);
70 public List<String> getAllowedLuLuRelationTypesByLuiId(String luiId,
71 String relatedLuiId);
72 public List<String> getAllowedLuLuRelationTypesByCluId(String cluId,
73 String relatedCluId);
74 public List<CluResult> getCluResultByClu(String cluId);
75 public List<CluResult> getCluResultsByClus(List<String> cluIds);
76
77 public Clu getLatestCluVersion(String cluVersionIndId);
78 public Clu getCurrentCluVersion(String cluVersionIndId);
79 public VersionDisplayInfo getCurrentCluVersionInfo(String cluVersionIndId, String objectTypeURI);
80 public List<VersionDisplayInfo> getVersionsInDateRange(String refObjectId,
81 String refObjectTypeURI, Date from, Date to);
82 public List<VersionDisplayInfo> getVersions(String refObjectId,
83 String refObjectTypeURI);
84 public VersionDisplayInfo getVersionBySequenceNumber(String refObjectId,
85 String refObjectTypeURI, Long sequence);
86 public VersionDisplayInfo getFirstVersion(String refObjectId,
87 String refObjectTypeURI);
88 public VersionDisplayInfo getLatestVersion(String refObjectId,
89 String refObjectTypeURI);
90 public VersionDisplayInfo getCurrentVersionOnDate(String refObjectId,
91 String refObjectTypeURI, Date date);
92 public List<CluPublication> getCluPublicationsByType(
93 String luPublicationTypeKey);
94 public List<CluPublication> getCluPublicationsByCluId(String cluId);
95 public List<CluSet> getCluSetsByCluVersionIndId(List<String> cluVersionIndId);
96 public List<CluSet> getAllDynamicCluSets();
97 List<Clu> getClusByRelatedCluId(String relatedCluId,
98 String luLuRelationTypeId);
99 public List<Clu> getCrossListedClusByCodes(List<String> crossListedCodes);
100
101 }