2.17.2: 2011-06-17

net.sf.basedb.util.overview.node
Class FileSetMemberNameGenerator

java.lang.Object
  extended by net.sf.basedb.util.overview.node.FileSetMemberNameGenerator
All Implemented Interfaces:
NodeNameGenerator<FileSetMember>

public class FileSetMemberNameGenerator
extends Object
implements 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 (Thu, 05 Feb 2009) $

Constructor Summary
FileSetMemberNameGenerator()
           
 
Method Summary
 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(FileSetMember item, Node parentNode)
          Generate a name for the new node that is about to be created.
 String getNodeTitle(FileSetMember item, Node parentNode)
          Generate a title for the new node that is about to be created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSetMemberNameGenerator

public FileSetMemberNameGenerator()
Method Detail

getNodeName

public String getNodeName(FileSetMember 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 interface NodeNameGenerator<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

public String getNodeTitle(FileSetMember 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 interface NodeNameGenerator<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

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 interface NodeNameGenerator<FileSetMember>
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 interface NodeNameGenerator<FileSetMember>
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 interface NodeNameGenerator<FileSetMember>
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 interface NodeNameGenerator<FileSetMember>
Parameters:
parentNode - The parent node
Returns:
A title for the node

2.17.2: 2011-06-17