|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gentics.api.portalnode.connector.PortalConnectorHelper
public final class PortalConnectorHelper
A helper class for the Gentics Portal.Connector.
Currently can be used to replace plinks within a page content.
Method Summary | |
---|---|
static void |
clearCache(Datasource datasource)
Clear the object and attribute cache for all objects in the given datasource |
static void |
clearCache(Datasource datasource,
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,
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 String |
replacePLinks(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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String replacePLinks(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, 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 objects
NodeException
public static void clearCache(Datasource datasource)
datasource
- datasourcepublic static void clearCache(Datasource datasource, String contentId)
datasource
- datasourcecontentId
- content idpublic static void clearQueryCache(Datasource datasource)
datasource
- datasource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |