public class CluContextImpl extends BasicContextImpl
Modifier and Type | Field and Description |
---|---|
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 |
static String |
PROGRAM_CLU_SET_TOKEN |
static String |
PROGRAM_CLU_TOKEN |
static String |
TEST_CLU_SET_TOKEN |
static String |
TEST_CLU_TOKEN |
FREE_TEXT_TOKEN, NL_HELPER_TOKEN
FIELDS_TOKEN
Constructor and Description |
---|
CluContextImpl() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
createContextMap(Map<String,Object> parameters)
Creates the context map (template data) for the requirement component.
|
CluInfo |
getCluInfo(String cluId,
ContextInfo contextInfo)
Gets a CLU.
|
NLCluSet |
getCluSet(Map<String,Object> map,
String key,
ContextInfo contextInfo)
Gets a custom CLU set from a requirement component.
|
CluSetInfo |
getCluSetInfo(String cluSetId,
ContextInfo contextInfo)
Gets a CLU set.
|
void |
setCluService(CluService cluService)
Sets the LU service.
|
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
public CluContextImpl()
public void setCluService(CluService cluService)
cluService
- CLU servicepublic CluInfo getCluInfo(String cluId, ContextInfo contextInfo)
cluId
- CLU idpublic CluSetInfo getCluSetInfo(String cluSetId, ContextInfo contextInfo)
cluSetId
- CLU set idpublic NLCluSet getCluSet(Map<String,Object> map, String key, ContextInfo contextInfo)
map
- Requirement componentOperationFailedException
- If building a custom CLU set failspublic Map<String,Object> createContextMap(Map<String,Object> parameters)
createContextMap
in interface TranslationContext
createContextMap
in class BasicContextImpl
parameters
- OperationFailedException
- Creating context map failsCopyright © 2004-2013 The Kuali Foundation. All Rights Reserved.