Package org.ametys.plugins.odfweb.xslt
Class OdfXSLTHelper
java.lang.Object
org.ametys.odf.OdfXSLTHelper
org.ametys.plugins.odfweb.xslt.OdfXSLTHelper
- All Implemented Interfaces:
Serviceable
Helper component to be used from XSL stylesheets.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static OdfPageHandler
The ODF page handlerprotected static ODFSkillsHelper
The ODF skills helperFields inherited from class org.ametys.odf.OdfXSLTHelper
_ametysObjectResolver, _odfHelper, _odfRefTableHelper, _rootOrgUnitProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
areSkillsUnavailable
(String programItemId, String programPageItemId) true
if the program item is part of an program item (program, subprogram or container) that is excluded from skillsstatic String
Get the PDF url of a program or a subprogramstatic String
odfRootPage
(String siteName, String language) Get the ODF root page, for a specific site, language.static String
odfRootPage
(String siteName, String language, String catalog) Get the ODF root page, for a specific site, language and catalog.static String
Get the id of parent program from the current pagevoid
service
(ServiceManager smanager) Methods inherited from class org.ametys.odf.OdfXSLTHelper
degreeLabel, degreeLabel, getCertificationLabel, getCode, getCumulatedHours, getEducationalBooklet, getEntryId, getOrgUnitIdByUAICode, getParentProgram, getParentProgramStructure, getProgram, getProgramPaths, getProgramStructure, getRootOrgUnitId, getSubProgramStructure, getSubProgramStructure, getTableRefItems, getTableRefItems
-
Field Details
-
_odfPageHandler
The ODF page handler -
_odfSkillsHelper
The ODF skills helper
-
-
Constructor Details
-
OdfXSLTHelper
public OdfXSLTHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classOdfXSLTHelper
- Throws:
ServiceException
-
odfRootPage
Get the ODF root page, for a specific site, language. If there is many ODF root pages, the first page of the list is returned.- Parameters:
siteName
- the desired site name.language
- the sitemap language to search in.- Returns:
- the first ODF root page, or null if not found
-
odfRootPage
Get the ODF root page, for a specific site, language and catalog.- Parameters:
siteName
- the desired site name.language
- the sitemap language to search in.catalog
- The ODF catalog- Returns:
- the ODF root page, or null if not found
-
odfPDFUrl
Get the PDF url of a program or a subprogram- Parameters:
contentId
- The content idsiteName
- The site name- Returns:
- the PDF url or empty string if the content is not a
Program
orSubProgram
-
parentProgramId
Get the id of parent program from the current page- Returns:
- the id of parent program or null if not found
-