info.magnolia.module.samples.model
Class InternalLinkModel

java.lang.Object
  extended by info.magnolia.rendering.model.RenderingModelImpl<RenderableDefinition>
      extended by info.magnolia.module.samples.model.InternalLinkModel
All Implemented Interfaces:
RenderingModel<RenderableDefinition>

public class InternalLinkModel
extends RenderingModelImpl<RenderableDefinition>

Resolving internal links, either identifier or path link.

Version:
$Id$

Nested Class Summary
 class InternalLinkModel.LinkItem
          Represents a Link.
 
Field Summary
 
Fields inherited from class info.magnolia.rendering.model.RenderingModelImpl
content, contentMap, definition, parentModel
 
Fields inherited from interface info.magnolia.rendering.model.RenderingModel
SKIP_RENDERING
 
Constructor Summary
InternalLinkModel(javax.jcr.Node content, RenderableDefinition definition, RenderingModel<?> parent)
           
 
Method Summary
 ContentMap getTarget()
           
 String getTargetLink()
           
 
Methods inherited from class info.magnolia.rendering.model.RenderingModelImpl
execute, getContent, getDef, getDefinition, getNode, getParent, getRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalLinkModel

public InternalLinkModel(javax.jcr.Node content,
                         RenderableDefinition definition,
                         RenderingModel<?> parent)
Method Detail

getTarget

public ContentMap getTarget()
                     throws javax.jcr.ValueFormatException,
                            javax.jcr.PathNotFoundException,
                            javax.jcr.RepositoryException
Throws:
javax.jcr.ValueFormatException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException

getTargetLink

public String getTargetLink()
                     throws javax.jcr.ValueFormatException,
                            javax.jcr.PathNotFoundException,
                            javax.jcr.RepositoryException
Throws:
javax.jcr.ValueFormatException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.