Package de.hybris.platform.commons.jalo
-
Class Summary Class Description CommonsManager This extension contains some useful logic for the platform.
These are:
Formatter (via Velocity, FOP, etc.) Translator (Supports translation of e.g.CommonsManager.ItemMethodInterceptor CustomOrder2XML This is a sample implementation for the abstract classItemFormatter.Document This class Document is always bound to aFormat.FOPFormatter This Implementation of theFormatterclass transform a given xml-fo file (as parameter of the methodFOPFormatter.format(Media)) with the given xslt file (the media of this class, useMedia.setData(java.io.DataInputStream)andMedia.getData()for access) into a pdf file (stored as return media)FOPFormatterTest Format The main Item/Class of the extension commons.
The Format item contains oneItemFormatter(set withGeneratedFormat.setInitial(de.hybris.platform.commons.jalo.ItemFormatter)) and a Collection with at least oneMediaFormatter(set withGeneratedFormat.setChained(java.util.Collection)).
After calling the methodFormat.format(Item)there will be an ItemDocumentattached to this instance which contains the result of the format process (as media).Formatter Abstract super class of all Formatter classes.GeneratedCommonsManager Generated class for typeCommonsManager.GeneratedCustomOrder2XML Generated class for typeCustomOrder2XML.GeneratedDocument Generated class for typeDocument.GeneratedFOPFormatter Generated class for typeFOPFormatter.GeneratedFormat Generated class for typeFormat.GeneratedFormatter Generated class for typeFormatter.GeneratedItemFormatter Generated class for typeItemFormatter.GeneratedMediaFormatter Generated class for typeMediaFormatter.GeneratedVelocityFormatter Generated class for typeVelocityFormatter.GeneratedXMLTransformFormatter Generated class for typeXMLTransformFormatter.ItemFormatter This abstract class ItemFormatter is for transforming an item of the platform into a media (for example the media could contain a xml file).MediaFormatter This abstract class MediaFormatter allows transforming media types (fromItemFormatter) or other MediaFormatter(s)) into other media types (for example: pdfs).VelocityFormatter Formats the given item with a given Velocity template.VelocityFormatterTest XMLTransformFormatter Transforms the specified XML file (parameter media of the format method) data into a new media via the given XSL script ( set viaFormatter.getScript(de.hybris.platform.jalo.SessionContext)). -
Exception Summary Exception Description TransformerException This class provides Exception handling for XSL Based transformations