Package net.sf.basedb.util.overview.node
Class FileSetMemberNameGenerator
java.lang.Object
net.sf.basedb.util.overview.node.FileSetMemberNameGenerator
- All Implemented Interfaces:
NodeNameGenerator<FileSetMember>
Since a FileSetMember isn't Nameable we construct the name
by combining the name of the file type and the name of the
file.
- Version:
- 2.10
- Author:
- Nicklas
- Last modified
- $Date: 2009-02-05 14:39:25 +0100 (to, 05 feb 2009) $
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDeniedNodeName
(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.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.getMissingNodeName
(Node parentNode) Generate a name for a node when the item is missing.getMissingNodeTitle
(Node parentNode) Generate a title for a node when the item is missing.getNodeName
(FileSetMember item, Node parentNode) Generate a name for the new node that is about to be created.getNodeTitle
(FileSetMember item, Node parentNode) Generate a title for the new node that is about to be created.
-
Constructor Details
-
FileSetMemberNameGenerator
public FileSetMemberNameGenerator()
-
-
Method Details
-
getNodeName
Description copied from interface:NodeNameGenerator
Generate a name for the new node that is about to be created.- Specified by:
getNodeName
in interfaceNodeNameGenerator<FileSetMember>
- 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
Description copied from interface:NodeNameGenerator
Generate a title for the new node that is about to be created.- Specified by:
getNodeTitle
in interfaceNodeNameGenerator<FileSetMember>
- 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
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<FileSetMember>
- Parameters:
parentNode
- The parent node- Returns:
- A name for the node
-
getDeniedNodeTitle
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<FileSetMember>
- Parameters:
parentNode
- The parent node- Returns:
- A name for the node
-
getMissingNodeName
Description copied from interface:NodeNameGenerator
Generate a name for a node when the item is missing.- Specified by:
getMissingNodeName
in interfaceNodeNameGenerator<FileSetMember>
- Parameters:
parentNode
- The parent node- Returns:
- A name for the node
-
getMissingNodeTitle
Description copied from interface:NodeNameGenerator
Generate a title for a node when the item is missing.- Specified by:
getMissingNodeTitle
in interfaceNodeNameGenerator<FileSetMember>
- Parameters:
parentNode
- The parent node- Returns:
- A title for the node
-