|
||||||||||
| 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,
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 objects
NodeExceptionpublic static void clearCache(Datasource datasource)
datasource - datasource
public static void clearCache(Datasource datasource,
java.lang.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 | |||||||||