info.magnolia.link
Class Link

java.lang.Object
  extended by info.magnolia.link.Link

public class Link
extends Object

Representation of the link to a content in Magnolia CMS. The target for the link might be a content (page, paragraph) or the node data (binary file).


Constructor Summary
Link()
          A constructor for undefined links.
Link(Content content)
          Deprecated. Since 5.0 use Link(Node).
Link(javax.jcr.Node node)
           
Link(javax.jcr.Property property)
           
Link(String workspaceName, Content parent, NodeData nodedata)
          Deprecated. Since 5.0 use Link(Node).
 
Method Summary
 String getAnchor()
           
 String getExtension()
           
 String getFallbackHandle()
          Deprecated. Since 5.0 use Link.getFallbackPath instead.
 String getFallbackPath()
           
 String getFileName()
           
 String getHandle()
          Deprecated. Since 5.0 use Link.getPath instead.
 javax.jcr.Node getJCRNode()
           
 Content getNode()
          Deprecated. Since 5.0 use Link.getJCRNode() instead.
 NodeData getNodeData()
          Deprecated. since 5.0 use Link.getProperty() instead.
 String getNodeDataName()
          Deprecated. Since 5.0 use Link.getPropertyName() instead.
 String getParameters()
           
 String getPath()
           
 javax.jcr.Property getProperty()
           
 String getPropertyName()
           
 String getRepository()
          Deprecated. Since 5.0 use Link.getWorkspace instead.
 String getUUID()
           
 String getWorkspace()
           
 Link initLink(String workspaceName, Content parent, NodeData nodedata)
          Deprecated. Since 5.0 use Link(Node).
 boolean isEditorBinaryLink()
           
 void setAnchor(String anchor)
           
 void setExtension(String extension)
           
 void setFallbackHandle(String fallbackPath)
          Deprecated. Since 5.0 use Link.setFallbackPath instead.
 void setFallbackPath(String fallbackPath)
           
 void setFileName(String fileName)
           
 void setHandle(String path)
          Deprecated. Since 5.0 use Link.setPath instead.
 void setJCRNode(javax.jcr.Node jcrNode)
           
 void setNode(Content node)
          Deprecated. since 5.0 use Link.setJCRNode() instead.
 void setNodeData(NodeData nodeData)
          Deprecated. since 5.0 use Link.setProperty() instead.
 void setNodeDataName(String nodeDataName)
          Deprecated. Since 5.0 use Link.setPropertyName() instead.
 void setParameters(String parameters)
           
 void setPath(String path)
           
 void setProperty(javax.jcr.Property property)
           
 void setPropertyName(String propertyName)
           
 void setRepository(String repository)
          Deprecated. Since 5.0 use Link.setWorkspace instead.
 void setUUID(String uuid)
           
 void setWorkspace(String workspace)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Link

public Link()
A constructor for undefined links. (i.e linking to a nonexistent page, for instance).


Link

public Link(Content content)
Deprecated. Since 5.0 use Link(Node).


Link

public Link(javax.jcr.Node node)

Link

public Link(String workspaceName,
            Content parent,
            NodeData nodedata)
Deprecated. Since 5.0 use Link(Node).


Link

public Link(javax.jcr.Property property)
Method Detail

initLink

public Link initLink(String workspaceName,
                     Content parent,
                     NodeData nodedata)
Deprecated. Since 5.0 use Link(Node).

Initialisation method for Link(String, Content, NodeData) constructor.


getExtension

public String getExtension()

setExtension

public void setExtension(String extension)

getFileName

public String getFileName()

setFileName

public void setFileName(String fileName)

getNode

public Content getNode()
Deprecated. Since 5.0 use Link.getJCRNode() instead.


setNode

public void setNode(Content node)
Deprecated. since 5.0 use Link.setJCRNode() instead.


getJCRNode

public javax.jcr.Node getJCRNode()

setJCRNode

public void setJCRNode(javax.jcr.Node jcrNode)

getProperty

public javax.jcr.Property getProperty()
                               throws LinkException
Throws:
LinkException

setProperty

public void setProperty(javax.jcr.Property property)

getNodeData

public NodeData getNodeData()
Deprecated. since 5.0 use Link.getProperty() instead.


setNodeData

public void setNodeData(NodeData nodeData)
Deprecated. since 5.0 use Link.setProperty() instead.


isEditorBinaryLink

public boolean isEditorBinaryLink()

getPropertyName

public String getPropertyName()

setPropertyName

public void setPropertyName(String propertyName)

getNodeDataName

public String getNodeDataName()
Deprecated. Since 5.0 use Link.getPropertyName() instead.


setNodeDataName

public void setNodeDataName(String nodeDataName)
Deprecated. Since 5.0 use Link.setPropertyName() instead.


getHandle

public String getHandle()
Deprecated. Since 5.0 use Link.getPath instead.


setHandle

public void setHandle(String path)
Deprecated. Since 5.0 use Link.setPath instead.


getPath

public String getPath()

setPath

public void setPath(String path)

getRepository

public String getRepository()
Deprecated. Since 5.0 use Link.getWorkspace instead.


setRepository

public void setRepository(String repository)
Deprecated. Since 5.0 use Link.setWorkspace instead.


getWorkspace

public String getWorkspace()

setWorkspace

public void setWorkspace(String workspace)

getUUID

public String getUUID()

setUUID

public void setUUID(String uuid)

getFallbackHandle

public String getFallbackHandle()
Deprecated. Since 5.0 use Link.getFallbackPath instead.


setFallbackHandle

public void setFallbackHandle(String fallbackPath)
Deprecated. Since 5.0 use Link.setFallbackPath instead.


getFallbackPath

public String getFallbackPath()

setFallbackPath

public void setFallbackPath(String fallbackPath)

getAnchor

public String getAnchor()

setAnchor

public void setAnchor(String anchor)

getParameters

public String getParameters()

setParameters

public void setParameters(String parameters)


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.