Package org.ametys.odf.xslt
Class CDMFrXSLTHelper
java.lang.Object
org.ametys.odf.xslt.CDMFrXSLTHelper
- All Implemented Interfaces:
Contextualizable,Serviceable
Helper component to be used from XSL stylesheets for CDM-fr export
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextualize(Context context) static StringResolve the URI of a resourcestatic StringResolve the URI of a resourcestatic StringresolveImage(String type, String uri, int height, int width) Resolve the URI of a resource imagestatic StringresolveImage(String type, String uri, int height, int width, boolean download) Resolve the absolute URI of a resource imagestatic StringresolveVideo(String type, String uri, boolean download) Resolve the absolute URI of a resource videovoidservice(ServiceManager smanager)
-
Constructor Details
-
CDMFrXSLTHelper
public CDMFrXSLTHelper()
-
-
Method Details
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
resolve
Resolve the URI of a resource- Parameters:
type- Type name (defined by the extension to use)uri- URI depending on the type- Returns:
- The uri resolved, the empty string if the uri could not be resolved, or the uri itself if there is no resolver adapted
-
resolve
Resolve the URI of a resource- Parameters:
type- Type name (defined by the extension to use)uri- URI depending on the typedownload- Is this uri for download purposes.- Returns:
- The uri resolved, the empty string if the uri could not be resolved, or the uri itself if there is no resolver adapted
-
resolveImage
Resolve the URI of a resource image- Parameters:
type- Type name (defined by the extension to use)uri- URI depending on the typeheight- the heightwidth- the width- Returns:
- The uri resolved, the empty string if the uri could not be resolved, or the uri itself if there is no resolver adapted
-
resolveImage
Resolve the absolute URI of a resource image- Parameters:
type- Type name (defined by the extension to use)uri- URI depending on the typeheight- the heightwidth- the widthdownload- Is this uri for download purposes.- Returns:
- The uri resolved, the empty string if the uri could not be resolved, or the uri itself if there is no resolver adapted
-
resolveVideo
Resolve the absolute URI of a resource video- Parameters:
type- Type name (defined by the extension to use)uri- URI depending on the typedownload- Is this uri for download purposes.- Returns:
- The uri resolved, the empty string if the uri could not be resolved, or the uri itself if there is no resolver adapted
-