|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.student.core.statement.naturallanguage.AbstractContext<ReqComponentInfo>
org.kuali.student.lum.statement.config.context.BasicContextImpl
org.kuali.student.lum.statement.config.context.LuContextImpl
public class LuContextImpl
This class creates the template context for course list types.
Field Summary | |
---|---|
static String |
CLU_SET_TOKEN
cluSet token (key) references a Clu set object
used in templates. |
static String |
CLU_TOKEN
clu token (key) references a Clu object used in templates. |
static String |
COURSE_CLU_SET_TOKEN
|
static String |
COURSE_CLU_TOKEN
|
private LuService |
luService
Learning unit service. |
static String |
PROGRAM_CLU_SET_TOKEN
|
static String |
PROGRAM_CLU_TOKEN
|
static String |
TEST_CLU_SET_TOKEN
|
static String |
TEST_CLU_TOKEN
|
Fields inherited from class org.kuali.student.lum.statement.config.context.BasicContextImpl |
---|
INTEGER_VALUE_TOKEN, NL_HELPER_TOKEN, OPERATOR_TOKEN |
Fields inherited from class org.kuali.student.core.statement.naturallanguage.AbstractContext |
---|
FIELDS_TOKEN |
Constructor Summary | |
---|---|
LuContextImpl()
|
Method Summary | |
---|---|
private static boolean |
containsClu(List<CluInfo> cluList,
CluInfo clu)
|
Map<String,Object> |
createContextMap(ReqComponentInfo reqComponent)
Creates the context map (template data) for the requirement component. |
private static void |
findClusInCluSet(CluSetTreeViewInfo tree,
List<CluInfo> cluList)
|
private CluInfo |
getClu(ReqComponentInfo reqComponent,
String key)
|
CluInfo |
getCluInfo(String cluId)
Gets a CLU. |
NLCluSet |
getCluSet(ReqComponentInfo reqComponent,
String key)
Gets a custom CLU set from a requirement component. |
NLCluSet |
getCluSet(String cluSetId)
Gets the CLU set. |
CluSetInfo |
getCluSetInfo(String cluSetId)
Gets a CLU set. |
void |
setLuService(LuService luService)
Sets the LU service. |
Methods inherited from class org.kuali.student.core.statement.naturallanguage.AbstractContext |
---|
getReqComponentFieldMap, getReqComponentFieldValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private LuService luService
public static final String CLU_TOKEN
clu
token (key) references a Clu object used in templates.
e.g. 'Student must have completed all of
$clu.getOfficialIdentifier().getShortName()'
public static final String COURSE_CLU_TOKEN
public static final String PROGRAM_CLU_TOKEN
public static final String TEST_CLU_TOKEN
public static final String CLU_SET_TOKEN
cluSet
token (key) references a Clu set object
used in templates.
e.g. 'Student must have completed all of $cluSet.getCluSetAsCode()'
public static final String COURSE_CLU_SET_TOKEN
public static final String PROGRAM_CLU_SET_TOKEN
public static final String TEST_CLU_SET_TOKEN
Constructor Detail |
---|
public LuContextImpl()
Method Detail |
---|
public void setLuService(LuService luService)
luService
- LU servicepublic CluInfo getCluInfo(String cluId) throws OperationFailedException
cluId
- CLU id
OperationFailedException
- If retrieving CLU failsprivate CluInfo getClu(ReqComponentInfo reqComponent, String key) throws OperationFailedException
OperationFailedException
public CluSetInfo getCluSetInfo(String cluSetId) throws OperationFailedException
cluSetId
- CLU set id
OperationFailedException
- If retrieving CLU set failspublic NLCluSet getCluSet(String cluSetId) throws OperationFailedException
cluSetId
- CLU set id
OperationFailedException
- If building a custom CLU set failsprivate static void findClusInCluSet(CluSetTreeViewInfo tree, List<CluInfo> cluList)
private static boolean containsClu(List<CluInfo> cluList, CluInfo clu)
public NLCluSet getCluSet(ReqComponentInfo reqComponent, String key) throws OperationFailedException
reqComponent
- Requirement component
OperationFailedException
- If building a custom CLU set failspublic Map<String,Object> createContextMap(ReqComponentInfo reqComponent) throws OperationFailedException
createContextMap
in interface Context<ReqComponentInfo>
createContextMap
in class BasicContextImpl
reqComponent
- Requirement component
OperationFailedException
- Creating context map fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |