public class OdfXSLTHelper extends Object implements Serviceable
Modifier and Type | Field and Description |
---|---|
protected static AmetysObjectResolver |
_ametysObjectResolver
The Ametys resolver
|
protected static OdfReferenceTableHelper |
_odfRefTableHelper
The ODF reference helper
|
Constructor and Description |
---|
OdfXSLTHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
degreeLabel(String cdmValue)
Get the label associated with the degree key
|
static String |
degreeLabel(String cdmValue,
String lang)
Get the label associated with the degree key
|
static String |
getCode(String tableRefEntryId)
Get the code associated with the given reference table's entry
|
static String |
getEntryId(String tableRefId,
String code)
Get the id of reference table's entry
|
static NodeList |
getParentProgram(String subprogramId)
Get the parent program information
|
static NodeList |
getParentProgramStructure(String subprogramId,
int depth)
Get the structure of a parent programs, including the structure of child subprograms until the given depth.
|
static Node |
getProgram(String programId)
Get the program information
|
static Node |
getProgramStructure(String programId,
int depth)
Get the structure of a program until the given depth.
|
static Node |
getSubProgramStructure(String subprogramId)
Get the whole structure of a subprogram, including the structure of child subprograms
|
static Node |
getSubProgramStructure(String subprogramId,
int depth)
Get the structure of a subprogram, including the structure of child subprograms until the given depth
|
static Node |
getTableRefItems(String tableRefId,
String lang)
Get the items of a reference table
|
void |
service(ServiceManager smanager) |
protected static OdfReferenceTableHelper _odfRefTableHelper
protected static AmetysObjectResolver _ametysObjectResolver
public OdfXSLTHelper()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
ServiceException
public static String degreeLabel(String cdmValue)
cdmValue
- The code of degreepublic static String getCode(String tableRefEntryId)
tableRefEntryId
- The id of entrynull
if not foundpublic static String getEntryId(String tableRefId, String code)
tableRefId
- The id of content typecode
- The codenull
if not foundpublic static String degreeLabel(String cdmValue, String lang)
cdmValue
- The cdm value of degreelang
- The languagepublic static Node getSubProgramStructure(String subprogramId)
subprogramId
- The id of subprogrampublic static Node getSubProgramStructure(String subprogramId, int depth)
subprogramId
- The id of subprogramdepth
- Set a positive number to get structure of child subprograms until given depth. Set a negative number to get the whole structure recursively, including the structure of child subprograms. This parameter concerns only subprograms.public static NodeList getParentProgram(String subprogramId)
subprogramId
- The id of subprogrampublic static Node getProgram(String programId)
programId
- The id of programpublic static NodeList getParentProgramStructure(String subprogramId, int depth)
subprogramId
- The id of subprogramdepth
- Set a positive number to get structure of child subprograms until given depth. Set a negative number to get the whole structure recursively, including the structure of child subprograms. This parameter concerns only subprograms.public static Node getProgramStructure(String programId, int depth)
programId
- The id of programdepth
- Set a positive number to get structure of child subprograms until given depth. Set a negative number to get the whole structure recursively, including the structure of child subprograms. This parameter concerns only subprograms.public static Node getTableRefItems(String tableRefId, String lang)
tableRefId
- the id of reference tablelang
- the language to use for labels