public final class PortalConnectorHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
clearCache(Datasource datasource)
Clear the object and attribute cache for all objects in the given datasource
|
static void |
clearCache(Datasource datasource,
java.lang.String contentId)
Clear the object and attribute cache of the given object in the given datasource
|
static void |
clearQueryCache(Datasource datasource)
Clear the query caches for the given datasource
|
static Resolvable |
getLanguageVariant(Resolvable page,
java.lang.String languageCode,
Datasource ds)
This helper method can be used to fetch a given language variant for the
given page object (which was published from Gentics Content.Node).
|
static java.lang.String |
replacePLinks(java.lang.String content,
PLinkReplacer replacer)
Can be used to replace the plink tags within a content of a page with
URLs.
A plink has the syntax of: <plink id="contentid" /> - It may contain additional attributes after id. |
public static java.lang.String replacePLinks(java.lang.String content, PLinkReplacer replacer)
content
- The content string of the page.replacer
- A resolver used to resolve contentids to links.PLinkReplacer
public static final Resolvable getLanguageVariant(Resolvable page, java.lang.String languageCode, Datasource ds) throws NodeException
page
- page for which the language variant shall be fetchedlanguageCode
- language code of the language variantds
- datasource that holds the page objectsNodeException
- in case of errorspublic static void clearCache(Datasource datasource)
datasource
- datasourcepublic static void clearCache(Datasource datasource, java.lang.String contentId)
datasource
- datasourcecontentId
- content idpublic static void clearQueryCache(Datasource datasource)
datasource
- datasourceCopyright © 2019 Gentics Software. All Rights Reserved.