Class ItemListMemberNameGenerator

java.lang.Object
net.sf.basedb.util.overview.node.ItemListMemberNameGenerator
All Implemented Interfaces:
NodeNameGenerator<Listable>

public class ItemListMemberNameGenerator
extends Object
implements NodeNameGenerator<Listable>
Name generator used for item list members. Since we don't use a folder-node we must make sure that node names are unique by adding the id to the names.
Since:
3.5
Author:
Nicklas
  • Constructor Details

    • ItemListMemberNameGenerator

      public ItemListMemberNameGenerator()
  • Method Details

    • getNodeName

      public String getNodeName​(Listable 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<Listable>
      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​(Listable 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<Listable>
      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<Listable>
      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<Listable>
      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<Listable>
      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<Listable>
      Parameters:
      parentNode - The parent node
      Returns:
      A title for the node