com.alveole.studio.web.managers
Class JspToUrlLinkManager

java.lang.Object
  extended by com.alveole.studio.web.managers.BasicLinkManager
      extended by com.alveole.studio.web.managers.JspToUrlLinkManager
All Implemented Interfaces:
LinkManager

public class JspToUrlLinkManager
extends BasicLinkManager

Link manager that enables to create generic links from a JSP file, to any URL callable resource.

Author:
sylvain

Field Summary
static java.lang.String ExtId
          This plugin ID.
 
Fields inherited from class com.alveole.studio.web.managers.BasicLinkManager
xmlns, xmlprefix
 
Constructor Summary
JspToUrlLinkManager()
          The JSP link manager.
 
Method Summary
 boolean canLink(ProjectContext context, NodeContainer node1, NodeContainer node2)
          Check if this manager can link these two nodes.
 NodeLink copyLink(ProjectContext context, NodeLink original, NodeContainer node1, NodeContainer node2)
          Perform a copy...
 void createLink(ProjectContext context, NodeContainer node1, NodeContainer node2)
          Open an editor and create a link from node1 to node2.
 void editLink(ProjectContext context, NodeLink link, boolean shortView)
          Edit the given link for update.
 
Methods inherited from class com.alveole.studio.web.managers.BasicLinkManager
deleteLink, serialize, unserialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ExtId

public static final java.lang.String ExtId
This plugin ID.

See Also:
Constant Field Values
Constructor Detail

JspToUrlLinkManager

public JspToUrlLinkManager()
The JSP link manager.

Method Detail

canLink

public boolean canLink(ProjectContext context,
                       NodeContainer node1,
                       NodeContainer node2)
Check if this manager can link these two nodes.

Parameters:
context - The project context.
node1 - The first node.
node2 - The target node.
Returns:
true if this manager can perform linking of these two nodes.

copyLink

public NodeLink copyLink(ProjectContext context,
                         NodeLink original,
                         NodeContainer node1,
                         NodeContainer node2)
Perform a copy...

Parameters:
context - The project context.
original - The origin node for this link.
node1 - The copy of the origin node.
node2 - The copy of the target node.
Returns:
The copy or null if link cannot be copied.

createLink

public void createLink(ProjectContext context,
                       NodeContainer node1,
                       NodeContainer node2)
Open an editor and create a link from node1 to node2.

Parameters:
context - The project context.
node1 - The original node.
node2 - The target node.

editLink

public void editLink(ProjectContext context,
                     NodeLink link,
                     boolean shortView)
Edit the given link for update.

Parameters:
context - The current project context.
link - The node link to be edited.
shortView - true if link is simply selected, false if link has been dbl-clicked.