Package net.sf.basedb.util.overview.node
Class AnyToAnyNameGenerator
- java.lang.Object
-
- net.sf.basedb.util.overview.node.AnyToAnyNameGenerator
-
- All Implemented Interfaces:
NodeNameGenerator<AnyToAny>
public class AnyToAnyNameGenerator extends Object implements NodeNameGenerator<AnyToAny>
Name generator for any-to-any links. We construct the name by taking the name of the link + the name of the linked item.- Since:
- 2.17
- Author:
- Nicklas
- Last modified
- $Date: 2010-11-18 08:26:30 +0100 (to, 18 nov 2010) $
-
-
Constructor Summary
Constructors Constructor Description AnyToAnyNameGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDeniedNodeName(Node parentNode)
Generate a name for a node when the item exists, but the current user doesn't have permission to access read the item.String
getDeniedNodeTitle(Node parentNode)
Generate a title for a node when the item exists, but the current user doesn't have permission to access read the item.String
getMissingNodeName(Node parentNode)
Generate a name for a node when the item is missing.String
getMissingNodeTitle(Node parentNode)
Generate a title for a node when the item is missing.String
getNodeName(AnyToAny item, Node parentNode)
Generate a name for the new node that is about to be created.String
getNodeTitle(AnyToAny item, Node parentNode)
Generate a title for the new node that is about to be created.
-
-
-
Method Detail
-
getNodeName
public String getNodeName(AnyToAny item, Node parentNode)
Description copied from interface:NodeNameGenerator
Generate a name for the new node that is about to be created.- Specified by:
getNodeName
in interfaceNodeNameGenerator<AnyToAny>
- Parameters:
item
- The item that is attached to the node (never null)parentNode
- The parent node of the new node- Returns:
- A name for the node
-
getNodeTitle
public String getNodeTitle(AnyToAny item, Node parentNode)
Description copied from interface:NodeNameGenerator
Generate a title for the new node that is about to be created.- Specified by:
getNodeTitle
in interfaceNodeNameGenerator<AnyToAny>
- Parameters:
item
- The item that is attached to the node (never null)parentNode
- The parent node of the new node- Returns:
- A title for the node
-
getDeniedNodeName
public String getDeniedNodeName(Node parentNode)
Description copied from interface:NodeNameGenerator
Generate a name for a node when the item exists, but the current user doesn't have permission to access read the item.- Specified by:
getDeniedNodeName
in interfaceNodeNameGenerator<AnyToAny>
- Parameters:
parentNode
- The parent node- Returns:
- A name for the node
-
getDeniedNodeTitle
public String getDeniedNodeTitle(Node parentNode)
Description copied from interface:NodeNameGenerator
Generate a title for a node when the item exists, but the current user doesn't have permission to access read the item.- Specified by:
getDeniedNodeTitle
in interfaceNodeNameGenerator<AnyToAny>
- Parameters:
parentNode
- The parent node- Returns:
- A name for the node
-
getMissingNodeName
public String getMissingNodeName(Node parentNode)
Description copied from interface:NodeNameGenerator
Generate a name for a node when the item is missing.- Specified by:
getMissingNodeName
in interfaceNodeNameGenerator<AnyToAny>
- Parameters:
parentNode
- The parent node- Returns:
- A name for the node
-
getMissingNodeTitle
public String getMissingNodeTitle(Node parentNode)
Description copied from interface:NodeNameGenerator
Generate a title for a node when the item is missing.- Specified by:
getMissingNodeTitle
in interfaceNodeNameGenerator<AnyToAny>
- Parameters:
parentNode
- The parent node- Returns:
- A title for the node
-
-