| org.apache.lenya.cms.linking.LinkConverter
LinkConverter | public class LinkConverter extends AbstractLogEnabled (Code) | | Utility class to convert lenya-document: links from and to URL
links.
|
Constructor Summary | |
public | LinkConverter(ServiceManager manager, Logger logger) Creates a link converter. |
LinkConverter | public LinkConverter(ServiceManager manager, Logger logger)(Code) | | Creates a link converter.
Parameters: manager - The service manager. Parameters: logger - The logger. |
convertUrlsToUuids | public void convertUrlsToUuids(Document doc, boolean useContextPath)(Code) | | Converts all URL-based links to UUID-based links.
Parameters: doc - The document to convert. Parameters: useContextPath - If the request's context path should be considered. |
convertUrlsToUuids | public void convertUrlsToUuids(Publication srcPub, Document examinedDocument, boolean useContextPath)(Code) | | Converts all URL-based links to UUID-based links. The link URLs can
originate from a different publication.
Parameters: srcPub - The publication where the content comes from. Parameters: examinedDocument - The document in the target publication. Parameters: useContextPath - If the request's context path should be considered. |
getContextPath | protected String getContextPath() throws ServiceException(Code) | | |
|
|