Modifier and Type | Field and Description |
---|---|
static Pattern |
LINK_PATTERN
Deprecated.
Since 5.0.
|
static Pattern |
UUID_PATTERN
Deprecated.
Since 5.0.
|
Constructor and Description |
---|
LinkFactory()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Link |
createLink(Content node)
Deprecated.
Since 5.0 use LinkUtil.createLinkInstance(Content) instead.
|
static Link |
createLink(NodeData nodeData)
Deprecated.
Since 5.0 use LinkUtil.createLinkInstance(NodeData) instead.
|
static Link |
createLink(String repository,
String uuid)
Deprecated.
Since 5.0 use LinkUtil.createLinkInstance(String, String) instead.
|
static Link |
createLink(String repository,
String path,
String extension,
String anchor,
String parameters)
Deprecated.
Since 5.0 use info.magnolia.link.LinkUtil.createLink(String, String, String, String, String)
|
static Link |
createLink(String uuid,
String repository,
String fallbackHandle,
String nodeDataName,
String extension,
String anchor,
String parameters)
Deprecated.
Since 5.0 use info.magnolia.link.LinkUtil.createLinkInstance(String, String, String, String, String, String, String) instead.
|
static Link |
parseLink(String link)
Deprecated.
Since 5.0 use info.magnolia.link.LinkUtil.parseLink(String) instead.
|
static Link |
parseUUIDLink(String uuidLink)
Deprecated.
Since 5.0 use info.magnolia.link.LinkUtil.parseUUIDLink(String) instead.
|
static String |
toPattern(Link link)
Deprecated.
Since 5.0 use info.magnolia.link.LinkUtil.toPattern(Link) instead.
|
public static Pattern UUID_PATTERN
public static final Pattern LINK_PATTERN
public static Link createLink(Content node)
node
- Target content for the link.public static Link createLink(NodeData nodeData) throws LinkException
nodeData
- Target node data for the link.LinkException
public static Link createLink(String repository, String uuid) throws LinkException
repository
- Parent repository of the content of interest.uuid
- UUID of the content to create link to.LinkException
public static Link createLink(String repository, String path, String extension, String anchor, String parameters) throws LinkException
repository
- Source repository for the content.path
- Path to the content of interest.extension
- Optional extension to be used in the linkanchor
- Optional link anchor.parameters
- Optional link parameters.LinkException
public static Link createLink(String uuid, String repository, String fallbackHandle, String nodeDataName, String extension, String anchor, String parameters) throws LinkException
Link
object,
pointing to the non existing uuid so that broken link detection tools can find it.uuid
- UUID of the contentrepository
- Content repository name.fallbackHandle
- Optional fallback content handle.nodeDataName
- Content node data name for binary data.extension
- Optional link extension.anchor
- Optional link anchor.parameters
- Optional link parameters.LinkException
public static Link parseUUIDLink(String uuidLink) throws LinkException
uuidLink
- String containing reference to content as a UUID link pattern.LinkException
public static Link parseLink(String link) throws LinkException
link
- URI representing path to piece of contentLinkException
Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.