LinkUtil
.@Deprecated public class LinkFactory extends Object
LinkUtil
.Modifier and Type | Field and Description |
---|---|
static Pattern |
LINK_PATTERN
Deprecated.
since 5.0 use
LinkUtil.LINK_PATTERN instead. |
static Pattern |
UUID_PATTERN
Deprecated.
since 5.0 use
LinkUtil.UUID_PATTERN instead. |
Constructor and Description |
---|
LinkFactory()
Deprecated.
|
public static Pattern UUID_PATTERN
LinkUtil.UUID_PATTERN
instead.public static final Pattern LINK_PATTERN
LinkUtil.LINK_PATTERN
instead.public static Link createLink(Content node)
LinkUtil.createLinkInstance(Content)
instead.node
- Target content for the link.public static Link createLink(NodeData nodeData) throws LinkException
LinkUtil.createLinkInstance(NodeData)
instead.nodeData
- Target node data for the link.LinkException
public static Link createLink(String repository, String uuid) throws LinkException
LinkUtil.createLinkInstance(String, String)
instead.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
LinkUtil.createLinkInstance(String, String, String, String, String)
instead.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
LinkUtil.createLinkInstance(String, String, String, String, String, String, String)
instead.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
LinkUtil.parseUUIDLink(String)
instead.uuidLink
- String containing reference to content as a UUID link pattern.LinkException
public static Link parseLink(String link) throws LinkException
LinkUtil.parseLink(String)
instead.link
- URI representing path to piece of contentLinkException
public static String toPattern(Link link)
LinkUtil.toPattern(Link)
instead.link
- Link to convert.Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.