public class JcrBrowserContentConnector extends JcrContentConnector
JcrContentConnector
. The main differences from the parent class include:
JcrContentConnectorDefinition
is substituted with a JcrBrowserContentConnector.JcrBrowserContentConnectorDefinition
in order to be able to modify the definition
on the fly without affecting an original singleton definitionJcrContentConnector.getDefaultItemId()
doesn't cache the value like the parent class - it is always re-resolved.
Modifier and Type | Class and Description |
---|---|
static class |
JcrBrowserContentConnector.JcrBrowserContentConnectorDefinition
Simple wrapper around a
JcrBrowserContentConnector.JcrBrowserContentConnectorDefinition , allows for overriding the workspace property. |
Modifier and Type | Field and Description |
---|---|
static String |
SYSTEM_PROPERTY_URL_FRAGMENT_TEMPLATE |
Constructor and Description |
---|
JcrBrowserContentConnector(info.magnolia.cms.core.version.VersionManager versionManager,
JcrContentConnectorDefinition definition) |
Modifier and Type | Method and Description |
---|---|
JcrBrowserContentConnector.JcrBrowserContentConnectorDefinition |
getContentConnectorDefinition() |
JcrItemId |
getItemIdByUrlFragment(String urlFragment)
Fetch item id from its string representation.
|
String |
getItemUrlFragment(Object itemId)
Convert an item id (arbitrary object) to its string representation which can be
appended to a URL fragment and later be used to fetch the item id back.
|
canHandleItem, getDefaultItemId, getItem, getItemId, getItemVersion, getNewItemId, getRootPath, getWorkspace, isPropertyItemId, parseNodePath, parsePropertyName
public static final String SYSTEM_PROPERTY_URL_FRAGMENT_TEMPLATE
@Inject public JcrBrowserContentConnector(info.magnolia.cms.core.version.VersionManager versionManager, JcrContentConnectorDefinition definition)
public JcrItemId getItemIdByUrlFragment(String urlFragment)
ContentConnector
getItemIdByUrlFragment
in interface ContentConnector
getItemIdByUrlFragment
in class JcrContentConnector
urlFragment
- URL fragment that points to an item.public String getItemUrlFragment(Object itemId)
ContentConnector
getItemUrlFragment
in interface ContentConnector
getItemUrlFragment
in class JcrContentConnector
itemId
- id of an item to be converted to a string representation.ContentConnector.getItemIdByUrlFragment(java.lang.String).
public JcrBrowserContentConnector.JcrBrowserContentConnectorDefinition getContentConnectorDefinition()
getContentConnectorDefinition
in class JcrContentConnector
Copyright © 2017 Magnolia International Ltd.. All rights reserved.